JP4670124B2 - Host computer, printer driver, control method therefor, and information recording medium - Google Patents
Host computer, printer driver, control method therefor, and information recording medium Download PDFInfo
- Publication number
- JP4670124B2 JP4670124B2 JP2000087274A JP2000087274A JP4670124B2 JP 4670124 B2 JP4670124 B2 JP 4670124B2 JP 2000087274 A JP2000087274 A JP 2000087274A JP 2000087274 A JP2000087274 A JP 2000087274A JP 4670124 B2 JP4670124 B2 JP 4670124B2
- Authority
- JP
- Japan
- Prior art keywords
- date
- time information
- real
- time
- 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
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、ホストコンピュータ一、これらの制御方法、および、情報記録媒体に関する。
【0002】
特に、リアルタイムクロック(Real Time Clock;RTC)を有する印刷装置の日時情報を取得したり設定したりするのに好適な、ホストコンピュータ、これらの制御方法、および、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体に関する。
【0003】
【従来の技術】
印刷装置(プリンタ)は、紙などの印刷体に文字や図形を印刷するための装置として広く普及している。このようなプリンタはホストコンピュータ(ビジネス用コンピュータなどの情報処理装置)に接続され、ホストコンピュータは、文字や図形を印刷するためのデータや、プリンタ自体を制御するためのデータをプリンタに送信する。一方、プリンタは、自身の状況などのデータをホストコンピュータに送信することができる。
【0004】
このようなプリンタでは、文字や図形を印刷するためにインクを使用する。インクジェットプリンタでは、交換可能なインクタンクを利用し、ドットインパクトプリンタや熱転写プリンタでは、交換可能なインクリボンを利用する。これらのインク供給ユニットが交換された時期や耐用期間などの情報は、プリンタのコストダウンや保守・運用のための情報として重要である。
【0005】
このほか、プリンタでは、印刷ヘッドや用紙カッターなどの消耗品が使用されており、これらについても、インク供給ユニットと同様に、交換の時期などの情報が得られれば、保守・運用に必要な助言をユーザに対して行うことができる。
【0006】
ここで、このような交換の時期の情報を得るために、プリンタ自体に現実の時刻、すなわち、所望の時点の年月日時分秒の情報を所定の精度(たとえば、日単位、時単位、分単位、秒単位など)で得ることができるRTCを組み込む手法が広く用いられている。
【0007】
たとえば、インク供給ユニットの管理情報(たとえば、カラーか白黒か、印字回数はどれぐらいか、標準的な残り寿命はどれぐらいか)とともに、そのインク供給ユニットを装着した時刻をプリンタが備えるフラッシュEEPROM(Electrically Erasable Programmable Read Only Memory)などの不揮発性記憶装置に記憶し、これらの情報が必要になった場合は、これらの情報をプリンタからホストコンピュータへ送信したり、プリンタから紙に印刷したりしていた。
【0008】
そして、プリンタが有するRTCは、工場出荷時にその日時情報の時刻合わせ等を行うのが一般的であり、それ以外では、時刻合わせができないように構成されていた。
【0009】
【発明が解決しようとする課題】
しかしながら、このような日時情報が狂うこともありえ、日時情報が狂ったままでは、プリンタの管理情報が有意義なデータとして活用できなくなってしまうという問題を生ずる。
【0010】
一方、外部から日時情報を合わせることができるようにするのであれば、ユーザにわかりやすく、簡易な設定技術が強く望まれる。
【0011】
本発明は、以上のような問題を解決するためになされたもので、RTCを有する印刷装置の日時情報を取得したり設定したりするのに好適な、ホストコンピュータ、これらの制御方法、および、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体を提供することを目的とする。
さらに、指示入力受付部は、印刷装置の日時情報を、ホストコンピュータのRTCの日時情報に合わせる旨のユーザ指示入力を受け付ける。
【0012】
【課題を解決するための手段】
以上の目的を達成するため、本発明の原理にしたがって、下記の発明を開示する。
【0024】
本発明の第2の観点に係るホストコンピュータは、RTCと、RTC読出指令生成送信部と、日時情報受信部と、日時情報表示部と、入力部と、指示入力受付部と、RTC設定指令生成送信部と、を備えるように構成する。
【0025】
RTCは、日時情報をリアルタイムに更新する。
【0026】
RTC読出指令生成送信部は、印刷装置の日時情報を取得するためのRTC読出指令を生成して前記印刷装置へ送信する。
【0027】
日時情報受信部は、印刷装置から送信される日時情報を受信する。
【0028】
日時情報表示部は、RTCから取得された日時情報と、受信した日時情報と、を表示する。
【0029】
入力部は、印刷装置の日時情報を設定する入力を受け付ける。
【0030】
RTC設定指令生成送信部は、入力部にて受け付けた入力をRTC設定指令として生成し、印刷装置へ送信する。
【0031】
前記指示入力受付部は、前記印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、前記入力部から入力された日時情報に合わせるか、を選択することができることを特徴とする。
【0045】
本発明の第4の観点に係る制御方法は、ホストコンピュータを制御し、日時情報をリアルタイムに更新する工程と、RTC読出指令生成送信工程と、日時情報受信工程と、日時情報表示する工程と、入力工程と、指示入力受付工程と、RTC設定指令生成送信工程と、を備えるように構成する。
【0046】
日時情報をリアルタイムに更新する工程で、RTCは、日時情報をリアルタイムに更新する。
【0047】
RTC読出指令生成送信工程では、印刷装置の日時情報を取得するためのRTC読出指令を生成して前記印刷装置へ送信する。
【0048】
さらに、日時情報受信工程では、印刷装置から送信される日時情報を受信する。
【0049】
日時情報表示工程では、RTCから取得された日時情報と、受信された日時情報と、を表示する。
【0050】
入力工程では、印刷装置の日時情報を設定する入力を受け付ける。
【0051】
指示入力受付工程は、印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、入力部から入力された日時情報に合わせるか、を選択し、
RTC設定指令生成送信工程では、指示入力受付工程にて受け付けた入力をRTC設定指令として生成し、印刷装置へ送信する。
【0054】
前述のホストコンピュータに設けられる各機能部は、プリンタドライバとしてホストコンピュータにインストールされ用いられる。
【0055】
本発明のホストコンピュータと、これらの制御方法を実現するプログラムをコンパクトディスク、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、半導体メモリなどの情報記録媒体に記憶することができる。
【0056】
さらに、本発明の印刷装置やホストコンピュータを制御するためのプログラムを、WWW(World Wide Web)のサーバコンピュータに配置し、ここからオペレータが適宜ダウンロードして印刷装置やホストコンピュータに記憶させてプログラムを更新し、印刷装置やホストコンピュータにこのプログラムを実行させることができる。
【0057】
【発明の実施の形態】
以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本発明の範囲に含まれる。
【0058】
(印刷装置の実施形態)
図1は、本発明の第1の実施形態に係る印刷装置(プリンタ)の概要構成を示す模式図である。以下、本図を参照して説明する。
【0059】
プリンタ101は、ホストコンピュータ150とインターフェース102を介して接続され、指令データの送受信を行う。
【0060】
ホストコンピュータ150が指令データを送信し、インターフェース102がこれの到着を検知すると、CPU(Central Processing Unit)104に対して割り込みがかかる。CPU 104は、この割り込み処理において、当該指令データをインターフェース102に受信させて、RAM 103内の受信バッファ(図示せず)に記憶させる。
【0061】
一方、CPU 104は、受信バッファに記憶された指令データを解釈して、これが印刷指令であれば、印刷指令に指定された文字や図形の印刷イメージをRAM 103内のプリントバッファに展開する。
【0062】
また、プリントバッファが一杯になった場合や、改行指令に遭遇した場合など、所定のタイミングで印刷ヘッド、プラテン、紙送り機構などを含む印刷処理部105を動作させ、文字や図形を紙に印刷する。文字フォントの定義は、ROM110に記憶されている。
【0063】
印刷処理部105の印刷ヘッドにインクを供給するためのインク供給ユニット106は交換可能であり、交換したか否かの情報をCPU 104が得ることができる。
【0064】
RTC 107は、工場出荷時にその日時情報(年月日時分秒の情報)が設定され、リアルタイムにその日時情報を更新する。
【0065】
プリンタ101は、必要に応じてRTC 107に時刻の情報を要求し、現在の時刻の情報を応答として得ることにより、インク供給ユニット106の交換の現実の時刻を知ることができる。
【0066】
フラッシュEEPROM 108には、インク供給ユニット106の交換の日時、インク供給ユニット106の管理情報(白黒かカラーか、何回印刷したか、あとどれぐらい寿命があると推測されるか、など)を不揮発に記憶する。これらの情報は、インターフェース102を介してホストコンピュータ150に送信され、プリンタ101の保守情報として利用される。
【0067】
また、印刷処理部105を動作させることにより、これらの管理情報を印刷することもできる。
【0068】
説明の都合上、管理の対象としてインク供給ユニット106をとりあげているが、これ以外の管理対象として、用紙を切断するカッター刃、印刷ヘッドなどを追加したり、管理対象を変更することは容易である。複数の管理対象がある場合には、フラッシュEEPROM 108にそれぞれの管理対象用の領域を設ければよい。
【0069】
CPU 104の制御によって各部が動作するが、この制御用プログラムはROM(Read Only Memory)110に記憶されており、CPU 104は、電源投入時から、ROM 110に記憶されたプログラムを順次実行する。ROM 110に記憶されたプログラムは、適宜バージョンアップすることができる。
【0070】
ここで、RTC 107は、本発明の印刷装置のRTCとして機能する。
【0071】
インターフェース102は、本発明の印刷装置の指令データ受信部として機能する。
【0072】
印刷処理部105は、本発明の印刷装置の印刷処理部として機能する。
【0073】
インターフェース102は、本発明の印刷装置の日時情報設定部として機能する。
【0074】
CPU 104は、本発明の印刷装置の日時情報設定部として機能する。
【0075】
フラッシュEEPROM 108は、本発明の印刷装置の記憶部として機能する。
【0076】
インターフェース102、もしくは、印刷処理部105は、本発明の報告部として機能する。
【0077】
なお、記憶部として、フラッシュEEPROM 108ではなく、ハードディスク、フロッピーディスクなどの不揮発性記憶装置を利用することができる。また、インターフェース102を介して接続されたホストコンピュータ150を記憶部として利用することもできる。これらの実施形態も本発明の範囲に含まれる。
【0078】
また、ROM 110は、印刷装置を制御するプログラムを記録した情報記録媒体として機能する。
【0079】
(ホストコンピュータの実施形態)
図2は、本発明の第1の実施形態に係るホストコンピュータの概要構成を示す模式図である。以下、本図を参照して説明する。なお、本発明のホストコンピュータとしては、汎用ビジネスコンピュータ、携帯端末、レジスタ、会計システムなどのさまざまな情報処理装置を採用することができる。これらの情報処理装置に本発明の情報記録媒体に記憶されたプログラムを実行させることにより、本発明のホストコンピュータを実現することができる。
【0080】
ホストコンピュータ150は、CPU 202によって制御される。CPU 202は、インターフェース203を介してプリンタ101と通信を行う。CPU 202は、通信に必要なバッファなど、一時的な記憶領域としてRAM 204を使用する。
【0081】
電源投入時にCPU 202が実行する初期ローダプログラム(Initial Program Loader)はROM 205に記憶されている。初期ローダプログラムは、適宜ハードディスク206やフロッピーディスク207などの本発明の情報記憶媒体に記憶されたプログラムをRAM 204に読み込み、これをCPU 202が実行する。
【0082】
ユーザは、キーボードやマウスなどの入力装置208から指示を入力し、これに応じてプリンタ101は、文字や図形を印刷したり、管理情報を報告してきたりする。プリンタ101が送信してきた管理情報や、当該プリンタ101のRTCの日時情報は、CRT(Cathode Ray Tube)や液晶ディスプレイなどの表示装置209に表示することができる。
【0083】
ホストコンピュータ150のRTC 210は、日時情報をリアルタイムに更新する。本実施形態においては、プリンタ101のRTC 107が示す日時情報を、ホストコンピュータ150のRTC 210が示す日時情報に時刻合わせすることができる。RTC 210は、ホストコンピュータ150本体の電源とは別に、電池や大容量コンデンサなどのバッテリバックアップがされている。
【0084】
ここで、RTC 210は、本発明のホストコンピュータのRTCとして機能する。
【0085】
一方、CPU 202は、インターフェース203と共働して、印刷指令生成送信部、RTC読出指令生成送信部、RTC設定指令生成送信部として機能する。
【0086】
さらに、表示装置209は、日時情報表示部として機能する。
【0087】
そして、入力装置208は、指示入力受付部として機能する。
【0088】
これらの機能部を動作させるプログラムは、ホストコンピュータ内のプリンタドライバの中に組み込まれる。このプリンタドライバは、一般的にプリンタを提供するメーカによって提供される。
【0089】
(指令データとその処理)
本実施形態において、ホストコンピュータ150からプリンタ101に送信される指令データには、以下のようなものがある。
・印刷処理指令
・RTC読出指令
・RTC設定指令
図3は、本実施形態のプリンタ101において実行される通常処理の制御の流れを示すフローチャートである。以下本図を参照して説明する。
【0090】
まず、CPU 104は、RAM 103内の受信バッファが空であるか否かを調べる(ステップS301)。空である場合(ステップS301;Yes)、待機してから(ステップS302)、ステップS301に戻る。なお、この待機の際には、他の処理に制御を移すことができる。いわゆるコルーチン的な処理である。したがって、待機の最中に、受信割り込みが発生して、受信バッファに指令データが蓄積されることもある。
【0091】
一方、受信バッファが空でない場合(ステップS301;No)、その先頭から指令データを読み出す(ステップS303)。指令データは、その種類によって、1バイトのこともあれば、複数バイトからなることもある。
【0092】
次に、読み出した指令データの種類を調べる(ステップS304)。
【0093】
指令データが印刷処理指令である場合(ステップS304;印刷処理)、たとえば、ASCIIコードで0x20〜0x7e(0xは十六進数を示す接頭辞)の指令データや、0x0aや0x0dなどは、復帰や改行などの指令データである場合には、当該ASCIIコードにより指定された文字を印刷し、あるいは、印刷ヘッドの復帰や改行など、当該指令データに対応付けられた印刷処理を行う(ステップS305)。さらに、当該文字を印刷したことによるインクの使用量の管理情報を、最後に印刷処理を行った日時の情報とともに、フラッシュEEPROM 108に記憶して(ステップS306)、ステップS301に戻る。
【0094】
一方、指令データがRTC読出指令である場合(ステップS304;RTC読出)、RTC 107から日時情報を取得して(ステップS307)、これを、インターフェース102を介してホストコンピュータ150に報告し(ステップS308)、ステップS301に戻る。
【0095】
RTC読出指令は、たとえば以下のフォーマットの指令データにより表現される。
【0096】
・「0x1b ● ● Y」。プリンタ101は、年の情報を読み出して報告する。
・「0x1b ● ● M」。プリンタ101は、年月の情報を読み出して報告する。
・「0x1b ● ● D」。プリンタ101は、年月日の情報を読み出して報告する。
・「0x1b ● ● h」。プリンタ101は、年月日時の情報を読み出して報告する。
・「0x1b ● ● m」。プリンタ101は、年月日時分の情報を読み出して報告する。
・「0x1b ● ● s」。プリンタ101は、年月日時分秒のすべての情報を読み出して報告する。
【0097】
但し上記「● ●」は、所定の文字列、あるいはコード列であり、プリンタを制御するコマンドコードとして予め設定される。
【0098】
このように、各種の精度のRTC読出指令を用意することにより、必要な精度でプリンタ101のRTC 107の日時情報を得ることができる。なお、RTC読出の精度は、上記のいずれかのみが利用できるように構成設定してもよい。
【0099】
なお、プリンタ101による日時情報の報告には、特開平7−137358号公報に開示されているようなASB(Auto Status Back)機能を用いることが望ましい。
【0100】
一方、指令データがRTC設定指令である場合(ステップS304;RTC読出)、当該RTC設定指令に指定された日時情報を取得して(ステップS309)、当該日時情報にRTC 107を設定し(ステップS310)、ステップS301に戻る。
【0101】
RTC読出指令は、たとえば以下のフォーマットの指令データにより表現される。
【0102】
・「0x1b ◆ ◆ Y 2000」。RTC 107の日時情報のうち、年の情報を2000年に設定する。
・「0x1b ◆ ◆ M 200012」。RTC 107の日時情報のうち、年月の情報を2000年12月に設定する。
・「0x1b ◆ ◆ D 20001231」。RTC 107の日時情報のうち、年月日の情報を2000年12月31日に設定する。
・「0x1b ◆ ◆ h 2000123106」。RTC 107の日時情報のうち、年月日時の情報を2000年12月31日6時に設定する。
・「0x1b ◆ ◆ m 200012310645」。RTC 107の日時情報のうち、年月日時分の情報を2000年12月31日6時45分に設定する。
・「0x1b ◆ ◆ s 20001231064559」。RTC 107の日時情報のうち、年の情報を2000年12月31日6時45分59秒に設定する。
【0103】
但し、「◆ ◆」は、上記と同様予め設定されている、文字列あるいはコード列である。
【0104】
このように、各種の精度のRTC設定指令を用意することにより、必要な精度でプリンタ101のRTC 107の日時情報を設定することができる。なお、RTC設定の精度は、上記のいずれかのみが利用できるように構成設定してもよい。また、RTC設定の精度は、RTC読出の精度と同じ精度とすることが望ましい。
【0105】
一方、指令データがこれ以外の指令データである場合(ステップS304;その他)、対応する処理を実行して(ステップS311)、ステップS301に戻る。
【0106】
RTC 107によって、CPU 104は現在の時刻の情報を得ることができる。この時刻の情報を用いれば、たとえば、インク供給ユニット106の交換時期などの情報当該インク供給ユニット106の情報などとともにフラッシュEEPROM 108に記憶することができる。図4には、このようなフラッシュEEPROM 108の領域の一例を示す。
【0107】
フラッシュEEPROM 108には、インク供給ユニット106を装着した日時情報を記憶する領域601と、インク供給ユニットの種類を記憶する領域602と、インク供給ユニットをどの程度使用したかの使用量を記憶する領域603と、あとどの程度の期間インク供給ユニットを使用できるかを予測した値を記憶する領域604と、が用意されている。
【0108】
さらに、これらの領域を複数設けることにより、インク供給ユニットの使用の履歴をプリンタ101に不揮発に記憶させてもよい。
【0109】
これらの情報をホストコンピュータ150に送信したり、印刷処理部105を駆動して紙などに印刷したりすることができる。これらの管理情報の扱いについては、公知の技法を利用することができるため、本願では詳細な説明は省略する。
【0110】
(プリンタの設定)
現在普及しているオペレーティングシステムでは、ホストコンピュータ150からプリンタ101の各種の設定を行うことができるようになっているものが多い。図5、図6は、ホストコンピュータ150の表示装置209に表示されるプリンタ101設定用の設定ウィンドウの様子を示す説明図である。以下、本図を参照して説明する。
【0111】
プリンタ設定ウィンドウ701には、基本タブ711、詳細タブ721、時刻タブ731が割り当てられている。ユーザは、マウスなどの入力装置208を操作して、タブを選択する。
【0112】
図5は、基本タブ711をクリックすることにより、基本的な設定ができるようにしたものであり、印刷品質712、用紙サイズ713、用紙タイプ714を設定することができる。
【0113】
図6は、時刻タブ731をクリックすることにより、プリンタ101のRTC107の設定を行うものである。
【0114】
プリンタ101のRTC 107の時刻は、プリンタ時刻更新ボタン732をクリックすると得られる。プリンタ時刻更新ボタン732をクリックすると、ホストコンピュータ150のCPU 202は、上述のRTC読出指令を生成して、プリンタ101に送信し、プリンタ101が返す日時情報を取得して、プリンタ時刻欄733に表示する。なお、この時刻タブ731が選択されると自動的にプリンタ101に問い合わせるような実施態様を採用してもよい。
【0115】
一方、PC時刻欄734には、ホストコンピュータ150が備えるRTC 210の日時情報が表示される。
【0116】
プリンタ時刻欄733、PC時刻欄734に表示される日時情報は、一旦RTC 107、210から取得された後は、これらへの問い合わせを省略してリアルタイムに更新するようにしてもよい。
【0117】
時刻設定は、「PCに合わせる」と「入力日時に合わせる」のいずれかのチェックボックス735、736を選択し、確定ボタン737をクリックすればよい。
【0118】
「PCに合わせる」を選択した場合、ホストコンピュータ150は、RTC 210から取得した日時情報を指定するRTC設定指令を生成して、これをプリンタ101に送信することにより、プリンタ101のRTC 107を更新する。
【0119】
一方、「入力日時に合わせる」を選択した場合、日時入力欄738に年月日時分秒情報を入力してから確定ボタン738をクリックする。これにより、対応するRTC設定指令が生成、送信される。
【0120】
【発明の効果】
以上説明したように、本発明によれば、RTCを有する印刷装置の日時情報を取得したり設定したりするのに好適な、印刷装置、ホストコンピュータ、これらの制御方法、および、これらを実現するプログラムを記録したコンピュータ読取可能な情報記録媒体を提供することができる。
【図面の簡単な説明】
【図1】本発明のプリンタの実施形態例の概要構成を示す模式図。
【図2】本発明のホストコンピュータの実施形態例の概要構成を示す模式図。
【図3】本実施形態のプリンタにて実行される通常処理の流れを示すフローチャート。
【図4】本実施形態のプリンタのフラッシュEEPROMに記録される管理情報の様子を示す説明図。
【図5】本実施形態のホストコンピュータが提供するプリンタ設定ウィンドウの表示例。
【図6】本実施形態のホストコンピュータが提供するプリンタ設定ウィンドウの表示例。
【符号の説明】
101 プリンタ
102 インターフェース
103 RAM
104 CPU
105 印刷処理部
106 インク供給ユニット
107 カウンタ
108 フラッシュEEPROM
110 ROM
150 ホストコンピュータ
202 CPU
203 インターフェース
204 RAM
205 ROM
206 ハードディスク
207 フロッピーディスク
208 入力装置
209 表示装置
210 RTC
601 使用開始日時領域
602 種類領域
603 使用量領域
604 使用期限予測値領域
701 プリンタ設定ウィンドウ
711 基本タブ
712 印字品質
713 用紙サイズ
714 用紙タイプ
721 詳細タブ
731 時刻タブ
732 プリンタ時刻更新ボタン
733 プリンタ時刻欄
734 PC時刻欄
735 チェックボックス
736 チェックボックス
737 確定ボタン
738 日時入力欄[0001]
BACKGROUND OF THE INVENTION
The present invention, the host computer and foremost, these control methods, and an information recording medium.
[0002]
In particular, a real time clock (Real Time Clock; RTC) suitable for get or set the date and time information of a printing apparatus having a host computer, these control methods, and recording a program for realizing these The present invention relates to a computer-readable information recording medium.
[0003]
[Prior art]
2. Description of the Related Art Printing apparatuses (printers) are widely used as apparatuses for printing characters and figures on a printed material such as paper. Such a printer is connected to a host computer (information processing apparatus such as a business computer), and the host computer transmits data for printing characters and graphics and data for controlling the printer itself to the printer. On the other hand, the printer can transmit data such as its own status to the host computer.
[0004]
Such printers use ink to print characters and graphics. Inkjet printers use replaceable ink tanks, and dot impact printers and thermal transfer printers use replaceable ink ribbons. Information such as the time when the ink supply unit is replaced and the service life is important as information for cost reduction, maintenance and operation of the printer.
[0005]
In addition, consumables such as print heads and paper cutters are used in printers. As with the ink supply unit, if necessary information such as replacement timing can be obtained, advice necessary for maintenance and operation is also available. Can be performed on the user.
[0006]
Here, in order to obtain information on the time of such replacement, information on the actual time, that is, year / month / day / hour / minute / second at a desired time point, is obtained with a predetermined accuracy (for example, daily unit, hour unit, minute unit). A method of incorporating an RTC that can be obtained in units, seconds, etc. is widely used.
[0007]
For example, the management information of the ink supply unit (for example, whether it is color or black and white, how many times to print, how long is the standard remaining life), and the flash EEPROM (when the ink supply unit is installed) This information is stored in a non-volatile storage device such as Electrically Erasable Programmable Read Only Memory, and when such information is needed, it is sent from the printer to the host computer or printed on paper from the printer. It was.
[0008]
The RTC included in the printer generally performs time adjustment of the date / time information at the time of shipment from the factory, and otherwise it is configured so that time adjustment is not possible.
[0009]
[Problems to be solved by the invention]
However, such date / time information may be distorted, and if the date / time information is distorted, the printer management information cannot be used as meaningful data.
[0010]
On the other hand, if date and time information can be adjusted from the outside, a simple setting technique that is easy to understand for the user is strongly desired.
[0011]
The present invention has been made to solve the above problems, suitable for get or set the date and time information of the printing apparatus having the RTC, the host computer, these control methods, and Another object of the present invention is to provide a computer-readable information recording medium in which a program for realizing these is recorded.
Further, the instruction input receiving unit receives a user instruction input for matching the date and time information of the printing apparatus with the date and time information of the RTC of the host computer.
[0012]
[Means for Solving the Problems]
In order to achieve the above object, the following invention is disclosed in accordance with the principle of the present invention.
[0024]
A host computer according to a second aspect of the present invention includes an RTC, an RTC read command generation / transmission unit, a date / time information reception unit, a date / time information display unit, an input unit, an instruction input reception unit, and an RTC setting command generation And a transmission unit.
[0025]
The RTC updates the date / time information in real time.
[0026]
The RTC read command generation / transmission unit generates an RTC read command for acquiring date / time information of the printing apparatus, and transmits the RTC read instruction to the printing apparatus.
[0027]
The date / time information receiving unit receives date / time information transmitted from the printing apparatus.
[0028]
The date / time information display unit displays the date / time information acquired from the RTC and the received date / time information.
[0029]
The input unit receives an input for setting date information of the printing apparatus.
[0030]
The RTC setting command generation / transmission unit generates an input received by the input unit as an RTC setting command, and transmits the generated command to the printing apparatus.
[0031]
The instruction input receiving unit can select whether to match the date and time information of the printing apparatus with the date and time information of the real-time clock or to match the date and time information input from the input unit .
[0045]
A control method according to a fourth aspect of the present invention includes a step of controlling a host computer to update date / time information in real time, an RTC read command generation / transmission step, a date / time information reception step, a date / time information display step, An input process, an instruction input reception process, and an RTC setting command generation transmission process are provided.
[0046]
In the process of updating the date information in real time, the RTC updates the date information in real time.
[0047]
In the RTC read command generation / transmission step, an RTC read command for acquiring date / time information of the printing apparatus is generated and transmitted to the printing apparatus .
[0048]
Further, in the date / time information receiving step, date / time information transmitted from the printing apparatus is received.
[0049]
In the date / time information display step, the date / time information acquired from the RTC and the received date / time information are displayed.
[0050]
In the input step, an input for setting date information of the printing apparatus is received.
[0051]
The instruction input receiving step selects whether to match the date and time information of the printing apparatus with the date and time information of the real-time clock or the date and time information input from the input unit,
In the RTC setting command generation / transmission step, the input received in the instruction input reception step is generated as an RTC setting command and transmitted to the printing apparatus.
[0054]
Each functional unit provided in the above-described host computer is installed and used as a printer driver in the host computer.
[0055]
And the host computer of the present invention stores a program for realizing these control methods compact disk, floppy disk, hard disk, magneto-optical disk, a digital video disk, a magnetic tape, an information recording medium such as a semiconductor memory be able to.
[0056]
Furthermore, the program for controlling the printing apparatus and the host computer of the present invention is arranged in a WWW (World Wide Web) server computer, from which the operator downloads it appropriately and stores it in the printing apparatus and the host computer. The program can be updated and executed by the printing apparatus or the host computer.
[0057]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below. The embodiments described below are for explanation, and do not limit the scope of the present invention. Therefore, those skilled in the art can employ embodiments in which each or all of these elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.
[0058]
(Embodiment of printing apparatus)
FIG. 1 is a schematic diagram illustrating a schematic configuration of a printing apparatus (printer) according to a first embodiment of the present invention. Hereinafter, a description will be given with reference to FIG.
[0059]
The
[0060]
When the
[0061]
On the other hand, the
[0062]
Also, when the print buffer is full or when a line feed command is encountered, the
[0063]
The
[0064]
The RTC 107 is set with date / time information (year / month / day / hour / minute / second information) at the time of factory shipment, and updates the date / time information in real time.
[0065]
The
[0066]
In the
[0067]
Also, the management information can be printed by operating the
[0068]
For convenience of explanation, the
[0069]
Each unit operates under the control of the
[0070]
Here, the RTC 107 functions as the RTC of the printing apparatus of the present invention.
[0071]
The
[0072]
The
[0073]
The
[0074]
The
[0075]
The
[0076]
The
[0077]
As the storage unit, a nonvolatile storage device such as a hard disk or a floppy disk can be used instead of the
[0078]
The
[0079]
(Host computer embodiment)
FIG. 2 is a schematic diagram showing a schematic configuration of the host computer according to the first embodiment of the present invention. Hereinafter, a description will be given with reference to FIG. As the host computer of the present invention, various information processing apparatuses such as a general-purpose business computer, a portable terminal, a register, and an accounting system can be employed. By causing these information processing apparatuses to execute programs stored in the information recording medium of the present invention, the host computer of the present invention can be realized.
[0080]
The
[0081]
An initial loader program (Initial Program Loader) executed by the CPU 202 when the power is turned on is stored in the
[0082]
The user inputs an instruction from the input device 208 such as a keyboard and a mouse, and in response to this, the
[0083]
The
[0084]
Here, the
[0085]
On the other hand, the CPU 202 functions in cooperation with the
[0086]
Further, the display device 209 functions as a date / time information display unit.
[0087]
The input device 208 functions as an instruction input receiving unit.
[0088]
A program for operating these functional units is incorporated in a printer driver in the host computer. This printer driver is generally provided by a manufacturer that provides a printer.
[0089]
(Command data and its processing)
In the present embodiment, command data transmitted from the
Print Processing Command RTC Read Command RTC Setting Command FIG. 3 is a flowchart showing a control flow of normal processing executed in the
[0090]
First, the
[0091]
On the other hand, when the reception buffer is not empty (step S301; No), the command data is read from the head (step S303). The command data may be one byte or a plurality of bytes depending on the type.
[0092]
Next, the type of the read command data is checked (step S304).
[0093]
When the command data is a print processing command (step S304; print processing), for example, command data of 0x20 to 0x7e (0x is a prefix indicating a hexadecimal number) in ASCII code, 0x0a, 0x0d, etc. are returned or returned In the case of the command data, the character designated by the ASCII code is printed, or the printing process associated with the command data such as return of the print head or line feed is performed (step S305). Further, the management information of the amount of ink used due to the printing of the character is stored in the
[0094]
On the other hand, if the command data is an RTC read command (step S304; RTC read), date / time information is acquired from the RTC 107 (step S307), and this is reported to the
[0095]
The RTC read command is expressed by command data in the following format, for example.
[0096]
• “0x1b ● ● Y”. The
• “0x1b ● ● M”. The
• “0x1b ● ● D”. The
• “0x1b ● ● h”. The
• “0x1b ● ● m”. The
• “0x1b ● ● s”. The
[0097]
However, “● ●” is a predetermined character string or code string, and is preset as a command code for controlling the printer.
[0098]
In this way, by preparing RTC read commands with various accuracies, date / time information of the RTC 107 of the
[0099]
For the date / time information reporting by the
[0100]
On the other hand, when the command data is an RTC setting command (step S304; RTC reading), the date and time information specified in the RTC setting command is acquired (step S309), and the RTC 107 is set in the date and time information (step S310). ), The process returns to step S301.
[0101]
The RTC read command is expressed by command data in the following format, for example.
[0102]
・ "0x1b ◆ ◆ Y 2000". Of the date and time information of the RTC 107, the year information is set to 2000.
・ "0x1b ◆ ◆ M 200012". Of the date and time information of the RTC 107, the date information is set to December 2000.
・ "0x1b ◆ ◆ D 20001231". Of the date and time information of the RTC 107, the date information is set to December 31, 2000.
・ "0x1b ◆ ◆ h 2000123106". Of the date and time information of the RTC 107, the date and time information is set at 6:00 on December 31, 2000.
・ "0x1b ◆ ◆ m 200012310645". Of the date and time information of the RTC 107, the information for the date and time is set to 6:45 on December 31, 2000.
・ "0x1b ◆ ◆ s 20001231064559". Of the date and time information of the RTC 107, the year information is set to 6:45:59 on December 31, 2000.
[0103]
However, “◆ ◆” is a character string or code string set in advance as described above.
[0104]
In this way, by preparing RTC setting commands with various accuracies, the date and time information of the RTC 107 of the
[0105]
On the other hand, when the command data is other command data (step S304; other), the corresponding process is executed (step S311), and the process returns to step S301.
[0106]
The RTC 107 allows the
[0107]
The
[0108]
Further, by providing a plurality of these areas, the history of use of the ink supply unit may be stored in the
[0109]
These pieces of information can be transmitted to the
[0110]
(Printer settings)
Many operating systems that are widely used now allow various settings of the
[0111]
A
[0112]
FIG. 5 shows that basic settings can be made by clicking a
[0113]
FIG. 6 shows the setting of the RTC 107 of the
[0114]
The time of the RTC 107 of the
[0115]
On the other hand, in the
[0116]
Once the date and time information displayed in the
[0117]
To set the time, any one of the
[0118]
When “match with PC” is selected, the
[0119]
On the other hand, when “same to input date / time” is selected, year / month / day / hour / minute / second information is input to the date /
[0120]
【The invention's effect】
As described above, according to the present invention, a printing apparatus, a host computer, a control method thereof, and these suitable for acquiring or setting date / time information of a printing apparatus having an RTC are realized. A computer-readable information recording medium in which a program is recorded can be provided.
[Brief description of the drawings]
FIG. 1 is a schematic diagram showing a schematic configuration of an embodiment of a printer of the present invention.
FIG. 2 is a schematic diagram showing a schematic configuration of an embodiment of a host computer of the present invention.
FIG. 3 is a flowchart showing a flow of normal processing executed by the printer of the present embodiment.
FIG. 4 is an explanatory diagram showing a state of management information recorded in a flash EEPROM of the printer according to the embodiment.
FIG. 5 is a display example of a printer setting window provided by the host computer of the embodiment.
FIG. 6 is a display example of a printer setting window provided by the host computer of the embodiment.
[Explanation of symbols]
101
104 CPU
105
110 ROM
150 Host computer 202 CPU
203
205 ROM
206
601 Use start date and
Claims (6)
前記印刷装置から送信される日時情報を受信する日時情報受信部と、
前記リアルタイムクロックから取得した日時情報と、前記受信した日時情報と、を表示する日時情報表示部と、
前記日時情報を入力する入力部と、
前記印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、前記入力部から入力された日時情報に合わせるか、を選択可能に設定する指示入力受付部と、
前記指示入力受付部にて受け付けた入力をリアルタイムクロック設定指令として生成し、前記印刷装置へ送信するリアルタイムクロック設定指令生成送信部と、
を備えることを特徴とするホストコンピュータ。A real-time clock that updates the date and time information in real time; a real-time clock read command generation and transmission unit that generates a real-time clock read command to acquire the date and time information of the printing device and transmits the command to the printing device;
A date and time information receiving unit for receiving date and time information transmitted from the printing apparatus;
A date and time information display unit for displaying the date and time information acquired from the real-time clock and the received date and time information;
An input unit for inputting the date and time information;
Or adjust the date and time information of the printing device at the date and time information of the real time clock, or match the date and time information input from the input unit, and a selectable set finger示入force reception unit,
A real-time clock setting command generation / transmission unit that generates an input received by the instruction input reception unit as a real-time clock setting command and transmits the input to the printing apparatus;
A host computer comprising:
印刷装置の日時情報を取得するためのリアルタイムクロック読出指令を生成して前記印刷装置へ送信するリアルタイムクロック読出指令生成送信部と、
前記印刷装置から送信される日時情報を受信する日時情報受信部と、
前記リアルタイムクロックから取得した日時情報と、前記受信した日時情報と、を表示する日時情報表示部と、
前記日時情報を入力する入力部と、
前記印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、前記入力部から入力された日時情報に合わせるか、を選択可能に設定する指示入力受付部と、
前記指示入力受付部にて受け付けた入力をリアルタイムクロック設定指令として生成し、前記印刷装置へ送信するリアルタイムクロック設定指令生成送信部と、
を備えることを特徴とするプリンタドライバ。A real-time clock that updates the date and time information in real time;
A real-time clock read command generation and transmission unit for generating a real-time clock read command for acquiring date and time information of the printing device and transmitting the command to the printing device;
A date and time information receiving unit for receiving date and time information transmitted from the printing apparatus;
A date and time information display unit for displaying the date and time information acquired from the real-time clock and the received date and time information;
An input unit for inputting the date and time information;
An instruction input receiving unit configured to select whether to match the date and time information of the printing apparatus with the date and time information of the real-time clock or to match the date and time information input from the input unit;
A real-time clock setting command generation / transmission unit that generates an input received by the instruction input reception unit as a real-time clock setting command and transmits the command to the printing apparatus;
A printer driver comprising:
リアルタイムクロックにより日時情報をリアルタイムに更新する工程と、
印刷装置の日時情報を取得するためのリアルタイムクロック読出指令を生成して前記印刷装置へ送信するリアルタイムクロック読出指令生成送信工程と、
前記印刷装置から送信される日時情報を受信する日時情報受信工程と、
前記リアルタイムクロックから取得した日時情報と、前記受信した日時情報と、を表示する日時情報表示工程と、
前記日時情報を入力する入力工程と、
前記印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、前記入力された日時情報に合わせるか、を選択可能に設定する指示入力受付工程と、
前記受け付けた入力をリアルタイムクロック設定指令として生成し、前記印刷装置へ送信するリアルタイムクロック設定指令生成送信工程と、
を備えることを特徴とする制御方法。A control method for controlling a printing apparatus having a real-time clock for updating date and time information in real time,
Updating the date and time information in real time with a real-time clock;
A real-time clock read command generation and transmission step for generating a real-time clock read command for acquiring date and time information of the printing device and transmitting the command to the printing device;
A date and time information receiving step for receiving date and time information transmitted from the printing device;
Date and time information display step for displaying the date and time information acquired from the real-time clock and the received date and time information;
An input step for inputting the date and time information;
Or adjust the date and time information of the printing device at the date and time information of the real time clock, or matched to the input date and time information, the instruction input reception step of setting a selectable,
Generating said acceptance is input as a real-time clock setting command, a real time clock setting command generating transmission step of transmitting to the printing apparatus,
A control method comprising:
リアルタイムクロックにより日時情報をリアルタイムに更新する手順と、
印刷装置の日時情報を取得するためのリアルタイムクロック読出指令を生成して前記印刷装置へ送信するリアルタイムクロック読出指令生成送信手順と、
前記印刷装置から送信される日時情報を受信する日時情報受信手順と、
前記リアルタイムクロックから取得した日時情報と、前記受信した日時情報と、を表示する日時情報表示手順と、
前記日時情報を入力する入力手順と、
前記印刷装置の日時情報を前記リアルタイムクロックの日時情報に合わせるか、前記入力された日時情報に合わせるか、を選択可能に設定する指示入力受付手順と、
前記受け付けた入力をリアルタイムクロック設定指令として生成し、前記印刷装置へ送信するリアルタイムクロック設定指令生成送信手順と、
を実現することを特徴とするプログラムを記録したコンピュータ読取可能な情報記録媒体。A program for controlling a host computer,
Procedure to update the date and time information in real time with a real time clock,
Real-time clock read command generation and transmission procedure for generating a real-time clock read command for acquiring date and time information of the printing device and transmitting the command to the printing device;
Date and time information reception procedure for receiving date and time information transmitted from the printing device;
Date and time information display procedure for displaying the date and time information acquired from the real-time clock and the received date and time information;
An input procedure for inputting the date and time information;
Or adjust the date and time information of the printing device at the date and time information of the real time clock, or matched to the input date and time information, the instruction input receiving instructions to set selectable,
The acceptance is input to generate a real-time clock setting command, a real time clock setting command generating transmission step of transmitting to the printing apparatus,
A computer-readable information recording medium on which a program is recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000087274A JP4670124B2 (en) | 2000-03-27 | 2000-03-27 | Host computer, printer driver, control method therefor, and information recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000087274A JP4670124B2 (en) | 2000-03-27 | 2000-03-27 | Host computer, printer driver, control method therefor, and information recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001270197A JP2001270197A (en) | 2001-10-02 |
| JP4670124B2 true JP4670124B2 (en) | 2011-04-13 |
Family
ID=18603308
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000087274A Expired - Fee Related JP4670124B2 (en) | 2000-03-27 | 2000-03-27 | Host computer, printer driver, control method therefor, and information recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4670124B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3933018B2 (en) | 2002-09-17 | 2007-06-20 | セイコーエプソン株式会社 | Printer and information processing apparatus |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH046571A (en) * | 1990-04-25 | 1992-01-10 | Ricoh Co Ltd | Image forming device life monitoring device |
| JPH07146734A (en) * | 1993-11-25 | 1995-06-06 | Toshiba Corp | How to set the time on the processor |
| JP3199950B2 (en) * | 1994-03-31 | 2001-08-20 | キヤノン株式会社 | Printer device, printer system, and control method therefor |
| JPH11249846A (en) * | 1998-03-05 | 1999-09-17 | Canon Inc | Image forming apparatus, management method for image forming apparatus, and storage medium |
| JP2968791B1 (en) * | 1998-08-28 | 1999-11-02 | 新潟日本電気株式会社 | Printing system |
-
2000
- 2000-03-27 JP JP2000087274A patent/JP4670124B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2001270197A (en) | 2001-10-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4246367B2 (en) | Printing device | |
| US7043166B2 (en) | Methods and systems for providing firmware to a printing device | |
| US7884967B2 (en) | Printer control apparatus and method | |
| MXPA97003805A (en) | System and method of communication with print | |
| JP2006031674A (en) | Information processing apparatus and method, and program | |
| EP1739538B1 (en) | Operation request accepting apparatus and its control method, communication system and its operating method, computerreadable program and computerreadable storage medium | |
| JP4670124B2 (en) | Host computer, printer driver, control method therefor, and information recording medium | |
| JP6431279B2 (en) | Printing apparatus and printing apparatus control method | |
| US6700677B1 (en) | Printing apparatus, data output apparatus and computer readable memory medium | |
| JP2002067450A (en) | Printing apparatus, control method thereof, and information recording medium | |
| JP2007025864A (en) | Image processing device | |
| JP2809314B2 (en) | Printing equipment | |
| US20240338151A1 (en) | Non-transitory storage medium storing supporting program executable by computer of information processing apparatus | |
| US9508046B2 (en) | Methods and systems for providing web content to a printing device | |
| JP2025015404A (en) | Support program and display program | |
| US7436534B2 (en) | Printer, an operation panel thereof having a function for doing maintenance of print station | |
| US20060007487A1 (en) | Printer, control method, program and recording medium | |
| JP2001080167A (en) | Printing apparatus, information processing apparatus, control method thereof, and information recording medium | |
| KR100654791B1 (en) | System, apparatus, and program for processing character information | |
| JP2008194888A (en) | Printing apparatus, control method therefor, program, and storage medium | |
| JP4614394B2 (en) | Image forming apparatus, control method therefor, image forming system, and program | |
| JPH09187964A (en) | Image forming apparatus, information processing apparatus, system thereof, and control method | |
| JP2001138604A (en) | Printing apparatus, control method thereof, and information recording medium | |
| JP4670627B2 (en) | Printer control apparatus, system, method, program, and recording medium | |
| JP4507608B2 (en) | Printing system and printer driver |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060823 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090804 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091001 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100413 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100610 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101005 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101201 |
|
| 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: 20101221 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110103 |
|
| 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: 20140128 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |