JP3812216B2 - Control method of printing apparatus - Google Patents

Control method of printing apparatus Download PDF

Info

Publication number
JP3812216B2
JP3812216B2 JP10423799A JP10423799A JP3812216B2 JP 3812216 B2 JP3812216 B2 JP 3812216B2 JP 10423799 A JP10423799 A JP 10423799A JP 10423799 A JP10423799 A JP 10423799A JP 3812216 B2 JP3812216 B2 JP 3812216B2
Authority
JP
Japan
Prior art keywords
command
real
processing
time processing
time
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 - Lifetime
Application number
JP10423799A
Other languages
Japanese (ja)
Other versions
JP2000298563A (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 JP10423799A priority Critical patent/JP3812216B2/en
Priority to EP15163707.1A priority patent/EP2933717A1/en
Priority to EP10185050.1A priority patent/EP2284688B1/en
Priority to KR1020000013567A priority patent/KR100772342B1/en
Priority to EP00105762A priority patent/EP1037138A3/en
Priority to CN2007101423018A priority patent/CN101221486B/en
Priority to CNB001086162A priority patent/CN100340966C/en
Priority to US09/528,581 priority patent/US6906811B1/en
Publication of JP2000298563A publication Critical patent/JP2000298563A/en
Priority to US11/064,895 priority patent/US7324222B2/en
Application granted granted Critical
Publication of JP3812216B2 publication Critical patent/JP3812216B2/en
Priority to KR1020070004346A priority patent/KR100837584B1/en
Priority to US11/955,289 priority patent/US7826075B2/en
Priority to US12/892,507 priority patent/US7995226B2/en
Priority to US13/166,656 priority patent/US8144357B2/en
Priority to US13/402,300 priority patent/US8345274B2/en
Priority to US13/463,337 priority patent/US8390835B2/en
Priority to US13/751,933 priority patent/US8559046B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、印刷装置、情報処理装置、これらの制御方法、および、情報記録媒体に関する。特に、画像用のバイナリデータやフォント登録バイナリデータなどのバイナリデータと、リアルタイム処理コマンドを意味するデータ列とを区別して処理する印刷装置、情報処理装置、これらの制御方法、および、これらを実現するプログラムを記録した情報記録媒体に関する。
【0002】
【従来の技術】
印刷装置(プリンタ)は、紙などの印刷体に文字や図形を印刷するための装置として広く普及している。このようなプリンタは情報処理装置(ホストコンピュータ)に接続され、ホストコンピュータは、文字や図形を印刷するためのデータ列や、プリンタ自体を制御するためのデータ列をプリンタに送信する。
【0003】
ホストコンピュータがプリンタに送信するデータは、ビット列として見ることもバイト列として見ることもできる。特に、プリンタにおいては、8ビット(1バイト)単位でコマンド体系を構築し、いずれのコマンドも、8の倍数のビット数、すなわち、あるバイト数のデータによって構築することが多い。又、コマンドは、上記バイト列であるコマンドシンボルと、必要に応じてこれに付随するバイト列のパラメータと、更に必要に応じて付加されるデータとからなる。
【0004】
文字を印刷するためのデータ列としては、ASCIIコードと同じバイト値を使用する一方で、画像の印刷やユーザ定義フォントの定義では、バイト列により白黒を表す手法が使用されている。また、画像においては、画像の各点の色を各バイトに含まれる複数のビットによって表す手法もある。
【0005】
プリンタのインターフェース部が1バイトもしくは数バイトのデータを受信すると、受信割り込みが発生し、受信割り込み処理が起動される。受信割り込み処理では、以下の処理を行う。
【0006】
(1)受信したデータにリアルタイム処理コマンドが含まれるか否かを判別し、含まれている場合には、そのリアルタイム処理コマンドに対応する処理を直ちに実行する。(この技術的内容については、公開広報:特開平09−16474を参照)
(2)受信したデータをRAM(Random Access Memory)で構成される受信バッファに記憶する。
【0007】
これらの受信割り込み処理が所定の範囲で終了したら、通常処理に戻る。一般的には、キャリッジリターンを受信するか、受信バッファが満杯(フル)になるまで連続的に実行される。通常処理では、受信バッファに記憶されたデータ列を解釈して、RAMに用意されたプリントバッファに印刷イメージを展開する。この作業は、受信したデータの順に実行されるいわゆるFIFO処理である。これに対して、上記リアルタイム処理コマンドは、FIFO処理のルールを無視して実行されるコマンドである。
【0008】
印刷イメージは、印刷領域のどの部分を白くし、どの部分を黒くするか、すなわち、どのように印刷ヘッドを駆動するかを1と0のビット値で表現するのが一般的である。1行文の印刷イメージが展開できたら、プリントバッファの内容にしたがって印刷ヘッドを駆動し、紙などの印刷体に文字や図形を印刷する。
【0009】
リアルタイム処理コマンドに相当するデータ列が受信バッファに入っていても、すでに受信割り込み処理においてこれに対応する処理の実施が行われているため、通常処理においては単に読み飛ばされる。
【0010】
さて、従来は、リアルタイム処理コマンドとして、以下のようなものが使用されていた。なお、以下のデータのバイト列は、ASCIIコードのニーモニックを使用して表示している。
【0011】
・「DLE EOT NUL 」プリンタの状態をリアルタイムにホストコンピュータに送信する。
【0012】
・「DLE EOT BEL 」プリンタのインクの状態をリアルタイムにホストコンピュータに送信する。
【0013】
・「DLE EOT BS」MICR(Magnetic Ink Character Recognition)機能に関するステータスの状態をリアルタイムにホストコンピュータに送信する。
【0014】
・「DLE ENQ 」プリンタに対するリアルタイム要求。
【0015】
・「DLE DC4 SOH 」指定パルスをリアルタイムに出力する。
【0016】
・「DLE DC4 STX 」プリンタの電源をオフにする。
【0017】
・「DLE DC4 BS」プリンタの受信バッファをクリアする。
【0018】
・このほか、当該プリンタがレジスタとして利用されている場合には、銭箱を開けるなどの処理をリアルタイム処理コマンドにより指示できるようにすることがある。この場合は、新たなリアルタイム処理コマンドを用意する。
【0019】
ここで、各ニーモニックは以下のように定義される。十六進数表記で表記しており、「0x」は、十六進数を意味する接頭辞である。
【0020】
NUL = 0x00
SOH = 0x01
STX = 0x02
EOT = 0x04
ENQ = 0x05
BEL = 0x07
BS = 0x08
DLE = 0x10
DC4 = 0x14
【0021】
【発明が解決しようとする課題】
しかしながら、画像用のバイナリデータやフォント登録用のデータといったバイナリデータを印刷装置に転送するためのデータ列定義の中に偶然リアルタイム処理コマンドと同じデータ列が現われることがある。本来リアルタイム処理コマンドと解釈すべきでない場合であっても、上記のように受信割り込み処理において、リアルタイム処理コマンドに対応する処理が実行されてしまう、という可能性があった。
【0022】
すなわち、ホストコンピュータが意図しないタイミングで意図しないリアルタイム処理コマンドの処理が実行されるため、プリンタの電源がオフになってしまったり、ホストコンピュータ側で受信の準備がされていなかったりプリンタとの整合性がとれなくなったりしてしまう、という可能性があった。
【0023】
このため、リアルタイム処理コマンドのデータ列と同じデータ列を含むようなバイナリデータのデータ列を、リアルタイム処理コマンドとは区別してホストコンピュータからプリンタに転送したいという要望が生じていた。
【0024】
本発明は、以上のような問題を解決するためになされたもので、イメージデータやフォント登録データなどのバイナリデータと、リアルタイム処理コマンドを意味するデータ列とを区別して処理する印刷装置、情報処理装置、これらの制御方法、および、これらを実現するプログラムを記録した情報記録媒体を提供することを目的とする。
【0025】
【課題を解決するための手段】
以上の目的を達成するため、本発明の原理にしたがって、下記の発明を開示する。
【0026】
本発明の印刷装置の制御方法は、
接続された印刷装置に、リアルタイム処理コマンドと、リアルタイム処理許可コマンドと、リアルタイム処理禁止コマンドと、を含むデータを送信するホストコンピュータによる印刷装置の制御方法において、
前記リアルタイム処理コマンドの一つとして、前記印刷装置の電源をオフするためのリアルタイム電源オフコマンドを含み、
前記リアルタイム処理許可コマンドを送信することによって、前記リアルタイム電源オフコマンドについて、当該コマンドの実行の許可を設定し、
前記リアルタイム処理禁止コマンドを送信することによって、前記リアルタイム電源オフコマンドについて、当該コマンドの実行の禁止を設定するものであって、
前記リアルタイム処理禁止コマンドを送信して、前記リアルタイム電源オフコマンドの実行を常には禁止しておき、
前記リアルタイム電源オフコマンドを用いて前記印刷装置の電源をオフするときには、前記印刷装置の電源をオフする直前に前記リアルタイム処理許可コマンドを送信して、前記リアルタイム電源オフコマンドの実行を許可し、その後、前記リアルタイム電源オフコマンドを送信することを特徴とする。
また、以下の構成でも構わない。
【0027】
又本発明の、印刷装置は、前記リアルタイム処理許可コマンド、及び/又はリアルタイム処理許可コマンドは、少なくとも2バイトのパラメータを有し、当該パラメータは、前記複数のリアルタイム処理コマンドのそれぞれについて設定すべきコマンドを指定するパラメータと、設定すべき内容を指定するパラメータとを有し、前記設定部は前記複数のコマンドについて、前記パラメータに従って前記複数のリアルタイム処理コマンドのそれぞれについて当該コマンドの実行を許可するかどうかを前記指示部に設定することを特徴とする。
【0028】
又、本発明の印刷装置は、前記リアルタイム処理許可コマンド及びリアルタイム処理禁止コマンドは、同一のコマンドシンボルを有し、前記パラメータによって、許可もしくは禁止が指定可能なリアルタイム処理許可・禁止コマンドとして用意され、前記設定部は、当該リアルタイム処理許可・禁止コマンドに応答し、前記複数のリアルタイム処理コマンドごとに当該コマンドの実行許可あるいは禁止をを前記指示部に設定することを特徴とする。
【0029】
又、本発明の印刷装置は、情報処理装置に接続され、所定のコマンド及び、データ等からなるデータ列を受信し、印刷及び前記コマンドに対応する所定の処理を実行する印刷装置において、(a)リアルタイム処理コマンド、リアルタイム処理許可・禁止コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信・解析処理部と、(b)前記リアルタイム処理コマンドの実行を許可するかどうかを指示する指示部と、(c)前記受信・解析処理部がリアルタイム処理許可・禁止コマンドのデータ列を受信した時、当該コマンドに対応したパラメータに基づいてリアルタイム処理コマンドの実行を許可あるいは、禁止を前記指示部に設定する設定部と、(d)前記指示部がリアルタイム処理コマンドの実行の許可を示す状態の時、前記受信・解析処理部が受信したデータ列がリアルタイム処理コマンドの場合、当該リアルタイム処理コマンドのデータ列に対応するリアルタイム処理を実行するリアルタイム処理部と、(e)前記受信・解析処理部により受信されたデータ列が通常処理コマンドのデータ列である場合、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理部と、を有することを特徴とする印刷装置である。
【0030】
又、前記リアルタイム処理許可・禁止コマンドは、コマンドシンボルと、これに対応するパラメータを有し、前記設定部は、リアルタイム許可・禁止コマンドに応答し、前記パラメータの内容に従って、複数のリアルタイム処理コマンドごとにコマンドの実行を許可あるいは禁止することを前記指示部に設定することを特徴とする印刷装置である。
【0031】
更に、本発明は 以下のステップを備えることを特徴とする印刷装置の制御方法である。
【0032】
(a)リアルタイム処理コマンド、リアルタイム処理禁止コマンド、リアルタイム処理許可コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信ステップと、(b)前記受信ステップにおいて受信されたデータ列がリアルタイム処理コマンドのデータ列である場合、前記受信ステップにおいて、前記リアルタイム処理コマンドがその実行を許可されているどうかを判断するステップと、(c)前記判断ステップにおいて、前記リアルタイム処理コマンドが、許可されているコマンドであれば、これに対応する処理を実行し、禁止されているコマンドであればこれを実行せず無視するステップと、(d)前記受信ステップにおいて受信されたデータ列が通常処理コマンドのデータ列である場合、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理ステップ。
【0033】
本発明の 印刷装置の制御方法は、 以下のステップを備えることを特徴とする。
【0034】
(a)リアルタイム処理コマンド、リアルタイム処理禁止コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信ステップと、(b)前記受信ステップにおいて受信されたデータ列がリアルタイム処理コマンドのデータ列である場合、当該コマンドのコマンドシンボルとこれに付随するパラメータとに応じて、複数のリアルタイム処理コマンドのそれぞれについてその処理の実行を許可あるいは禁止を所定の指示部に設定するステップと、(d)前記複数のリアルタイム処理コマンドのいずれか1つのコマンドに対応するコマンド列を受信したとき、前記指示部の内容によって、当該リアルタイム処理を実行するか、または禁止するかを選択するステップと、(e)前記通常コマンドを受信したとき、当該コマンドの内容に従って通常の処理を実行するステップ。
【0035】
更に又、本発明は、印刷装置を制御するプログラムを記録した情報記録媒体であり、以下のステップを備えることを特徴とする。(a)リアルタイム処理コマンド、リアルタイム処理禁止コマンド、リアルタイム処理許可コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信ステップと、(b)前記受信ステップにおいて受信されたデータ列がリアルタイム処理コマンドのデータ列である場合、前記受信ステップにおいて、前記リアルタイム処理コマンドがその実行を許可されているどうかを判断するステップと、(c)前記判断ステップにおいて、前記リアルタイム処理コマンドが、許可されているコマンドであれば、これに対応する処理を実行し、禁止されているコマンドであればこれを実行せず無視するステップと、(d)前記受信ステップにおいて受信されたデータ列が通常処理コマンドのデータ列である場合、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理ステップ。
【0036】
更に又、本発明は、印刷装置に接続され、所定の通常処理を実行させるための複数の通常処理コマンド、および通常処理コマンドに優先して実行させる複数のリアルタイム処理コマンドから選択的に1つあるいはそれらの組み合わせのコマンドを含むデータ列を前記印刷装置に送信して所定の処理を実行させる情報処理装置において、(a)アプリケーションプログラムからの要求に応答して、前記印刷装置に、所定の通常処理を実行させるためのコマンドと必要に応じてこれに付随するデータを送信する部と、(b)前記印刷装置に、前記通常処理より優先順位の高い処理を実行させるためのリアルタイム処理を実行させるコマンド送信する部と、(c)前記通常処理のコマンドが、バイナリデータの転送を実行するコマンドの時、このコマンドの送信に先立って、前記リアルタイム処理コマンドの実行を禁止するためのリアルタイム処理禁止コマンドを送信する部と、(d)前記バイナリデータの転送が終了したとき、前記リアルタイム処理コマンドの実行を許可するリアルタイム処理許可コマンドを送信する部とを有することを特徴とする情報処理装置。
【0037】
更に又、本発明は、印刷装置に接続され、所定の通常処理を実行させるための複数の通常処理コマンド、および通常処理コマンドに優先して実行させる複数のリアルタイム処理コマンドから選択的に1つあるいはそれらの組み合わせのコマンドを含むデータ列を前記印刷装置に送信して所定の処理を実行させる情報処理装置において、(a)アプリケーションプログラムからの要求に応答して、前記印刷装置に、所定の通常処理を実行させるためのコマンドと必要に応じてこれに付随するデータを送信するステップと、(b)前記印刷装置に、前記通常処理より優先順位の高い処理を実行させるためのリアルタイム処理を実行させるコマンド送信するステップと、(c)前記通常処理のコマンドが、バイナリデータの転送を実行するコマンドの時、このコマンドの送信に先立って、前記リアルタイム処理コマンドの実行を禁止するためのリアルタイム処理禁止コマンドを送信するステップと、(d)前記バイナリデータの転送が終了したとき、前記リアルタイム処理コマンドの実行を許可するリアルタイム処理許可コマンドを送信するステップとを有することを特徴とする情報処理装置の制御方法である。
【0038】
更に又、本発明は、以下の、ステップを含む情報処理装置のプログラムを記録した情報記録媒体(a)アプリケーションプログラムからの要求に応答して、前記印刷装置に、所定の通常処理を実行させるためのコマンドと必要に応じてこれに付随するデータを送信するステップと、(b)前記印刷装置に、前記通常処理より優先順位の高い処理を実行させるためのリアルタイム処理を実行させるコマンド送信するステップと、(c)前記通常処理のコマンドが、バイナリデータの転送を実行するコマンドの時、このコマンドの送信に先立って、前記リアルタイム処理コマンドの実行を禁止するためのリアルタイム処理禁止コマンドを送信するステップと、(d)前記バイナリデータの転送が終了したとき、前記リアルタイム処理コマンドの実行を許可するリアルタイム処理許可コマンドを送信するステップ。
【0039】
更に又、本発明の情報記録媒体は、コンパクトディスク、フロッピーディスク、ハードディスク、光磁気ディスク、ディジタルビデオディスク、磁気テープ、または、半導体メモリであることを特徴とする前記プログラムをを記録した情報記録媒体。
【0040】
更に、又、本発明の印刷装置は、リアルタイム処理コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信・解析処理部と、リアルタイム処理コマンドを実行するかしないかを指示する指示部と、指示部がリアルタイム処理コマンドの実行の許可を示している場合は、当該リアルタイム処理コマンドのデータ列に対応するリアルタイム処理を実行するリアルタイム処理部と、受信・解析処理部により受信されたデータ列が通常処理コマンドのデータ列である場合、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理部とを有することを特徴とする。
【0041】
又、本発明は、リアルタイム処理コマンド、リアルタイム処理禁止コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信・解析処理部と、リアルタイム処理コマンドの実行を許可するかどうか指示する指示部と、受信・解析処理部が最後にリアルタイム処理禁止コマンドのデータ列を受信してから経過した時間が、所定の時間を超える場合は、指示部をリアルタイム処理コマンドの実行を許可する状態に設定する設定処理部と、指示部が、リアルタイム処理コマンドの実行を許可する状態の場合、受信・解析処理部がリアルタイム処理コマンドを受信した時、当該リアルタイム処理コマンドのデータ列に対応するリアルタイム処理を実行するリアルタイム処理部と、受信・解析処理部により受信されたデータ列が通常処理コマンドのデータ列である場合、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理部とを有することを特徴とする。
【0042】
又、本発明の印刷装置は、リアルタイム処理コマンド、リアルタイム処理禁止コマンド、リアルタイム処理許可コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信・解析処理部と、リアルタイム処理コマンドを実行するかしないかを指示する指示部と、受信・解析処理部が最後にリアルタイム処理禁止コマンドのデータ列を受信してから経過した時間が、所定の時間を超えるか、または、受信・解析処理部が最後にリアルタイム処理禁止コマンドのデータ列を受信した後にリアルタイム処理許可コマンドを受信した場合、指示部をリアルタイム処理コマンドの実行の許可を指示するように設定する設定処理部と、指示部がリアルタイム処理コマンドの実行を許可する状態の場合、受信・解析処理部が受信したデータ列がリアルタイム処理コマンドの時、当該リアルタイム処理コマンドのデータ列に対応するリアルタイム処理を実行するリアルタイム処理部と、受信・解析処理部により受信されたデータ列が通常処理コマンドのデータ列である時、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理部とを有することを特徴とする。
【0043】
又、本発明の印刷装置は、リアルタイム処理コマンド、リアルタイム処理禁止コマンド、リアルタイム処理許可コマンド、通常処理コマンドの1つまたはそれらの組み合わせを含むデータ列を受信する受信・解析処理部と、リアルタイム処理コマンドを実行するかしないかを指示する指示部と、受信・解析処理部が最後にリアルタイム処理禁止コマンドのデータ列を受信した後にリアルタイム処理許可コマンドを受信した場合、指示部をリアルタイム処理コマンドの実行の許可を指示するように設定する設定処理部と、指示部がリアルタイム処理コマンドの実行を許可する状態の場合、受信・解析処理部が受信したデータ列がリアルタイム処理コマンドの時、当該リアルタイム処理コマンドのデータ列に対応するリアルタイム処理を実行するリアルタイム処理部と、受信・解析処理部により受信されたデータ列が通常処理コマンドのデータ列である時、当該通常処理コマンドのデータ列に対応する通常処理を実行する通常処理部とを有することを特徴とする。
【0044】
又、本発明は、上記受信・解析処理部、リアルタイム処理部及び通常処理部のそれぞれの一部又は全てが、CPU、RAM、及び前記CPUを動作させるプログラムを格納したROMからなる制御回路により構成されたことを特徴とする印刷装置である。
【0045】
【発明の実施の形態】
以下に本発明の一実施形態を説明する。なお、以下に説明する実施形態は説明のためのものであり、本願発明の範囲を制限するものではない。したがって、当業者であればこれらの各要素もしくは全要素をこれと均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本願発明の範囲に含まれる。
【0046】
(印刷装置)
図1には、本発明の印刷装置(プリンタ)の実施例のブロック構成図を示す。
【0047】
プリンタ101は、インターフェース102を介して情報処理装置であるホストコンピュータ120に接続されていて、CPU 103、RAM 104、ROM 105、不揮発メモリ106、印刷機構107を主な構成要素としている。
【0048】
ホストコンピュータ120が送信したデータ列をインターフェース102が受信すると、CPU(Central Processing Unit ;中央処理ユニット)103に対して受信割り込みを発行する。CPU 103は、受信割り込みによって受信割り込み処理を起動し、受信割り込み処理では、受信したデータ列にリアルタイム処理コマンドが含まれていると判断すると、これに対応する前述のようなリアルタイム処理を実行する。さらに、受信割り込み処理では、RAM 104に設けられた受信バッファ111に受信したデータ列を記憶する。受信割り込み処理が終了すると、CPU 103の制御は通常処理に戻る。
【0049】
通常処理では、CPU 103は、RAM 104の受信バッファ111に記憶されたデータ列を印刷コマンドやプリンタ設定コマンドとして解釈し、フォントを記憶するROM(Read Only Memory)105からフォント形状を取得したり、イメージデータを生成したりして、RAM 104内に設けられたプリントバッファ112に印刷イメージを展開する。
【0050】
さらに、プリントバッファ112に展開された印刷イメージが所定の量、たとえば1行に達した場合などに、当該印刷イメージにしたがって印刷機構107を駆動して、紙などの印刷媒体に文字や図形を印刷する。
【0051】
また、受信バッファ111に記憶されたデータ列がフォント定義コマンドである場合には、RAM 104内に、当該フォントの定義を記憶する。不揮発メモリ106はEEPROM(Electrically Erasable Programmable ROM)やフラッシュメモリであり、フォント定義コマンドにしたがって、不揮発性メモリ106の内容を更新することが可能である。またこの不揮発性メモリには、印刷装置の状態を記憶しておくステータス情報格納部となるステータス領域116が設置されていて、ホストコンピュータ120からのステータス要求コマンドに応答してこの領域の情報がホストコンピュータ120に送信される。
【0052】
また、RAM 104には受信割り込み処理で使用する現在のモードを記憶する領域113がある。これにより、リアルタイム処理コマンドの途中を受信しているのか、それともそれ以外のデータを受信しているのかがわかる。このほか、現在リアルタイム処理が禁止されているか否かを記憶したり各種のプリンタの状態(ステータス)を記憶する指示部の一種のフラグ領域114(指示部)がある。フラグ領域114は、電源が切断された場合、情報も消失するため、CPU 103の処理の時に一時的に使用される領域である。
【0053】
ここで、CPU 103はインターフェース102、RAM 104、ROM105等と共働して受信・解析処理部、リアルタイム処理部、通常処理部及びフラグ設定処理部として機能し、印刷機構107は、CPU 103等と共働して印刷処理部として、それぞれ機能する。また、ROM 105はプログラムを記録した情報記録媒体として機能する。
【0054】
(印刷装置の受信割り込み処理の第1実施例)
図2は、本発明の印刷装置の受信割り込み処理の流れの実施例を示すフローチャートである。この受信割り込み処理は、ホストコンピュータ120が送信するデータ列をプリンタ101のインターフェース102が受信する際に起動される。なお、以下では、インターフェース102が1バイトのデータを受信するごとに受信割り込みが発生する実施形態について説明するが、受信割り込みが1以上の任意のバイト数のデータを受信するごとに起動される場合であっても同様の処理が可能であり、当該実施形態も本発明の範囲に含まれる。
【0055】
なお、本実施例では、以下のバイナリデータ処理コマンドが通常コマンドとして容易されている。
【0056】
・ESC * m n1 n2: n1, n2 で定義される所定のデータ量のバイナリデータであるビットマップデータを転送する時に用いる。これによりプリンタは画像印刷を実行する。
【0057】
・ESC & s n m : 所定のデータ量のフォント登録データを転送する時に用いる。
【0058】
・FSg1 m a1 a2 a3 a4 nL nH d1...dk: ユーザ定義不揮発性メモリへのデータの書き込み時に用いる。(尚、各パラメータは、m=0に固定、a1−a4はデータの格納開始アドレス、nL、nHは格納データ数をそれぞれ指定する。)
又、本実施例では、以下のリアルタイム処理禁止コマンドが「リアルタイム処理コマンド」として用意されている。
【0059】
・「DLE EOT EOT 」これ以降は所定時間(たとえば1秒)リアルタイム処理コマンドの処理を禁止する。
【0060】
上述のように、本処理は、ホストコンピュータ120が送信するデータをプリンタ101のインターフェース102が受信する際に起動される。
【0061】
起動されたら、まず、CPU 103は、インターフェース102が受信した1バイトのデータをRAM 104内の受信バッファ111に記憶する(ステップS201)。受信バッファ111は、リングバッファとして構成するのが一般的である。
【0062】
次に、RAM 104のフラグ領域114を調べ、現在リアルタイム処理が禁止されているか否かを判別する(ステップS202)。
【0063】
禁止されていない場合(ステップS202;No)、モード領域113に記憶された現在の受信割り込みモードを調べる(ステップS203)。受信割り込みモードの値によって、現在リアルタイム処理コマンドの途中を受信しているのか否かが示される。
【0064】
さらに、ステップS201において受信されたデータの値に応じてRAM 104のモード領域113に記憶される受信割り込みモードの値を図3に示す状態遷移図にしたがって更新するとともに、必要があれば処理を実施し(ステップS204)、本割り込み処理を終了する。
【0065】
図3は、受信割り込みにおける状態遷移を示す説明図である。この状態遷移図は、前述のリアルタイム処理コマンドのデータ列の体系から決まるものである。
【0066】
モードAは、現在はリアルタイム処理コマンド以外のコマンドを解釈していることを意味するモードである。モードAにいる場合に、ステップS201において受信したデータの値がDLE である場合には、モードBに移行する。
【0067】
モードBは、現在はリアルタイム処理コマンドの1バイト目(DLE )を受信していることを意味するモードである。モードBにいるときに、ステップS201において受信したデータの値に応じて、以下のように遷移する。
【0068】
・EOT である場合は、モードCに移行する。
【0069】
・ENQ である場合は、プリンタのリアルタイム要求に対応する処理を実行して、モードAに移行する。
【0070】
・DC4 である場合は、モードDに移行する。
【0071】
・これ以外である場合は、受信しているデータ列はリアルタイム処理コマンドのデータ列ではないことになるので、モードAに移行する。
【0072】
モードCは、現在はDLE EOT で始まるリアルタイム処理コマンドを受信中であることを意味するモードである。モードCにいるときに、ステップS201において受信したデータの値に応じて、以下のように遷移する。
【0073】
・NUL である場合は、プリンタ101の状態をホストコンピュータ120にリアルタイム送信し、モードAに移行する。
【0074】
・BEL である場合は、プリンタ101の印刷機構107に含まれるインクの状態をホストコンピュータ120にリアルタイム送信し、モードAに移行する。
【0075】
・BSである場合は、プリンタ101のMICRに関係するステータスの状態をホストコンピュータ120にリアルタイム送信し、モードAに移行する。
【0076】
・EOT である場合は、RAM 104のフラグ領域114に「リアルタイム処理禁止」を設定する。さらに、『フラグ領域114「リアルタイム処理許可」に設定する処理』が現在から所定時間(たとえば1秒)後にタイマ割り込みにより実行されるように、タイマ割り込み処理の設定を行う。その後で、モードAに移行する。
【0077】
・これ以外である場合は、受信しているデータ列はリアルタイム処理コマンドのデータ列ではないことになるので、モードAに移行する。
【0078】
モードDは、現在はDLE DC4 で始まるリアルタイム処理コマンドを受信中であることを意味するモードである。モードDにいるときに、ステップS201において受信したデータの値に応じて、以下のように遷移する。
【0079】
・SOH である場合は、指定パルスのリアルタイム出力を実行し、モードAに移行する。
【0080】
・STX である場合は、プリンタの電源をオフにする。
【0081】
・BSである場合は、RAM 104に配置された受信バッファ111とプリントバッファ112をクリアしてモードAに移行する。
【0082】
・これ以外である場合は、受信しているデータ列はリアルタイム処理コマンドのデータ列ではないことになるので、モードAに移行する。
【0083】
一方、フラグ領域114を調べた結果、現在リアルタイム処理が禁止されている場合(ステップS202;Yes)、受信割り込み処理を終了する。
【0084】
このように、受信割り込みごとに、リアルタイム処理が禁止されているか否かをチェックすることになるが、これに必要な時間は数マイクロ秒のオーダーである。このように比較的簡単な状態遷移の処理なので、受信割り込み処理に必要な時間を短時間ですませることができる。
【0085】
(印刷装置の通常処理の第1実施例)
通常処理は、プリンタ101が受信したデータを解釈して印刷する処理である。図4は、プリンタ101の通常処理の制御の流れを示すフローチャートである。通常処理を行っている途中であっても、前述の受信割り込み処理が割り込みによって起動されることがありうる。
【0086】
なお、CPU 103は受信バッファ111に処理していないデータが残っている間は、当該データを取得し、残っていない場合は、待機して前述の受信割り込み処理により受信バッファ111にデータが記憶されるのを待つ。このようなコルーチン的な処理が実行されるが、以下の説明では、簡単のため、上記の処理を1回行って1バイトのデータを受信バッファ111から取得する場合と、複数回行って複数バイトのデータを受信バッファ111から取得する場合とを合わせて、「受信バッファからデータを取得」と称することとする。
【0087】
また、本実施例では、リアルタイム処理を許可するコマンドを通常処理コマンドとして用意している。
【0088】
まず、CPU 103は、受信バッファ111からデータを取得し(ステップS401)、そのデータの種類を調べる(ステップS402)。
【0089】
このデータがリアルタイム処理許可コマンドである場合(ステップS402;RTC許可)、RAM 104内のフラグ領域114に、「リアルタイム処理許可」を設定し(ステップS403)、ステップS401に戻る。
【0090】
一方、このデータがこれ以外の通常処理コマンドである場合(ステップS402;通常)、当該コマンドに対応付けられた処理を実行し(ステップS404)、処理の継続があれば(ステップ405;Yes)、ステップS401に戻る。この処理には、文字や図形の印刷、画像の印刷、フォント登録などの処理が含まれる。
【0091】
また、このデータがリアルタイム処理コマンドである場合(ステップS402;RTC)、処理の継続があれば(ステップ405;Yes)、ステップS401に戻る。受信割り込み処理において、リアルタイム処理コマンドに対応付けられた処理がすでに実行されているからである。
【0092】
このように受信割り込み処理と通常処理とを構成しておくと、リアルタイム処理コマンドのデータ列と同じデータ列をパラメータとして含む通常コマンド(たとえば、イメージ印刷コマンドやフォント登録コマンド)のデータ列を情報処理装置がプリンタに対して送信したい場合、まずリアルタイム処理禁止コマンドを送信し、ついで当該通常コマンドを送信し、さらにリアルタイム処理許可コマンドを送信すれば、通常コマンドのパラメータ内に偶然含まれるデータ列によりリアルタイム処理が実行されることはなくなる。
【0093】
(情報処理装置の第1実施例)
図5には、本発明の情報処理装置(ホストコンピュータ)の実施例のブロック構成図を示す。
【0094】
本発明の情報処理装置120はCPU 501によって制御される。情報処理装置120に電源が投入されると、CPU 501はROM 502内の所定の場所に記憶されたIPL(Initial Program Loader)を実行し、処理を開始し、さらに、ハードディスク、フロッピーディスク、CD−ROM(Compact Disk ROM)などの不揮発性記憶装置503に記憶されたプログラムを実行することができる。プログラムの実行の際には、RAM 504を一時的な記憶装置として用いる。
【0095】
文字や図形を印刷するアプリケーションプログラムを実行する際には、印刷コマンドのデータ列をインターフェース505を介してプリンタに送信する。
【0096】
さらに、情報処理装置120は、図示しないキーボードやマウスなどの入力装置、図示しないディスプレイなどの表示装置を備えることができる。
【0097】
ここで、CPU 501は、RAM 504と共働して挿入生成部として機能し、インターフェース505は送信部として機能する。
【0098】
また、不揮発性記憶装置503は、プログラムを記録した情報記録媒体として機能する。又、図示しない、CD−ROMドライブ、フロッピードライブなどの装置を有し、情報を記録した記録媒体から所定のプログラムをインストールできる様に構成されている。
【0099】
図6は、画像印刷やフォント登録などの処理において、通常コマンドのデータ列をプリンタに送る送信処理の流れを示すフローチャートである。この送信処理は、アプリケーションプログラムがオペレーティングシステムに対して印刷要求を送ることなどにより起動される。また、この送信処理は一般的にプリンタドライバーと呼ばれるプログラムによって実行され、このプログラムは、フロッピーディスクなどの記憶媒体から、ホストコンピュータにインストールされて用いられる。
【0100】
まず、CPU 501は、送信したい通常コマンドのデータ列がリアルタイム処理コマンドのデータ列と同じデータ列を含むか否かを調べる(ステップS601)。
【0101】
含まない場合(ステップS601;No)、当該通常コマンドのデータ列を送信し(ステップS602)、本処理を終了する。
【0102】
含む場合(ステップS601;Yes)、リアルタイム処理禁止コマンドを送信し(ステップS603)、ついで当該通常コマンドのデータ列を送信し(ステップS604)、さらにリアルタイム処理許可コマンドを送信して(ステップS605)、本処理を終了する。
【0103】
なお、この処理に加えて、以下のような処理を行うことができる。たとえば、画像を印刷する場合、その通常コマンドが所定の時間(たとえば1秒)以内にプリンタで処理できる量か否かを判別する。処理できる量の場合は、ステップS603〜ステップS605の処理と同じ処理を行う。
【0104】
所定時間内で処理できない量の場合は、当該通常コマンドを解釈し、複数の通常コマンドに分割する。さらに、それぞれの通常コマンドについてまず、ステップS603〜ステップS605の処理と同じ処理を行って画像の一部を印刷し、さらに、リアルタイム処理が必要かどうかをチェックし、必要であれば当該リアルタイム処理コマンドを送信する、という処理を繰り返す。
【0105】
このような処理を行うことにより、リアルタイム処理が必要な場合の待ち時間が最大でも上記所定の時間(1秒)で済むことになる。
【0106】
(印刷装置の受信割り込み処理の第2実施例)
図7は、印刷装置の受信割り込み処理の第2実施例の流れを示すフローチャートである。本実施例では、RAM 104内にカウント領域を設ける。また、リアルタイム禁止コマンドは以下のコマンドシンボル3バイト+パラメータ2バイトの5バイトで構成される。
【0107】
・「DLE EOT EOT n m」
これは、「以降に続く(n*256+m)バイトについてリアルタイム処理を禁止する」という意味を持つ。
【0108】
本実施例の受信割り込み処理が起動されたら、まず、CPU 103は、インターフェース102が受信した1バイトのデータをRAM 104内の受信バッファ111に記憶する(ステップS701)。受信バッファ111は、リングバッファとして構成するのが一般的である。
【0109】
次に、RAM 104のフラグ領域114を調べ、現在リアルタイム処理が禁止されているか否かを判別する(ステップS702)。
【0110】
禁止されていない場合(ステップS702;No)、モード領域113に記憶された現在の受信割り込みモードを調べる(ステップS703)。受信割り込みモードの値によって、現在リアルタイム処理コマンドの途中を受信しているのか否かが示される。
【0111】
さらに、ステップS701において受信されたデータの値に応じてRAM 104のモード領域113に記憶される受信割り込みモードの値を図8に示す状態遷移図にしたがって更新するとともに、必要があれば処理を実施し(ステップS704)、本割り込み処理を終了する。
【0112】
図8に示す状態遷移図は、図3に示す状態遷移図と大部分は同様であるが、モードCにおいてEOT を受信した場合の処理が異なる。
【0113】
すなわち、モードCにおいてEOT を受信すると、モードXに移行する。
【0114】
モードXにおいて、バイト値n を受信すると、値n*256 をRAM 104内のカウント領域115に代入し、モードYに移行する。
【0115】
モードYにおいて、バイト値m を受信すると、値m をRAM 104内のカウント領域115に加算し、フラグ領域114に「リアルタイム処理禁止」を設定し、モードAに移行する。
【0116】
一方、ステップS702において、リアルタイム処理が禁止されていると判別された場合(ステップS702;Yes)、カウント領域115に記憶された値を1減らし(ステップS705)、カウント領域115に記憶された値が0より大きいか否かを調べ(ステップS706)、0より大きい場合(ステップS706;Yes)は、本割り込み処理を終了する。0以下の場合(ステップS706;No)、フラグ領域114に「リアルタイム処理許可」を設定し(ステップS707)、本割り込み処理を終了する。
【0117】
このように、本実施例では、リアルタイム処理禁止コマンドにおいて、「これ以降○○バイトについてはリアルタイム処理を禁止する」というパラメータ設定ができるため、リアルタイム処理許可コマンドを用意する必要はない。一方、情報処理装置においては、リアルタイム処理コマンドのデータ列と同じデータ列をパラメータとして含む通常コマンドのデータ列送信したい場合、まず当該通常コマンドの長さをパラメータとして含むリアルタイム処理禁止コマンドを送信し、ついで当該通常コマンドを送信すればよい。
【0118】
上記、プリンタのステータスを記憶したフラグ領域は、一般的に電源が切断されても記憶状態に保つ必要のあるものはフラッシュメモリ等に設けられ、そうでないものはRAM内に設置される。又、リアルタイム処理コマンドを禁止するかどうかのフラグは、電源が切断されても記憶しておく必要はない。
【0119】
通常使用の時、イメージデータの印刷がほとんど必要が無く、フォント登録作業の時にのみこのリアルタイム処理コマンドを禁止したいばあいは、ディップスイッチなどのハードウエア要素で代用することもできる。この場合、ディップスイッチが上記指示部となる。
【0120】
(印刷装置の受信割り込み処理の第3実施例)
複数のリアルタイム処理コマンドの内、実際にはバイナリデータを転送中に実行されても問題が無い物も含まれている。又、バイナリデータの転送時に、そのバイナリデータが、POSを設置している店舗のロゴなどある場合、あらかじめリアルタイム処理コマンドと紛らわしいデータは作成していないことがあり、このような場合アプリケーションからステータス要求があった場合などは、このためのリアルタイム処理コマンド送信しても問題がない。この場合はリアルタイム処理コマンドのそれぞれに対応して、禁止、あるいは許可を設定することができるように以下のコマンドを通常コマンドで定義する。
【0121】
・GS(D mn (”GS(D”はコマンドシンボルであり、mnはパラメータで、mがコマンドの指定、nが許可あるいは禁止の指定を表し、どのコマンド禁止するか、あるいは許可するかを指定できる)
上記コマンドを受信した場合、フラグ領域114の指示部に、それぞれのコマンド毎に許可、あるいは禁止が設定され記憶される。例えば、リアルタイム処理コマンドの内、禁止・許可処理を設定したい物が、8個以内であれば、設定するかどうかを、パラメータmで指定する。1000、0011であれば、1番目と、7,8番目に割り当てられたコマンドが、許可・禁止の対象となる。さらに、パラメータnで、1000、0010と指定された場合、1が許可、0が禁止であれば、1番目と7番目に割り当てられたコマンドが許可に、8番目が禁止に設定されるといった様に設定できる。
【0122】
図9は、本発明の印刷装置の受信割り込み処理の流れの第3の実施例を示すフローチャートである。本実施例では、上記したように、リアルタイム処理の禁止または許可は、コマンド設定が可能な通常コマンドとして用意している。図9の受信割り込み処理の機能は、データを受信し、これを受信バッファ111に格納し、同時に受信しながらリアルタイム処理コマンドが含まれていないかどうか解析するもので、CPU 103を主要素とする受信・解析処理部が実行する。
【0123】
本実施例の受信割り込み処理が起動されたら、まず、CPU 103は、インターフェース102が受信した1バイトのデータをRAM 104内の受信バッファ111に記憶する(ステップS901)。受信バッファ111は、リングバッファとして構成するのが一般的である。
【0124】
次に、モード領域113に記憶された現在の受信割り込みモードを調べる(ステップS902)。受信割り込みモードの値によって、現在リアルタイム処理コマンドの途中を受信しているのか否かが示される。
【0125】
さらに、ステップS901において受信されたデータの値に応じてRAM 104のモード領域113に記憶される受信割り込みモードの値を図3に示す状態遷移図にしたがって更新する(ステップ903)。モードの更新にあたり、コマンド処理を行う必要があるか判断する(ステップ904)。コマンド処理を行う必要があれば(ステップ904:Yes)、RAM 104のフラグ領域114を調べ、現在、実行しようとしたコマンドのリアルタイム処理が禁止されているか否かを判別し、(ステップS905) 禁止されていない場合(ステップS905;No)は、リアルタイム処理コマンドに対応する処理を実施し(ステップS906)、禁止されている場合(ステップS905;Yes)はコマンド処理を実施せず本割り込み処理を終了する。
【0126】
このように、リアルタイム処理コマンドのデータ列を受信するごとに、リアルタイム処理が禁止されているか否かをチェックすることになるが、これに必要な時間は数マイクロ秒のオーダーである。このように比較的簡単な状態遷移の処理なので、受信割り込み処理に必要な時間を短時間ですませることができる。
【0127】
上記処理は、受信割り込みにおける状態遷移を示す説明図である図3に沿って同様に実行されるが、以下の点で細部が異なる。
【0128】
1、モードCにいるときに EOTを受信すると、モードAに移行するという処理を行なわない。
【0129】
2、本実施例3ではそれぞれのコマンド個別にリアルタイム処理を禁止あるいは許可でき、禁止されているコマンドは、コマンドの処理を実行しないでモードを遷移する。
【0130】
(印刷装置の通常処理の第2実施例)
通常処理とは、プリンタ101が受信したデータを入力した順に読み出し実行するFIFO処理である。図10は、プリンタ101の通常処理の第2の実施例の制御の流れを示すフローチャートである。通常処理を行っている途中であっても、前述の受信割り込み処理が割り込みによって起動されることがありうる。
【0131】
なお、CPU 103は受信バッファ111に処理していないデータが残っている間は、当該データを取得し、残っていない場合は、待機して前述の受信割り込み処理により受信バッファ111にデータが記憶されるのを待つ。このようなコルーチン的な処理が実行されるが、以下の説明では、簡単のため、上記の処理を1回行って1バイトのデータを受信バッファ111から取得する場合と、複数回行って複数バイトのデータを受信バッファ111から取得する場合とを合わせて、「受信バッファからデータを取得」と称することとする。
【0132】
また、本実施例では、リアルタイム処理を禁止するコマンドと許可するコマンドをリアルタイムコマンド許可・禁止コマンドという1つのコマンドとし、通常処理コマンドとして用意している。
【0133】
まず、CPU 103は、受信バッファ111からデータを取得し(ステップS1001)、そのデータの種類を調べる(ステップS1002)。
【0134】
このデータがリアルタイム処理許可・禁止コマンドである場合(ステップS1002;RTC許可)、RAM 104内のフラグ領域114に、リアルタイム処理コマンドごとに「リアルタイム処理許可」または「リアルタイム処理禁止」を設定し(ステップS1003)、処理を継続するかチェック(ステップS1005)し、継続なら(ステップS1005:Yes)、ステップS1001に戻る。
【0135】
一方、このデータがこれ以外の通常処理コマンドである場合(ステップS1002;通常)、当該コマンドに対応付けられた処理を実行し(ステップS1004)、ステップS1005を経て、ステップS1001に戻る。この処理には、文字や図形の印刷、画像の印刷、フォント登録などの処理が含まれる。
【0136】
また、このデータがリアルタイム処理コマンドである場合(ステップS1002;RTC)、ステップS1001に戻る。受信割り込み処理において、リアルタイム処理コマンドに対応付けられた処理がすでに実行されているからである。
【0137】
このように受信割り込み処理と通常処理とを構成しておくと、リアルタイム処理コマンドのデータ列と同じデータ列をパラメータとして含む通常コマンド(たとえば、イメージ印刷コマンドやフォント登録コマンド)のデータ列を情報処理装置がプリンタに対して送信したい場合、まずリアルタイム処理禁止コマンドを送信し、ついで当該通常コマンドを送信し、さらにリアルタイム処理許可コマンドを送信すれば、通常コマンドのパラメータ内に偶然含まれるデータ列によりリアルタイム処理が実行されることはなくなる。
【0138】
(情報処理装置の第2実施例)
図11は、図5で示した本発明の情報処理装置(ホストコンピュータ)の実施例のブロック図に基づき、画像印刷やフォント登録などの処理において、通常コマンドのデータ列をプリンタに送る送信処理の流れを示すフローチャートである。この送信処理は、アプリケーションプログラムがオペレーティングシステムに対して印刷要求を送ることなどにより起動される。また、この送信処理は一般的にプリンタドライバーと呼ばれるプログラムによって実行され、このプログラムは、フロッピーディスクなどの記憶媒体から、ホストコンピュータにインストールされて用いられる。
【0139】
まず、CPU 501は、送信したい通常コマンドのデータ列がリアルタイム処理コマンドのデータ列と同じデータ列を含む可能性があるコマンドか否かを調べる(ステップS1101)。例えば、この送信しようとしているコマンドが、バイナリデータを転送するバイナリデータ処理コマンドであるかどうかである。
【0140】
バイナリデータ処理コマンドでない場合(ステップS1101;No)、当該通常コマンドのデータ列を送信し(ステップS1102)、本処理を終了する。
【0141】
含む場合(ステップS1101;Yes)、リアルタイム処理許可・禁止コマンドをコマンドを禁止する設定で送信し(ステップS1103)、さらに印刷装置101が搭載している通常コマンドのうちから、プリンタ情報を送信するステータスデータ送信コマンドを送信する(ステップS1104)。CPU 501は、印字装置101からステータスが送信されてくるのを待ち(ステップS1105)、ステータスを受信すると、ついで当該通常コマンドのデータ列を送信し(ステップS1106)、さらにリアルタイム処理許可コマンドを送信して(ステップS1107)、本処理を終了する。
【0142】
上記のステップS1104でステータス要求コマンドを実行し、ステップS1105で受信を待つ処理は、以下のような理由による。
【0143】
印刷装置101がコマンドを受信してから、リアルタイム処理許可・禁止コマンドが実行されるまでに時間差が発生する可能性がある。例えば、リアルタイム処理を禁止するコマンドを送信して、連続して、偶然にリアルタイム処理コマンドと同じデータ列が送信されると、禁止されるべきコマンドが実行されてしまう。そこで、印刷装置101に装置自体のステータスをメモリに格納しておき、ホストコンピュータの要求に基づいてこのステータスを送信する機能が搭載されているので、この機能を用いることによりリアルタイム処理禁止あるいは許可の設定が実行されたかどうかを検証することができる。
【0144】
印刷装置101側では、リアルタイム処理コマンドの禁止・あるいは許可を受信すると、フラッシュROM 107のステータス領域117のフラグを更新する。ステップS1104で、ホストコンピュータの要求に応じてこのフラグを含むステータスを送信することにより、ホストコンピュータに当該処理が実行されたことが通知される。このようにすると、リアルタイム処理許可・禁止コマンドが確実に実行されたことを確認することができる。このリアルタイム処理禁止・許可ステータスを送信するためのコマンドは専用コマンドであっても良いし、ステータスデータの内容に依存しないので、他のステータスデータと一緒に送信する汎用コマンドでも良い。
【0145】
また、本実施例では、リアルタイム処理コマンドごとに処理の禁止または許可を設定できるようにしているので、プリンタの電源をオフするコマンドといった、通常動作中は実行しないコマンドは、常時禁止状態としておき、実際に電源をオフする直前に許可することにより、ステップS1201で行っているような、送信したい通常コマンドのデータ列がリアルタイム処理コマンドのデータ列と同じデータ列を含むか否かを調べる処理を簡略化することができる。
【0146】
上記、データを受信する受信・解析処理、リアルタイム処理コマンドを実行するリアルタイム処理、通常コマンドを実行する通常処理、フラグを設定する設定処理はCPU、RAM、CPUを作動するプログラムを格納したROMを有する印刷装置の制御回路内で実行され、それぞれ対応するプログラムと、ハードウエアとのセットにより、受信・解析処理部、リアルタイム処理部、通常処理部、設定処理部を構成している。これらの処理部のそれぞれの一部、あるいは全ては、ゲートアレイ、又はDSPなどのハードウエアで代用することも可能である。
【0147】
これらの処理部のプログラムはROMに格納されるのが一般的であるが、これらのプログラムを、フロッピーディスクあるいは、CD−ROMなどの磁気あるいは光ディスク媒体や更には、WEBなどのサイトに格納し、プリンタにセットアップすることも可能である。
【0148】
【発明の効果】
以上説明したように、本発明によれば、以下の効果を奏する。
【0149】
まず、画像用のバイナリデータやフォント登録用のバイナリデータなどのバイナリデータと、リアルタイム処理コマンドを意味するデータ列とを区別して処理する印刷装置、情報処理装置、これらの制御方法を提供することができる。
【0150】
特に、リアルタイム処理コマンドのデータ列と同じバイトパターンを含む可能性のある通常コマンドのデータ列であっても、ユーザはそれを意識せずに、容易に処理させることができる印刷装置、情報処理装置、これらの制御方法を提供することができる。
【0151】
リアルタイム処理コマンドのそれぞれについて、その実行を禁止あるいは許可を設定できるため、ステータス要求などの緊急性の高いコマンド処理は、常に実行可能になるため、情報処理装置側の機能を損なうことなく、且つ確実な印刷処理を可能とした。
【0152】
さらに、プログラムを記録した情報記録媒体をソフトウェア商品として、印刷装置のハードウェアと独立して容易に配布したり販売したりすることができるようになる。本発明の情報記録媒体に記録されたプログラムを印刷装置で実行すれば、上記の発明に係る印刷装置、情報処理装置およびこれらの制御方法が実現できる。
【図面の簡単な説明】
【図1】本発明の印刷装置の実施例の概要を示すブロック構成図。
【図2】本発明の印刷装置の受信割り込み処理の流れの第1実施例を示すフローチャート。
【図3】本発明の印刷装置の受信割り込みの第1実施例における状態遷移を示す説明図。
【図4】本発明の印刷装置の通常処理の流れの実施例を示すフローチャート。
【図5】本発明の情報処理装置の実施例の概要を示すブロック構成図。
【図6】本発明の情報処理装置で実行される送信処理の流れの実施例を示すフローチャート。
【図7】本発明の印刷装置の受信割り込み処理の流れの第2実施例を示すフローチャート。
【図8】本発明の印刷装置の受信割り込みの第2実施例における状態遷移を示す説明図。
【図9】本発明の印刷装置の受信割り込み処理の流れの第3実施例を示すフローチャート。
【図10】本発明の印刷装置の通常処理の流れの実施例を示すフローチャート。
【図11】本発明の情報処理装置で実行される送信処理の流れの実施例を示すフローチャート。
【符号の説明】
101 プリンタ
102 インターフェース
103 CPU
104 RAM
105 ROM
107 印刷機構
111 受信バッファ
112 プリントバッファ
113 モード領域
114 フラグ領域
120 ホストコンピュータ
501 CPU
502 ROM
503 不揮発性記憶装置
504 RAM
505 インターフェース
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printing apparatus, an information processing apparatus, a control method thereof, and an information recording medium. In particular, a printing apparatus, an information processing apparatus, a control method thereof, and a method for distinguishing and processing binary data such as binary data for images and binary data for font registration and a data string that represents a real-time processing command, and realizing them The present invention relates to an information recording medium on which a program is recorded.
[0002]
[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 an information processing apparatus (host computer), and the host computer transmits a data string for printing characters and graphics and a data string for controlling the printer itself to the printer.
[0003]
The data sent from the host computer to the printer can be viewed as a bit string or a byte string. In particular, in a printer, a command system is constructed in units of 8 bits (1 byte), and each command is often constructed by a bit number that is a multiple of 8, that is, data of a certain number of bytes. The command is composed of a command symbol which is the byte string, a parameter of a byte string attached to the command symbol if necessary, and data added if necessary.
[0004]
As a data string for printing characters, the same byte value as that of the ASCII code is used. On the other hand, in image printing and user-defined font definition, a technique for expressing black and white by a byte string is used. In addition, in the image, there is a method of expressing the color of each point of the image by a plurality of bits included in each byte.
[0005]
When the interface unit of the printer receives 1 byte or several bytes of data, a reception interrupt is generated and the reception interrupt process is activated. In the reception interrupt process, the following process is performed.
[0006]
(1) It is determined whether or not the received data includes a real-time processing command. If the received data is included, the processing corresponding to the real-time processing command is immediately executed. (For this technical content, see Public Information: JP 09-16474)
(2) The received data is stored in a reception buffer composed of a RAM (Random Access Memory).
[0007]
When these reception interrupt processes are completed within a predetermined range, the process returns to the normal process. In general, it is continuously executed until a carriage return is received or the reception buffer is full. In the normal processing, the data string stored in the reception buffer is interpreted, and the print image is developed in the print buffer prepared in the RAM. This operation is a so-called FIFO process executed in the order of received data. In contrast, the real-time processing command is a command that is executed while ignoring the rules of the FIFO processing.
[0008]
In the print image, it is common to express which part of the print area is white and which part is black, that is, how to drive the print head, by bit values of 1 and 0. When the print image of one line can be developed, the print head is driven according to the contents of the print buffer, and characters and figures are printed on a print body such as paper.
[0009]
Even if a data string corresponding to a real-time processing command is stored in the reception buffer, processing corresponding to this has already been performed in the reception interrupt processing, so that it is simply skipped in the normal processing.
[0010]
Conventionally, the following are used as real-time processing commands. The following data byte strings are displayed using ASCII code mnemonics.
[0011]
・ "DLE EOT NUL" Printer status is sent to the host computer in real time.
[0012]
• “DLE EOT BEL” Sends the printer ink status to the host computer in real time.
[0013]
・ "DLE EOT BS" Sends the status of the status related to MICR (Magnetic Ink Character Recognition) function to the host computer in real time.
[0014]
-Real-time request for "DLE ENQ" printer.
[0015]
・ Outputs “DLE DC4 SOH” specified pulse in real time.
[0016]
・ Turn off the “DLE DC4 STX” printer.
[0017]
・ Clear the reception buffer of “DLE DC4 BS” printer.
[0018]
In addition, when the printer is used as a register, a process such as opening a cash box may be instructed by a real-time processing command. In this case, a new real-time processing command is prepared.
[0019]
Here, each mnemonic is defined as follows. Hexadecimal notation is used, and “0x” is a prefix meaning a hexadecimal number.
[0020]
NUL = 0x00
SOH = 0x01
STX = 0x02
EOT = 0x04
ENQ = 0x05
BEL = 0x07
BS = 0x08
DLE = 0x10
DC4 = 0x14
[0021]
[Problems to be solved by the invention]
However, the same data string as the real-time processing command may appear by chance in the data string definition for transferring binary data such as image binary data or font registration data to the printing apparatus. Even if it should not be interpreted as a real-time processing command, there is a possibility that the processing corresponding to the real-time processing command is executed in the reception interrupt processing as described above.
[0022]
In other words, unintended real-time processing command processing is executed at an unintended timing by the host computer, so the printer is turned off, the host computer is not ready for reception, or is consistent with the printer. There was a possibility that it could not be removed.
[0023]
For this reason, there has been a demand for transferring a binary data string that includes the same data string as that of the real-time processing command from the host computer to the printer separately from the real-time processing command.
[0024]
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. A printing apparatus and an information processing apparatus that distinguish and process binary data such as image data and font registration data from a data string that represents a real-time processing command. It is an object of the present invention to provide an apparatus, a control method thereof, and an information recording medium on which a program for realizing the device is recorded.
[0025]
[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.
[0026]
The control method of the printing apparatus of the present invention includes:
In a printing apparatus control method by a host computer that transmits data including a real-time processing command, a real-time processing permission command, and a real-time processing prohibition command to a connected printing apparatus.
As one of the real-time processing commands, including a real-time power off command for turning off the power of the printing apparatus,
By transmitting the real-time processing permission command, for the real-time power-off command, setting permission for the execution of the command,
By sending the real-time processing prohibition command, for the real-time power off command, setting prohibition of execution of the command,
Send the real-time processing prohibit command, always prohibit the execution of the real-time power off command,
When turning off the printing apparatus using the real-time power-off command, the real-time processing permission command is transmitted immediately before turning off the printing apparatus, and the execution of the real-time power-off command is permitted. The real-time power off command is transmitted.
The following configuration may also be used.
[0027]
In the printing apparatus according to the present invention, the real-time processing permission command and / or the real-time processing permission command has a parameter of at least 2 bytes, and the parameter is a command to be set for each of the plurality of real-time processing commands. Whether to allow the execution of the command for each of the plurality of real-time processing commands in accordance with the parameter for the plurality of commands. Is set in the instruction section.
[0028]
Further, in the printing apparatus of the present invention, the real-time processing permission command and the real-time processing prohibition command have the same command symbol, and are prepared as real-time processing permission / prohibition commands that can be designated as permitted or prohibited by the parameters, In response to the real-time processing permission / inhibition command, the setting unit sets permission or prohibition of execution of the command in the instruction unit for each of the plurality of real-time processing commands.
[0029]
According to another aspect of the present invention, there is provided a printing apparatus that is connected to an information processing apparatus, receives a data string including a predetermined command and data, and executes printing and predetermined processing corresponding to the command. ) A reception / analysis processing unit that receives a data string including one or a combination of a real-time processing command, a real-time processing permission / prohibition command, and a normal processing command; and (b) whether to permit execution of the real-time processing command. And (c) when the reception / analysis processing unit receives a data string of a real-time processing permission / prohibition command, permits or prohibits execution of the real-time processing command based on a parameter corresponding to the command. (D) the instruction unit executes the real-time processing command. A real-time processing unit that executes real-time processing corresponding to the data sequence of the real-time processing command; and (e) the reception A printing apparatus comprising: a normal processing unit that executes normal processing corresponding to the data sequence of the normal processing command when the data sequence received by the analysis processing unit is a data sequence of the normal processing command It is.
[0030]
The real-time processing enable / disable command has a command symbol and a parameter corresponding to the command symbol, and the setting unit responds to the real-time enable / disable command, and sets a plurality of real-time processing commands according to the contents of the parameter. In the printing apparatus, the command section is set to permit or prohibit the execution of the command.
[0031]
Furthermore, the present invention is a printing apparatus control method comprising the following steps.
[0032]
(A) a reception step of receiving a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, a real-time processing permission command, and a normal processing command; and (b) a data string received in the reception step. Is a data string of a real-time processing command, the receiving step determines whether the execution of the real-time processing command is permitted, and (c) the real-time processing command is permitted in the determination step. If the command is a command that is being executed, a step corresponding to the command is executed, and if the command is prohibited, a step of ignoring the command without executing it is executed, and (d) the data sequence received in the receiving step is a normal process. If it is a command data string, the normal Normal processing step of performing a normal process corresponding to the data string of management commands.
[0033]
The printing apparatus control method of the present invention includes the following steps.
[0034]
(A) a reception step of receiving a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, and a normal processing command; and (b) a data string received in the reception step is a real-time processing command. In the case of a data string, depending on the command symbol of the command and the parameters associated with the command, a step of allowing or disabling execution of the processing for each of a plurality of real-time processing commands in a predetermined instruction unit; d) When receiving a command sequence corresponding to any one of the plurality of real-time processing commands, selecting whether to execute or prohibit the real-time processing according to the contents of the instruction unit; e) When the normal command is received, Performing normal processing in accordance with contents of the command.
[0035]
Furthermore, the present invention is an information recording medium on which a program for controlling a printing apparatus is recorded, and includes the following steps. (A) a reception step of receiving a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, a real-time processing permission command, and a normal processing command; and (b) a data string received in the reception step. Is a data string of a real-time processing command, the receiving step determines whether the execution of the real-time processing command is permitted, and (c) the real-time processing command is permitted in the determination step. If the command is a command that is being executed, a step corresponding to the command is executed, and if the command is prohibited, a step of ignoring the command without executing it is executed, and (d) the data sequence received in the receiving step is a normal process. If it is a command data string, the normal Normal processing step of performing a normal process corresponding to the data string of management commands.
[0036]
Furthermore, the present invention selectively connects one or more of a plurality of normal processing commands connected to the printing apparatus to execute predetermined normal processing and a plurality of real-time processing commands to be executed in preference to the normal processing commands. In an information processing apparatus that transmits a data string including commands of those combinations to the printing apparatus and executes predetermined processing, (a) in response to a request from an application program, the printing apparatus performs predetermined normal processing. A command for causing the printer to execute a command and data accompanying the command if necessary; and (b) a command for causing the printing apparatus to execute a real-time process for executing a process having a higher priority than the normal process. (C) when the normal processing command is a command for executing binary data transfer, Prior to the transmission of a command, a section for transmitting a real-time processing prohibition command for prohibiting execution of the real-time processing command; and (d) permitting execution of the real-time processing command when the binary data transfer is completed. An information processing apparatus comprising: a unit that transmits a real-time processing permission command.
[0037]
Furthermore, the present invention selectively connects one or more of a plurality of normal processing commands connected to the printing apparatus to execute predetermined normal processing and a plurality of real-time processing commands to be executed in preference to the normal processing commands. In an information processing apparatus that transmits a data string including commands of those combinations to the printing apparatus and executes predetermined processing, (a) in response to a request from an application program, the printing apparatus performs predetermined normal processing. A step for transmitting a command for executing the process and data accompanying the command if necessary, and (b) a command for causing the printing apparatus to execute a real-time process for executing a process having a higher priority than the normal process. (C) a command for executing binary data transfer, wherein the normal processing command is A step of transmitting a real-time processing prohibition command for prohibiting execution of the real-time processing command prior to transmission of the command; and (d) execution of the real-time processing command when transfer of the binary data is completed. And a step of transmitting a real-time processing permission command for allowing the information processing apparatus.
[0038]
Furthermore, the present invention provides an information recording medium on which an information processing apparatus program including the following steps is recorded. (A) In order to cause the printing apparatus to execute predetermined normal processing in response to a request from an application program. And (b) transmitting a command for causing the printing apparatus to execute a real-time process for executing a process having a higher priority than the normal process. (C) when the command for normal processing is a command for executing binary data transfer, transmitting a real-time processing prohibition command for prohibiting execution of the real-time processing command prior to transmission of the command; (D) When the transfer of the binary data is completed, the real-time processing command is executed. Transmitting a real-time process permission command for permitting.
[0039]
Furthermore, the information recording medium of the present invention is a compact disk, a floppy disk, a hard disk, a magneto-optical disk, a digital video disk, a magnetic tape, or a semiconductor memory. .
[0040]
In addition, the printing apparatus of the present invention instructs a reception / analysis processing unit that receives a data string including one or a combination of a real-time processing command, a normal processing command, and whether to execute the real-time processing command. And when the instruction unit indicates permission to execute the real-time processing command, it is received by the real-time processing unit that executes the real-time processing corresponding to the data string of the real-time processing command and the reception / analysis processing unit. In the case where the data string is a data string of a normal process command, a normal processing unit that executes a normal process corresponding to the data string of the normal process command is provided.
[0041]
Further, the present invention provides a reception / analysis processing unit for receiving a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, and a normal processing command, and an instruction as to whether execution of the real-time processing command is permitted. When the time elapsed since the reception unit and the reception / analysis processing unit last received the data string of the real-time processing prohibition command exceeds a predetermined time, the instruction unit is permitted to execute the real-time processing command. When the setting processing unit and the instruction unit that are set to the state permit the execution of the real-time processing command, when the reception / analysis processing unit receives the real-time processing command, the real-time processing corresponding to the data string of the real-time processing command Received by the real-time processing unit and the reception / analysis processing unit If over data string is a data string of the normal processing command, and having a normal processing section executes normal processing corresponding to the data sequence of the normal processing command.
[0042]
In addition, the printing apparatus of the present invention includes a reception / analysis processing unit that receives a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, a real-time processing permission command, and a normal processing command, and a real-time processing command. The instruction unit for instructing whether or not to execute and the time elapsed since the reception / analysis processing unit last received the data string of the real-time processing prohibition command exceeds a predetermined time, or the reception / analysis When the processing unit receives a real-time processing permission command after receiving the data string of the real-time processing prohibition command last, a setting processing unit that sets the instruction unit to instruct permission to execute the real-time processing command, and an instruction unit If the execution of the real-time processing command is permitted, the reception / analysis processing unit When the received data sequence is a real-time processing command, the real-time processing unit that executes the real-time processing corresponding to the data sequence of the real-time processing command and the data sequence received by the reception / analysis processing unit are the data sequence of the normal processing command It is characterized by having a normal processing unit that executes a normal process corresponding to the data string of the normal process command.
[0043]
In addition, the printing apparatus of the present invention includes a reception / analysis processing unit that receives a data string including one or a combination of a real-time processing command, a real-time processing prohibition command, a real-time processing permission command, and a normal processing command, and a real-time processing command. When the real-time processing permission command is received after the receiving / analysis processing unit has received the data sequence of the real-time processing prohibition command lastly, the instruction unit is instructed to execute the real-time processing command. When the setting processing unit configured to instruct permission and the instruction unit permit execution of the real-time processing command, when the data string received by the reception / analysis processing unit is a real-time processing command, the real-time processing command Execute real-time processing corresponding to the data string When the data sequence received by the reception / analysis processing unit is a data sequence of a normal processing command, the normal time processing unit has a normal processing unit that executes normal processing corresponding to the data sequence of the normal processing command. It is characterized by.
[0044]
In addition, the present invention is configured such that a part or all of the reception / analysis processing unit, the real-time processing unit, and the normal processing unit are configured by a control circuit including a CPU, a RAM, and a ROM storing a program for operating the CPU. The printing apparatus is characterized by the above.
[0045]
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 of these elements or all of the elements are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention.
[0046]
(Printer)
FIG. 1 shows a block diagram of an embodiment of a printing apparatus (printer) according to the present invention.
[0047]
The printer 101 is connected to a host computer 120, which is an information processing apparatus, via an interface 102, and includes a CPU 103, a RAM 104, a ROM 105, a nonvolatile memory 106, and a printing mechanism 107 as main components.
[0048]
When the interface 102 receives the data string transmitted by the host computer 120, it issues a reception interrupt to a CPU (Central Processing Unit) 103. The CPU 103 activates the reception interrupt process by the reception interrupt, and when the reception interrupt process determines that the received data string includes the real-time processing command, the CPU 103 executes the corresponding real-time process as described above. Further, in the reception interrupt process, the received data string is stored in the reception buffer 111 provided in the RAM 104. When the reception interrupt process ends, the control of the CPU 103 returns to the normal process.
[0049]
In the normal process, the CPU 103 interprets the data string stored in the reception buffer 111 of the RAM 104 as a print command or a printer setting command, acquires a font shape from a ROM (Read Only Memory) 105 that stores fonts, Image data is generated, and the print image is developed in the print buffer 112 provided in the RAM 104.
[0050]
Further, when the print image developed in the print buffer 112 reaches a predetermined amount, for example, one line, the printing mechanism 107 is driven according to the print image to print characters and figures on a print medium such as paper. To do.
[0051]
When the data string stored in the reception buffer 111 is a font definition command, the definition of the font is stored in the RAM 104. The nonvolatile memory 106 is an EEPROM (Electrically Erasable Programmable ROM) or a flash memory, and can update the contents of the nonvolatile memory 106 in accordance with a font definition command. The non-volatile memory is provided with a status area 116 serving as a status information storage unit for storing the status of the printing apparatus. In response to a status request command from the host computer 120, information in this area is stored in the non-volatile memory. It is transmitted to the computer 120.
[0052]
Further, the RAM 104 has an area 113 for storing the current mode used in the reception interrupt process. As a result, it is possible to know whether a real-time processing command is being received or other data is being received. In addition, there is a kind of flag area 114 (instruction part) of an instruction part for storing whether real-time processing is currently prohibited or for storing various printer states (status). The flag area 114 is an area temporarily used when the CPU 103 performs processing because information is lost when the power is turned off.
[0053]
Here, the CPU 103 functions as a reception / analysis processing unit, a real-time processing unit, a normal processing unit, and a flag setting processing unit in cooperation with the interface 102, the RAM 104, the ROM 105, and the like. They all work together as a print processing unit. The ROM 105 functions as an information recording medium that records a program.
[0054]
(First Example of Reception Interrupt Processing of Printing Apparatus)
FIG. 2 is a flowchart showing an embodiment of the flow of reception interrupt processing of the printing apparatus of the present invention. This reception interrupt process is started when the interface 102 of the printer 101 receives a data string transmitted from the host computer 120. In the following, an embodiment in which a reception interrupt is generated every time the interface 102 receives 1 byte of data will be described, but the reception interrupt is activated every time data of an arbitrary number of bytes of 1 or more is received. However, similar processing is possible, and the embodiment is also included in the scope of the present invention.
[0055]
In the present embodiment, the following binary data processing commands are facilitated as normal commands.
[0056]
ESC * m n1 n2: Used when transferring bitmap data that is binary data of a predetermined data amount defined by n1, n2. As a result, the printer executes image printing.
[0057]
-ESC & snm: Used when transferring font registration data with a predetermined amount of data.
[0058]
• FSg1 m a1 a2 a3 a4 nL nH d1 ... dk: Used when writing data to user-defined nonvolatile memory. (Note that each parameter is fixed at m = 0, a1 to a4 designate data storage start addresses, and nL and nH designate the number of stored data.)
In this embodiment, the following real-time processing prohibit command is prepared as a “real-time processing command”.
[0059]
・ "DLE EOT EOT" After this, processing of real-time processing commands for a predetermined time (for example, 1 second) is prohibited.
[0060]
As described above, this processing is started when the interface 102 of the printer 101 receives data transmitted from the host computer 120.
[0061]
When activated, the CPU 103 first stores 1-byte data received by the interface 102 in the reception buffer 111 in the RAM 104 (step S201). The reception buffer 111 is generally configured as a ring buffer.
[0062]
Next, the flag area 114 of the RAM 104 is checked to determine whether or not real-time processing is currently prohibited (step S202).
[0063]
If it is not prohibited (step S202; No), the current reception interrupt mode stored in the mode area 113 is checked (step S203). The value of the reception interrupt mode indicates whether a real-time processing command is currently being received.
[0064]
Further, the value of the reception interrupt mode stored in the mode area 113 of the RAM 104 is updated according to the data value received in step S201 according to the state transition diagram shown in FIG. 3, and processing is performed if necessary. (Step S204), and this interrupt process is terminated.
[0065]
FIG. 3 is an explanatory diagram showing state transition in a reception interrupt. This state transition diagram is determined from the data string system of the real-time processing command described above.
[0066]
Mode A is a mode that means that commands other than real-time processing commands are currently being interpreted. When in mode A, if the value of the data received in step S201 is DLE, the mode shifts to mode B.
[0067]
Mode B is a mode that means that the first byte (DLE) of the real-time processing command is currently received. When in mode B, the transition is made as follows according to the value of the data received in step S201.
[0068]
・ If it is EOT, shift to mode C.
[0069]
If it is ENQ, execute processing corresponding to the real-time request of the printer and shift to mode A.
[0070]
・ If it is DC4, shift to mode D.
[0071]
In other cases, the received data string is not the data string of the real-time processing command, so the mode is shifted to mode A.
[0072]
Mode C is a mode that means that a real-time processing command starting with DLE EOT is currently being received. When in mode C, transition is made as follows according to the value of the data received in step S201.
[0073]
If it is NUL, the status of the printer 101 is transmitted to the host computer 120 in real time, and the mode is shifted to mode A.
[0074]
In the case of BEL, the state of the ink included in the printing mechanism 107 of the printer 101 is transmitted to the host computer 120 in real time, and the mode is shifted to mode A.
[0075]
In the case of BS, the status state related to the MICR of the printer 101 is transmitted to the host computer 120 in real time, and the mode is shifted to mode A.
[0076]
In the case of EOT, “real-time processing prohibited” is set in the flag area 114 of the RAM 104. Further, the timer interrupt process is set so that the “process to set in the flag area 114“ real-time process permission ”” is executed by a timer interrupt after a predetermined time (for example, 1 second) from the present. Thereafter, the mode shifts to mode A.
[0077]
In other cases, the received data string is not the data string of the real-time processing command, so the mode is shifted to mode A.
[0078]
Mode D is a mode that means that a real-time processing command starting with DLE DC4 is currently being received. When in mode D, transition is made as follows according to the value of the data received in step S201.
[0079]
・ If it is SOH, execute the real-time output of the specified pulse and shift to mode A.
[0080]
・ If it is STX, turn off the printer.
[0081]
In the case of BS, the reception buffer 111 and the print buffer 112 arranged in the RAM 104 are cleared and the mode A is entered.
[0082]
In other cases, the received data string is not the data string of the real-time processing command, so the mode is shifted to mode A.
[0083]
On the other hand, as a result of examining the flag area 114, if the real-time processing is currently prohibited (step S202; Yes), the reception interrupt processing is terminated.
[0084]
As described above, whether or not real-time processing is prohibited is checked for each reception interrupt, and the time required for this is on the order of several microseconds. As described above, since the process is relatively simple, the time required for the reception interrupt process can be shortened.
[0085]
(First embodiment of normal processing of printing apparatus)
The normal processing is processing for interpreting and printing data received by the printer 101. FIG. 4 is a flowchart showing a control flow of normal processing of the printer 101. Even during normal processing, the reception interrupt processing described above may be activated by an interrupt.
[0086]
The CPU 103 acquires the data while the unprocessed data remains in the reception buffer 111. If the data does not remain, the CPU 103 waits and stores the data in the reception buffer 111 by the above-described reception interrupt processing. Wait for it. Although such coroutine processing is executed, in the following description, for the sake of simplicity, the above processing is performed once to acquire 1 byte of data from the reception buffer 111, and the processing is performed multiple times to perform multiple bytes. Together with the case of acquiring the data from the reception buffer 111, this is referred to as “acquiring data from the reception buffer”.
[0087]
In this embodiment, a command that permits real-time processing is prepared as a normal processing command.
[0088]
First, the CPU 103 acquires data from the reception buffer 111 (step S401), and checks the type of the data (step S402).
[0089]
If this data is a real-time processing permission command (step S402; RTC permission), “real-time processing permission” is set in the flag area 114 in the RAM 104 (step S403), and the process returns to step S401.
[0090]
On the other hand, if this data is a normal process command other than this (step S402; normal), the process associated with the command is executed (step S404), and if the process continues (step 405; Yes), The process returns to step S401. This processing includes processing such as printing of characters and graphics, printing of images, and font registration.
[0091]
If this data is a real-time processing command (step S402; RTC), if there is a continuation of processing (step 405; Yes), the process returns to step S401. This is because the process associated with the real-time process command has already been executed in the reception interrupt process.
[0092]
If reception interrupt processing and normal processing are configured in this way, a data sequence of a normal command (for example, an image print command or a font registration command) including the same data sequence as the data sequence of a real-time processing command as a parameter is processed. When the device wants to send to the printer, it first sends a real-time processing prohibition command, then sends the normal command, and then sends a real-time processing permission command. The process will not be executed.
[0093]
(First embodiment of information processing apparatus)
FIG. 5 shows a block diagram of an embodiment of the information processing apparatus (host computer) of the present invention.
[0094]
The information processing apparatus 120 of the present invention is controlled by the CPU 501. When the information processing apparatus 120 is powered on, the CPU 501 executes an IPL (Initial Program Loader) stored in a predetermined location in the ROM 502, starts processing, and further, a hard disk, floppy disk, CD- A program stored in a nonvolatile storage device 503 such as a ROM (Compact Disk ROM) can be executed. When executing the program, the RAM 504 is used as a temporary storage device.
[0095]
When executing an application program for printing characters and graphics, a print command data string is transmitted to the printer via the interface 505.
[0096]
Furthermore, the information processing apparatus 120 can include an input device such as a keyboard and a mouse (not shown) and a display device such as a display (not shown).
[0097]
Here, the CPU 501 cooperates with the RAM 504 to function as an insertion generation unit, and the interface 505 functions as a transmission unit.
[0098]
The non-volatile storage device 503 functions as an information recording medium that records a program. In addition, a device such as a CD-ROM drive or a floppy drive (not shown) is provided so that a predetermined program can be installed from a recording medium on which information is recorded.
[0099]
FIG. 6 is a flowchart showing the flow of transmission processing for sending a data string of normal commands to a printer in processing such as image printing and font registration. This transmission process is started when the application program sends a print request to the operating system. This transmission process is generally executed by a program called a printer driver, and this program is installed in a host computer from a storage medium such as a floppy disk and used.
[0100]
First, the CPU 501 checks whether or not the data string of the normal command to be transmitted includes the same data string as the data string of the real-time processing command (step S601).
[0101]
If not included (step S601; No), the data string of the normal command is transmitted (step S602), and this process ends.
[0102]
If included (step S601; Yes), a real-time processing prohibit command is transmitted (step S603), then a data string of the normal command is transmitted (step S604), and a real-time processing permission command is transmitted (step S605). This process ends.
[0103]
In addition to this processing, the following processing can be performed. For example, when printing an image, it is determined whether or not the normal command is an amount that can be processed by the printer within a predetermined time (for example, 1 second). In the case of an amount that can be processed, the same processing as the processing in steps S603 to S605 is performed.
[0104]
If the amount cannot be processed within a predetermined time, the normal command is interpreted and divided into a plurality of normal commands. Further, for each normal command, first, the same processing as the processing of step S603 to step S605 is performed to print a part of the image, and whether or not real-time processing is necessary is checked. The process of sending is repeated.
[0105]
By performing such processing, the predetermined time (1 second) is sufficient even when the waiting time when real-time processing is necessary is maximum.
[0106]
(Second Example of Reception Interrupt Processing of Printing Apparatus)
FIG. 7 is a flowchart showing the flow of the second embodiment of the reception interrupt processing of the printing apparatus. In this embodiment, a count area is provided in the RAM 104. The real-time prohibition command is composed of the following 5 bytes: 3 bytes for command symbol + 2 bytes for parameter.
[0107]
・ "DLE EOT EOT nm"
This means that “real-time processing is prohibited for the following (n * 256 + m) bytes”.
[0108]
When the reception interrupt process of this embodiment is started, first, the CPU 103 stores 1-byte data received by the interface 102 in the reception buffer 111 in the RAM 104 (step S701). The reception buffer 111 is generally configured as a ring buffer.
[0109]
Next, the flag area 114 of the RAM 104 is checked to determine whether or not real-time processing is currently prohibited (step S702).
[0110]
If it is not prohibited (step S702; No), the current reception interrupt mode stored in the mode area 113 is checked (step S703). The value of the reception interrupt mode indicates whether a real-time processing command is currently being received.
[0111]
Furthermore, the value of the reception interrupt mode stored in the mode area 113 of the RAM 104 is updated according to the data value received in step S701 according to the state transition diagram shown in FIG. 8, and processing is performed if necessary. (Step S704), and this interrupt process is terminated.
[0112]
The state transition diagram shown in FIG. 8 is mostly the same as the state transition diagram shown in FIG. 3, but the processing when receiving EOT in mode C is different.
[0113]
That is, when EOT is received in mode C, the mode shifts to mode X.
[0114]
When the byte value n is received in the mode X, the value n * 256 is substituted into the count area 115 in the RAM 104 and the mode Y is shifted to.
[0115]
When the byte value m is received in mode Y, the value m is added to the count area 115 in the RAM 104, “real-time processing prohibited” is set in the flag area 114, and the mode A is entered.
[0116]
On the other hand, if it is determined in step S702 that real-time processing is prohibited (step S702; Yes), the value stored in the count area 115 is decreased by 1 (step S705), and the value stored in the count area 115 is It is checked whether or not it is greater than 0 (step S706). If it is greater than 0 (step S706; Yes), this interrupt process is terminated. If it is 0 or less (step S706; No), “real-time processing permission” is set in the flag area 114 (step S707), and this interrupt processing is terminated.
[0117]
As described above, in this embodiment, the real-time processing prohibition command can be set with the parameter setting “prohibit real-time processing for XX bytes thereafter”, so there is no need to prepare a real-time processing permission command. On the other hand, in the information processing apparatus, when it is desired to transmit a data string of a normal command including the same data string as the data string of the real-time processing command as a parameter, first, a real-time processing prohibition command including the length of the normal command as a parameter is transmitted. Then, the normal command may be transmitted.
[0118]
The above-described flag area storing the printer status is generally provided in a flash memory or the like that needs to be kept in the storage state even when the power is turned off, and the flag area is provided in the RAM. Further, it is not necessary to store the flag indicating whether or not to prohibit the real-time processing command even when the power is turned off.
[0119]
In the case of normal use, there is almost no need to print image data, and if it is desired to prohibit this real-time processing command only at the time of font registration work, a hardware element such as a dip switch can be substituted. In this case, the dip switch serves as the instruction unit.
[0120]
(Third embodiment of reception interrupt processing of printing apparatus)
Among the plurality of real-time processing commands, there are actually those that have no problem even if executed during transfer of binary data. Also, when transferring binary data, if the binary data includes the logo of the store where the POS is installed, data that may be confused with the real-time processing command may not be created in advance. If there is, there is no problem even if a real-time processing command is transmitted for this purpose. In this case, the following commands are defined as normal commands so that prohibition or permission can be set corresponding to each real-time processing command.
[0121]
GS (D mn (“GS (D” is a command symbol, mn is a parameter, m is a command designation, n is a designation of permission or prohibition, and specifies which command is prohibited or permitted. it can)
When the command is received, permission or prohibition is set and stored for each command in the instruction section of the flag area 114. For example, if there are eight or less real-time processing commands for which prohibition / permission processing is to be set, whether or not to set is specified by the parameter m. In the case of 1000 and 0011, the commands assigned to the first, seventh and eighth are subject to permission / prohibition. Further, when the parameter n is specified as 1000, 0010, if 1 is permitted, 0 is prohibited, the commands assigned to the first and seventh are set to permitted, and the eighth is set to prohibited. Can be set.
[0122]
FIG. 9 is a flowchart showing a third embodiment of the flow of reception interrupt processing of the printing apparatus of the present invention. In this embodiment, as described above, the prohibition or permission of real-time processing is prepared as a normal command that can be set with a command. The reception interrupt processing function of FIG. 9 receives data, stores it in the reception buffer 111, analyzes whether it contains a real-time processing command while receiving data simultaneously, and has the CPU 103 as a main element. The reception / analysis processing unit executes.
[0123]
When the reception interrupt process of this embodiment is started, first, the CPU 103 stores 1-byte data received by the interface 102 in the reception buffer 111 in the RAM 104 (step S901). The reception buffer 111 is generally configured as a ring buffer.
[0124]
Next, the current reception interrupt mode stored in the mode area 113 is checked (step S902). The value of the reception interrupt mode indicates whether a real-time processing command is currently being received.
[0125]
Further, the value of the reception interrupt mode stored in the mode area 113 of the RAM 104 is updated according to the value of the data received in step S901 according to the state transition diagram shown in FIG. 3 (step 903). It is determined whether it is necessary to perform command processing for mode update (step 904). If command processing needs to be performed (step 904: Yes), the flag area 114 of the RAM 104 is checked to determine whether or not real-time processing of the command to be executed is currently prohibited (step S905). If not (step S905; No), the processing corresponding to the real-time processing command is performed (step S906). If prohibited (step S905; Yes), this interrupt processing is terminated without executing the command processing. To do.
[0126]
Thus, every time a data string of a real-time processing command is received, it is checked whether or not real-time processing is prohibited. The time required for this is on the order of several microseconds. As described above, since the process is relatively simple, the time required for the reception interrupt process can be shortened.
[0127]
The above processing is executed in the same manner along FIG. 3 which is an explanatory diagram showing state transition in the reception interrupt, but the details differ in the following points.
[0128]
1. If EOT is received while in mode C, the process of shifting to mode A is not performed.
[0129]
2. In the third embodiment, real-time processing can be prohibited or permitted individually for each command, and the prohibited command changes mode without executing command processing.
[0130]
(Second embodiment of normal processing of printing apparatus)
The normal process is a FIFO process that reads and executes data received by the printer 101 in the order of input. FIG. 10 is a flowchart showing a control flow of the second embodiment of the normal processing of the printer 101. Even during normal processing, the reception interrupt processing described above may be activated by an interrupt.
[0131]
The CPU 103 acquires the data while the unprocessed data remains in the reception buffer 111. If the data does not remain, the CPU 103 waits and stores the data in the reception buffer 111 by the above-described reception interrupt processing. Wait for it. Although such coroutine processing is executed, in the following description, for the sake of simplicity, the above processing is performed once to acquire 1 byte of data from the reception buffer 111, and the processing is performed multiple times to perform multiple bytes. Together with the case of acquiring the data from the reception buffer 111, this is referred to as “acquiring data from the reception buffer”.
[0132]
In this embodiment, a command for prohibiting real-time processing and a command for allowing real-time processing are provided as a single command called a real-time command permission / prohibition command, which is prepared as a normal processing command.
[0133]
First, the CPU 103 acquires data from the reception buffer 111 (step S1001), and checks the type of the data (step S1002).
[0134]
If this data is a real-time processing permission / inhibition command (step S1002; RTC permission), “real-time processing permission” or “real-time processing permission” is set in the flag area 114 in the RAM 104 for each real-time processing command (step S1002). In step S1003, it is checked whether to continue the process (step S1005). If the process is continued (step S1005: Yes), the process returns to step S1001.
[0135]
On the other hand, if this data is a normal process command other than this (step S1002; normal), the process associated with the command is executed (step S1004), and the process returns to step S1001 via step S1005. This processing includes processing such as printing of characters and graphics, printing of images, and font registration.
[0136]
If this data is a real-time processing command (step S1002; RTC), the process returns to step S1001. This is because the process associated with the real-time process command has already been executed in the reception interrupt process.
[0137]
If reception interrupt processing and normal processing are configured in this way, a data sequence of a normal command (for example, an image print command or a font registration command) including the same data sequence as the data sequence of a real-time processing command as a parameter is processed. When the device wants to send to the printer, it first sends a real-time processing prohibition command, then sends the normal command, and then sends a real-time processing permission command. The process will not be executed.
[0138]
(Second embodiment of the information processing apparatus)
FIG. 11 is a block diagram of a transmission process for sending a normal command data string to a printer in processing such as image printing and font registration based on the block diagram of the embodiment of the information processing apparatus (host computer) of the present invention shown in FIG. It is a flowchart which shows a flow. This transmission process is started when the application program sends a print request to the operating system. This transmission process is generally executed by a program called a printer driver, and this program is installed in a host computer from a storage medium such as a floppy disk and used.
[0139]
First, the CPU 501 checks whether there is a possibility that the data string of the normal command to be transmitted includes the same data string as the data string of the real-time processing command (step S1101). For example, whether the command to be transmitted is a binary data processing command for transferring binary data.
[0140]
If it is not a binary data processing command (step S1101; No), the data string of the normal command is transmitted (step S1102), and this processing is terminated.
[0141]
If it is included (step S1101; Yes), a real-time processing permission / prohibition command is transmitted with the setting for prohibiting the command (step S1103), and the printer information is transmitted from the normal commands installed in the printing apparatus 101. A data transmission command is transmitted (step S1104). The CPU 501 waits for the status to be transmitted from the printing apparatus 101 (step S1105). When the status is received, the CPU 501 then transmits the data string of the normal command (step S1106), and further transmits a real-time processing permission command. (Step S1107), the process is terminated.
[0142]
The processing for executing the status request command in step S1104 and waiting for reception in step S1105 is as follows.
[0143]
There may be a time difference between when the printing apparatus 101 receives the command and when the real-time processing permission / prohibition command is executed. For example, if a command that prohibits real-time processing is transmitted, and the same data string as the real-time processing command is transmitted accidentally, the command that should be prohibited is executed. Therefore, the printing apparatus 101 has a function for storing the status of the apparatus itself in a memory and transmitting this status based on a request from the host computer. By using this function, real-time processing is prohibited or permitted. It can be verified whether the configuration has been executed.
[0144]
When the printing device 101 receives the prohibition or permission of the real-time processing command, it updates the flag in the status area 117 of the flash ROM 107. In step S1104, a status including this flag is transmitted in response to a request from the host computer, thereby notifying the host computer that the processing has been executed. In this way, it can be confirmed that the real-time processing permission / prohibition command has been executed reliably. The command for transmitting the real-time processing prohibition / permission status may be a dedicated command or may be a general-purpose command transmitted together with other status data because it does not depend on the contents of the status data.
[0145]
Further, in this embodiment, since processing prohibition or permission can be set for each real-time processing command, commands that are not executed during normal operation, such as a command to turn off the printer power, are always prohibited. By permitting immediately before the power is actually turned off, the process of checking whether the data string of the normal command to be transmitted includes the same data string as the data string of the real-time processing command, as in step S1201, is simplified. Can be
[0146]
The reception / analysis process for receiving data, the real-time process for executing a real-time process command, the normal process for executing a normal command, and the setting process for setting a flag have a CPU, a RAM, and a ROM storing a program for operating the CPU. A reception / analysis processing unit, a real-time processing unit, a normal processing unit, and a setting processing unit are configured by a set of programs and hardware that are executed in the control circuit of the printing apparatus. Some or all of these processing units can be replaced with hardware such as a gate array or a DSP.
[0147]
The programs of these processing units are generally stored in ROM, but these programs are stored in a floppy disk, a magnetic or optical disk medium such as a CD-ROM, or a site such as WEB, It is also possible to set up a printer.
[0148]
【The invention's effect】
As described above, the present invention has the following effects.
[0149]
First, it is possible to provide a printing apparatus, an information processing apparatus, and a control method thereof for separately processing binary data such as binary data for images and binary data for font registration and a data string that represents a real-time processing command. it can.
[0150]
In particular, a printing apparatus and an information processing apparatus that allow a user to easily process a data string of a normal command that may include the same byte pattern as the data string of a real-time processing command, without being aware of it These control methods can be provided.
[0151]
Since execution of each real-time processing command can be prohibited or permitted, highly urgent command processing such as status requests can always be executed, so that the functions on the information processing device side are not impaired and reliable. Printing process.
[0152]
Furthermore, the information recording medium on which the program is recorded can be easily distributed or sold as a software product independently of the hardware of the printing apparatus. When the program recorded on the information recording medium of the present invention is executed by the printing apparatus, the printing apparatus, the information processing apparatus, and the control methods thereof according to the above invention can be realized.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an outline of an embodiment of a printing apparatus according to the present invention.
FIG. 2 is a flowchart showing a first embodiment of a flow of reception interrupt processing of the printing apparatus of the present invention.
FIG. 3 is an explanatory diagram showing state transition in the first embodiment of a reception interrupt of the printing apparatus of the present invention.
FIG. 4 is a flowchart illustrating an example of a normal processing flow of the printing apparatus according to the present invention.
FIG. 5 is a block diagram showing an outline of an embodiment of an information processing apparatus according to the present invention.
FIG. 6 is a flowchart showing an example of the flow of transmission processing executed by the information processing apparatus of the present invention.
FIG. 7 is a flowchart showing a second embodiment of the flow of reception interrupt processing of the printing apparatus of the present invention.
FIG. 8 is an explanatory diagram showing state transition in a second embodiment of reception interrupt of the printing apparatus of the present invention.
FIG. 9 is a flowchart showing a third embodiment of the flow of reception interrupt processing of the printing apparatus of the present invention.
FIG. 10 is a flowchart illustrating an example of a normal processing flow of the printing apparatus according to the invention.
FIG. 11 is a flowchart showing an example of a flow of transmission processing executed by the information processing apparatus of the present invention.
[Explanation of symbols]
101 printer
102 interface
103 CPU
104 RAM
105 ROM
107 Printing mechanism
111 Receive buffer
112 Print buffer
113 mode area
114 flag area
120 Host computer
501 CPU
502 ROM
503 Nonvolatile memory device
504 RAM
505 interface

Claims (1)

接続された印刷装置に、リアルタイム処理コマンドと、リアルタイム処理許可コマンドと、リアルタイム処理禁止コマンドと、を含むデータを送信するホストコンピュータによる印刷装置の制御方法において、
前記リアルタイム処理コマンドの一つとして、前記印刷装置の電源をオフするためのリアルタイム電源オフコマンドを含み、
前記リアルタイム処理許可コマンドを送信することによって、前記リアルタイム電源オフコマンドについて、当該コマンドの実行の許可を設定し、
前記リアルタイム処理禁止コマンドを送信することによって、前記リアルタイム電源オフコマンドについて、当該コマンドの実行の禁止を設定するものであって、
前記リアルタイム処理禁止コマンドを送信して、前記リアルタイム電源オフコマンドの実行を常には禁止しておき、
前記リアルタイム電源オフコマンドを用いて前記印刷装置の電源をオフするときには、前記印刷装置の電源をオフする直前に前記リアルタイム処理許可コマンドを送信して、前記リアルタイム電源オフコマンドの実行を許可し、その後、前記リアルタイム電源オフコマンドを送信することを特徴とする印刷装置の制御方法。
In a printing apparatus control method by a host computer that transmits data including a real-time processing command, a real-time processing permission command, and a real-time processing prohibition command to a connected printing apparatus.
As one of the real-time processing commands, including a real-time power off command for turning off the power of the printing apparatus,
By transmitting the real-time processing permission command, for the real-time power-off command, setting permission for the execution of the command,
By sending the real-time processing prohibition command, for the real-time power off command, setting prohibition of execution of the command,
Send the real-time processing prohibit command, always prohibit the execution of the real-time power off command,
When turning off the printing apparatus using the real-time power-off command, the real-time processing permission command is transmitted immediately before turning off the printing apparatus, and the execution of the real-time power-off command is permitted. A method for controlling a printing apparatus, wherein the real-time power-off command is transmitted.
JP10423799A 1999-03-18 1999-04-12 Control method of printing apparatus Expired - Lifetime JP3812216B2 (en)

Priority Applications (16)

Application Number Priority Date Filing Date Title
JP10423799A JP3812216B2 (en) 1999-04-12 1999-04-12 Control method of printing apparatus
EP15163707.1A EP2933717A1 (en) 1999-03-18 2000-03-17 Printer, information processing apparatus, methods of controlling them, and storage medium carrying computer program
EP10185050.1A EP2284688B1 (en) 1999-03-18 2000-03-17 Information processing apparatus for controlling a printer, control method and storage medium carrying computer program
KR1020000013567A KR100772342B1 (en) 1999-03-18 2000-03-17 Printer, information processing apparatus, methods of controlling thereof and storage medium
EP00105762A EP1037138A3 (en) 1999-03-18 2000-03-17 Printer, information processing apparatus, methods of controlling them, and storage medium carrying computer program
CN2007101423018A CN101221486B (en) 1999-03-18 2000-03-18 Method and device of controlling an printing device
CNB001086162A CN100340966C (en) 1999-03-18 2000-03-18 Printing apparatus, information processing device, their control method and information recording medium
US09/528,581 US6906811B1 (en) 1999-03-18 2000-03-20 Printer, information processing apparatus, methods of controlling thereof and storage medium
US11/064,895 US7324222B2 (en) 1999-03-18 2005-02-24 Methods of controlling an information processing device, system embodying such control, and instruction-set-containing medium
KR1020070004346A KR100837584B1 (en) 1999-03-18 2007-01-15 System, method of controlling transmission of bit-map data and method of controlling transmission of real-time command
US11/955,289 US7826075B2 (en) 1999-03-18 2007-12-12 Host device to control transmission of bit-map data to an imaging device
US12/892,507 US7995226B2 (en) 1999-03-18 2010-09-28 Imaging device and method of controlling the same
US13/166,656 US8144357B2 (en) 1999-03-18 2011-06-22 Imaging device and method of controlling the same
US13/402,300 US8345274B2 (en) 1999-03-18 2012-02-22 Imaging device and method of controlling the same
US13/463,337 US8390835B2 (en) 1999-03-18 2012-05-03 Imaging device and method of controlling the same
US13/751,933 US8559046B2 (en) 1999-03-18 2013-01-28 Processing of commands in an imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10423799A JP3812216B2 (en) 1999-04-12 1999-04-12 Control method of printing apparatus

Publications (2)

Publication Number Publication Date
JP2000298563A JP2000298563A (en) 2000-10-24
JP3812216B2 true JP3812216B2 (en) 2006-08-23

Family

ID=14375364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10423799A Expired - Lifetime JP3812216B2 (en) 1999-03-18 1999-04-12 Control method of printing apparatus

Country Status (1)

Country Link
JP (1) JP3812216B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6264978B2 (en) * 2014-03-20 2018-01-24 セイコーエプソン株式会社 Printing control apparatus, printing system, and printing control method
JP6551054B2 (en) 2015-08-26 2019-07-31 セイコーエプソン株式会社 Driver program and control method

Also Published As

Publication number Publication date
JP2000298563A (en) 2000-10-24

Similar Documents

Publication Publication Date Title
KR100837584B1 (en) System, method of controlling transmission of bit-map data and method of controlling transmission of real-time command
JP3812216B2 (en) Control method of printing apparatus
JP4496594B2 (en) Control method of printing apparatus
JP2005153426A (en) Printing controlling apparatus, printing controlling method, and storing medium and program storing computer-readable program
JP3852728B2 (en) Printing apparatus and information processing apparatus
JP2000267830A (en) Printer, information processor, their controlling method and information recording medium
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP2000298566A (en) Printer, information processor, method for controlling these devices, and information recording medium
JP2005349768A (en) Printing device and printing method
JP3284457B2 (en) Printer
JP4635831B2 (en) Printer and printer control method
JP3184544B2 (en) Image processing device
JP4156980B2 (en) Image forming system
JP2002370405A (en) Printer, information processor, their controlling methods and information recording medium
CN101221486B (en) Method and device of controlling an printing device
JP2008134817A (en) Printing system, printing control device and program
JP2001337810A (en) Picture processing device and method thereof and computer readable record medium storing picture processing program
JP2002370404A (en) Printer, information processor, their controlling methods and information recording medium
JP2001344079A (en) Printing control method and printing system
JP2002144643A (en) Data controller, printing data processor, method for controlling data, and method for processing printing data
JP2006164066A (en) Data processing system, data processor, data processing method and control program
JP2002287925A (en) Print command generation program, and print system
JP2000296656A (en) Printer, information processor, control method therefor and information recording medium
JPH04330515A (en) Printer controller

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060331

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060522

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120609

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130609

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130609

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term