JPH09269876A - Host-based printer system and data transmission / reception method therefor - Google Patents
Host-based printer system and data transmission / reception method thereforInfo
- Publication number
- JPH09269876A JPH09269876A JP8078929A JP7892996A JPH09269876A JP H09269876 A JPH09269876 A JP H09269876A JP 8078929 A JP8078929 A JP 8078929A JP 7892996 A JP7892996 A JP 7892996A JP H09269876 A JPH09269876 A JP H09269876A
- Authority
- JP
- Japan
- Prior art keywords
- data
- image data
- host
- reception
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000005540 biological transmission Effects 0.000 title claims description 26
- 238000013500 data storage Methods 0.000 claims description 4
- 239000013256 coordination polymer Substances 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 12
- 238000007726 management method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- YIXCPMSISWSKKS-FGCOXFRFSA-N ram-333 Chemical compound C1([C@]23CCN(C)[C@@H]([C@@]2(CCCC3)O)CC1=CC=C1OC)=C1OC1=CC=CC=C1 YIXCPMSISWSKKS-FGCOXFRFSA-N 0.000 description 3
- 230000000630 rising effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006854 communication Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
(57)【要約】
【課題】 より高速で印刷を行うことができるECPモ
ードにおいてホストベースプリンタシステムを実現す
る。
【解決手段】 ライトポインタWP=0,リードポイン
タRP=0,リミットポインタLP=1に初期化し、書
込用DMAコントローラ34をRAM33へ1バイトだけデ
ータを書き込むことができるようにする(S10 )。1バ
イト分のデータを書き込むとWP=LPとなって割り込
みが発生し、WP−1のデータを読み出し、WP←WP
−1とし、コマンド解釈を実行する(S20〜S50)。デー
タ数設定コマンドが受信されたら、LP←(WP+デー
タ数)とし、割り込み信号が入ったらLP←WP+1と
してS20へ戻る(S100〜S130)。以上の処理により、
ECPモードで送信されてきたデータの中のコマンドデ
ータは上書きによってRAM33から実質的に削除され、
画像データだけが書き込まれた状態となる。
(57) Abstract: A host-based printer system is realized in an ECP mode capable of printing at higher speed. SOLUTION: The write pointer WP = 0, the read pointer RP = 0, and the limit pointer LP = 1 are initialized so that the write DMA controller 34 can write only 1 byte of data to the RAM 33 (S10). When 1 byte of data is written, WP = LP and an interrupt occurs, the data of WP-1 is read, and WP ← WP
-1, and command interpretation is executed (S20 to S50). When the data number setting command is received, LP ← (WP + data number) is set, and when an interrupt signal is input, LP ← WP + 1 is set and the process returns to S20 (S100 to S130). By the above processing,
The command data in the data transmitted in the ECP mode is substantially deleted from the RAM 33 by overwriting,
Only the image data is written.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ホスト側で予め画
像データを形成し、該画像データ及びコマンドデータを
プリンタに出力して印刷を行う様にしたホストベースプ
リンタシステムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a host-based printer system in which image data is formed in advance on the host side and the image data and command data are output to a printer for printing.
【0002】[0002]
【従来の技術】従来、パーソナルコンピュータ(パソコ
ン)で作成した文書をプリンタで印刷する場合、ページ
・ディスクリプション・ランゲージ(PDL)で表現さ
れた印刷データをパソコンから出力してプリンタ側のC
PUでこれを画像データ(ビットマップデータあるいは
その圧縮データ等)に展開し、印刷を行う様に構成され
たシステム(以下、「PDLシステム」という。)が知
られている。2. Description of the Related Art Conventionally, when a document created by a personal computer (personal computer) is printed by a printer, print data represented by a page description language (PDL) is output from the personal computer and the printer side C is used.
There is known a system (hereinafter, referred to as a "PDL system") configured to expand the image data (bitmap data or compressed data thereof) by a PU and perform printing.
【0003】しかし、近年では、パソコンの高機能化が
進につれ、グラフィックアクセラレータを搭載したパソ
コンが増えている。このため、このグラフィックアクセ
ラレータを用いることにより、パソコン側でビットマッ
プデータを高速に作成し、これを圧縮してプリンタに高
速転送することにより、高速かつ低価格のプリンタが実
現されている。このような印刷システムはホストベース
プリンタシステムと呼ばれている。However, in recent years, the number of personal computers equipped with graphic accelerators has increased as the functionality of personal computers has increased. Therefore, by using this graphic accelerator, bitmap data is created at high speed on the personal computer side, and this is compressed and transferred to the printer at high speed, thereby realizing a high-speed and low-cost printer. Such a printing system is called a host-based printer system.
【0004】このホストベースプリンタシステムでは、
プリンタ側にDMA(ダイレクトメモリアクセス)コン
トローラを採用して受信データを高速に受信バッファへ
書き込むようにすることでさらに高速化が図られてい
る。ところで、印刷システムにおけるデータの送受信に
は、一般にセントロニクスインタフェースが採用され、
セントロニクス規格に従ったシェークハンド方式でデー
タの転送が行われている。In this host-based printer system,
Further speeding up is achieved by adopting a DMA (Direct Memory Access) controller on the printer side and writing the received data into the receiving buffer at high speed. By the way, a Centronics interface is generally adopted for data transmission / reception in a printing system.
Data is being transferred by the shake hand method according to the Centronics standard.
【0005】このセントロニクスのシェークハンド方式
では、まず、パソコンがデータを出力するとき、1バイ
ト分のデータをセットすると共にストローブ信号を所定
時間だけLowにしてプリンタのCPUにデータがセッ
トされていることを知らせる。このストローブ信号の立
ち下がりとシェークハンドしてプリンタ側がビジー信号
をHighとし、データ線からデータを読み込む。そし
て、データの読み込みが終ったらビジー信号をLowに
落とす。パソコン側は、このビジー信号の立ち下がりと
シェークハンドして次のデータセット及びストローブ信
号の変化を実行する。この様に、立ち下がり信号にだけ
シェークハンドする方式であるため、ストローブ信号を
Lowにしておく時間は安全を見越して長めにとってお
く必要があり、データ転送速度は、100Kbyte/
sec程度にしかなっていない。In the shake hand system of Centronics, first, when the personal computer outputs data, one byte of data is set and the strobe signal is set to Low for a predetermined time so that the data is set in the printer CPU. Let me know. The falling edge of the strobe signal and the shake hand are performed to set the busy signal to High on the printer side to read the data from the data line. Then, when the data reading is completed, the busy signal is dropped to Low. The personal computer side performs the falling of the busy signal and the shake hand to execute the next data set and strobe signal change. As described above, since the shake hand is used only for the falling signal, it is necessary to keep the time for keeping the strobe signal Low for safety, and the data transfer rate is 100 Kbyte /
It is only about sec.
【0006】これに対し、セントロニクスインタフェー
スによるデータの双方向通信を可能にするために新たな
規格としてIEEE1284が定められた。このIEE
E1284規格におけるデータ転送方式には、セントロ
ニクス方式と同じく立ち下がり信号にだけシェークハン
ドするコンパチブルモードと、立ち下がり信号と立ち上
がり信号にシェークハンドするECPモードあるいはE
PPモードが定められている。On the other hand, IEEE 1284 has been defined as a new standard for enabling bidirectional communication of data by the Centronics interface. This IEEE
As the data transfer method in the E1284 standard, the compatible mode in which only the falling signal is shake handed, the ECP mode in which the falling signal and the rising signal are shake handed or E
The PP mode is defined.
【0007】ECPモードについて説明すると、まず、
パソコンがデータを出力するとき、1バイト分のデータ
をセットしてストローブ信号をLowにする。プリンタ
側ではこのストローブ信号の立ち下がりを検知してデー
タを読み込み、データを読み込み終えたらペリフェラル
アック信号をHighとする。パソコンは、このペリフ
ェラルアック信号の立ち上がりとシェークハンドしてス
トローブ信号をHighに戻し、プリンタ側はこのスト
ローブ信号の立ち上がりとシェークハンドしてペリフェ
ラルアック信号をLowに戻す。すると、このペリフェ
ラルアック信号の立ち下がりにシェークハンドして次の
データセット及びストローブ信号の反転が実行される。
この様に、ECPモードでは、信号の立ち下がりだけで
なく立ち上がりともシェークハンドしているため、セン
トロニクス方式の様にストローブ信号を長めにする必要
がなく、データ転送速度は驚異的に速くなり、2Mby
te/sec程度を実現可能となる。なお、EPPモー
ドでは、信号線の用い方がECPモードと異なるが内容
的には同様のシェークハンド方式となっている。Explaining the ECP mode, first,
When a personal computer outputs data, it sets 1 byte of data and sets the strobe signal to Low. On the printer side, the falling edge of the strobe signal is detected to read the data, and when the data reading is completed, the peripheral ACK signal is set to High. The personal computer shakes and hands the rising edge of the peripheral ACK signal to return the strobe signal to high, and the printer side performs the shaking and handing of the strobe signal to return the peripheral ACK signal to the low level. Then, the falling edge of the peripheral ACK signal is shake-handed and the next data set and the strobe signal are inverted.
In this way, in ECP mode, since the shake hand is performed not only at the falling edge but also at the rising edge, it is not necessary to lengthen the strobe signal as in the Centronics method, and the data transfer rate becomes astonishingly high, which is 2 Mby.
It becomes possible to achieve about te / sec. In the EPP mode, the way of using the signal line is different from the ECP mode, but the content is the same shake hand system.
【0008】このため、最近では、印刷システムにおい
てこのECPモードを利用することが検討されており、
PDLシステムでは問題なく適用できることが分かって
いる。For this reason, recently, the use of this ECP mode in a printing system has been studied,
It has been found that the PDL system can be applied without problems.
【0009】[0009]
【発明が解決しようとする課題】ところが、ホストベー
スプリンタシステムではコマンドデータと画像データと
いう性格の異なるデータが送られて来るため、DMAコ
ントローラを用いて高速に受信バッファへ書き込むだけ
では1頁分の画像データの間にコマンドデータが入って
しまう場合がある。これは、画像データがPDLによる
データに比べてデータ量の大きいものとなるため、1頁
分の画像データをいくつかに分けて出力するようにしな
いとパソコン側のメモリを圧迫する等の問題があるから
である。また、1頁分の画像データが少ない場合、複数
頁分のデータを一度に出力することもできるが、この際
には頁と頁の間にコマンドデータが入ってしまう。However, in the host-based printer system, command data and image data having different characteristics are sent. Therefore, only writing one page at a high speed using the DMA controller makes it possible to write one page worth of data. Command data may be inserted between image data. This is because the image data has a larger amount of data than the data by PDL, and if the image data for one page is not divided into several pieces and output, there is a problem such as pressure on the memory on the personal computer side. Because there is. Further, when the image data for one page is small, the data for a plurality of pages can be output at one time, but in this case, the command data is inserted between the pages.
【0010】そして、ホストベースプリンタシステムで
は、CPUを介さずに読み出し用のDMAを用いて受信
バッファから順番にデータを読み出して必要に応じて伸
張した後にプリンタエンジン部へ出力する構成となるた
め、画像データの間にコマンドデータが挟まれている
と、CPUがコマンドデータを解釈できず正常な印刷が
できなくなってしまうおそれがある。In the host-based printer system, the data is sequentially read from the reception buffer by using the read DMA without using the CPU, and the data is decompressed as necessary and then output to the printer engine unit. If command data is sandwiched between image data, the CPU may not be able to interpret the command data, and normal printing may not be possible.
【0011】そこで、本発明は、より高速で印刷を行う
ことができるECPモードにおいてホストベースプリン
タシステムを実現することを目的とする。Therefore, it is an object of the present invention to realize a host-based printer system in the ECP mode capable of printing at higher speed.
【0012】[0012]
【課題を解決するための手段、発明の実施の形態及び発
明の効果】上記目的を達成するためになされた本発明の
ホストベースプリンタシステムは、ホスト側で予め印刷
用の画像データを形成し、該画像データ及び印刷用のコ
マンドデータをプリンタに出力して印刷を行う様にした
ホストベースプリンタシステムにおいて、少なくとも前
記画像データの送受信を、IEEE1284規格のEC
Pモード又はEPPモードにおけるシェイクハンド方式
で実施するデータ送受信手段を備え、プリンタ側に、前
記画像データを受信して受信バッファへ書き込む書込用
DMAコントローラと、印刷実行のために前記受信バッ
ファから画像データを読み出す読出用DMAコントロー
ラとを備え、前記受信バッファへは、1頁分の画像デー
タの間にコマンドデータを介在させないようにデータを
蓄積させる画像データ蓄積手段を備えることを特徴とす
る。具体的には、前記画像データ蓄積手段は、前記コマ
ンドデータと画像データとを区別し、画像データと画像
データの間にあるコマンドデータを受信バッファ内に残
さない様に受信バッファへデータを蓄積させる手段とし
て構成するとよい。Means for Solving the Problems, Embodiments of the Invention, and Effects of the Invention The host-based printer system of the present invention made to achieve the above-mentioned object forms image data for printing in advance on the host side, In a host-based printer system that outputs the image data and command data for printing to a printer for printing, at least the transmission and reception of the image data is performed according to the EC of the IEEE1284 standard.
A data transmission / reception means for performing a shake hand method in the P mode or the EPP mode is provided, and a write DMA controller for receiving the image data and writing the same in a reception buffer on the printer side, and an image from the reception buffer for executing printing. A read DMA controller for reading data is provided, and the reception buffer is provided with image data storage means for storing data so that command data is not interposed between image data for one page. Specifically, the image data accumulating unit distinguishes the command data from the image data, and accumulates the data in the reception buffer so as not to leave the command data between the image data and the image data in the reception buffer. It may be configured as a means.
【0013】この本発明のホストベースプリンタシステ
ムによれば、画像データは必ずECPモード又はEPP
モードにおけるシェイクハンド方式で送信されるので、
プリンタへと高速に出力される。こうして高速に転送さ
れる画像データは、書込用DMAコントローラを用いて
受信バッファに高速に書き込むことができる。従って、
データ転送によりシステムの印刷速度が律速されること
がない。そして、本発明では、画像データ蓄積手段が、
1頁分の画像データの間にコマンドデータを介在させな
いようにデータを蓄積させるので、読出用DMAコント
ローラで次々とデータを読み出すだけでよく、ここでも
律速されない。そして、画像データ蓄積手段は、コマン
ドデータと画像データとを区別し、画像データと画像デ
ータの間にあるコマンドデータを受信バッファ内に残さ
ない様に受信バッファへデータを蓄積させるので、1頁
分の画像データの間にコマンドデータが挟まれて残って
しまうということがなく、印刷不能に陥ることがない。According to the host-based printer system of the present invention, the image data is always in ECP mode or EPP.
Since it is transmitted by the shake hand method in the mode,
High-speed output to the printer. The image data thus transferred at high speed can be written at high speed in the reception buffer by using the write DMA controller. Therefore,
The data transfer does not limit the printing speed of the system. In the present invention, the image data storage means is
Since the data is stored so that the command data is not interposed between the image data for one page, the read DMA controller only needs to read the data one after another, and the rate is not limited here. Then, the image data accumulating unit distinguishes the command data from the image data, and accumulates the data in the reception buffer so as not to leave the command data between the image data and the image data in the reception buffer. The command data will not be sandwiched between the image data of (1) and (2) and will not be left unprintable.
【0014】このようなホストベースプリンタシステム
のさらに具体的な構成としては、前記データ送受信手段
を、印刷用のコマンドデータ及び画像データの送受信を
IEEE1284規格のECPモード又はEPPモード
のシェークハンド方式で行う手段として構成すると共
に、前記プリンタ側に、前記書込用DMAコントローラ
の受信状態を、1バイト分のデータを受信したら一旦停
止する1バイト受信状態と連続的にデータを受信する連
続受信状態とで切り換える受信状態切換手段と、前記1
バイト受信状態にあるときに前記書込用DMAコントロ
ーラが受信バッファに書き込んだデータを読み出して解
釈し、該解釈結果に基づいて、前記受信状態切換手段に
よる受信状態の切換条件を設定する切換条件設定手段
と、連続受信状態で受信バッファ内にデータを書き込み
始めるとき、1バイト受信状態で書き込まれたデータの
上に上書きしていく上書き手段とを備えさせることで前
記画像データ書込手段を構成することができる。As a more specific configuration of such a host-based printer system, the data transmission / reception means performs transmission / reception of command data and image data for printing by a shake hand system of ECP mode or EPP mode of the IEEE1284 standard. The writing side of the write DMA controller may be configured to be temporarily stopped when one byte of data is received and to be continuously received by the printer. A reception state switching means for switching, and the above 1
In the byte receiving state, the write DMA controller reads and interprets the data written in the receiving buffer, and based on the interpretation result, sets the switching condition of the receiving state by the receiving state switching means. The image data writing unit is configured by including a unit and an overwriting unit that overwrites the data written in the 1-byte receiving state when writing data in the receiving buffer in the continuous receiving state. be able to.
【0015】このシステムでは、コマンドデータも画像
データもECPモード又はEPPモードで送受信され
る。そして、コマンドデータも画像データも書込用DM
Aが受信バッファに書き込んでいくが、上書き手段によ
ってコマンドデータには画像データが上書きされる。こ
のため、1頁分の画像データが複数に分けて出力された
ような場合にも、画像データと画像データの間に挟まれ
て送信されて来るコマンドデータが邪魔することがな
い。また、1バイト受信状態と連続受信状態とを切り換
えることで、ECPモード又はEPPモードの本来のメ
リットであるデータの高速転送を敢えて制限し、ホスト
ベースプリンタ特有のデータ構成に対応している。具体
的には、1バイト受信状態でコマンドデータを解釈し、
このコマンドデータによって画像データのバイト数を把
握して連続受信状態をどこまで続けるかを決めていくの
である。In this system, both command data and image data are transmitted and received in ECP mode or EPP mode. And DM for writing both command data and image data
A writes in the reception buffer, but the image data is overwritten on the command data by the overwriting means. Therefore, even when the image data for one page is divided into a plurality of pieces and output, the command data that is sandwiched between the image data and transmitted does not interfere. Further, by switching between the 1-byte receiving state and the continuous receiving state, the high-speed transfer of data, which is the original merit of the ECP mode or the EPP mode, is intentionally limited, and a data structure peculiar to the host-based printer is supported. Specifically, interpret the command data in the 1-byte reception state,
The command data is used to grasp the number of bytes of the image data and determine how long the continuous reception state should be continued.
【0016】ここで、さらに具体的には、前記受信状態
切換手段を、前記書込用DMAコントローラによるライ
トポインタの停止条件を与えるリミットポインタにより
構成し、前記切換条件設定手段を、前記リミットポイン
タに現在のライトポインタの次のポインタを設定するこ
とで1バイト受信状態を設定し、該リミットポインタに
コマンド解釈の結果判明した画像データのバイト数だけ
先のポインタを設定することで連続受信状態を設定する
手段として構成し、前記上書き手段を、ライトポインタ
を戻すことによって前記上書きを行わせる手段として構
成することができる。More specifically, the receiving state switching means is constituted by a limit pointer for giving a write pointer stop condition by the write DMA controller, and the switching condition setting means is changed to the limit pointer. The 1-byte reception state is set by setting the pointer next to the current write pointer, and the continuous reception state is set by setting the previous pointer by the number of bytes of the image data found as a result of command interpretation in the limit pointer. The overwrite means can be configured as a means for performing the overwrite by returning a write pointer.
【0017】あるいは、前記受信状態切換手段を、前記
書込用DMAコントローラによるライトポインタの移動
量を与えるカウンタにより構成し、前記切換条件設定手
段を、前記カウンタにバイト数1を設定することで1バ
イト受信状態を設定し、該カウンタにコマンド解釈の結
果判明した画像データのバイト数を設定することで連続
受信状態を設定する手段として構成し、前記上書き手段
を、ライトポインタを戻すことによって前記上書きを行
わせる手段として構成することができる。Alternatively, the reception state switching means is constituted by a counter for giving the amount of movement of the write pointer by the write DMA controller, and the switching condition setting means sets the number of bytes to 1 in the counter. It is configured as a means for setting a continuous reception status by setting a byte reception status and setting the number of bytes of image data found as a result of command interpretation in the counter, and the overwrite means is configured to perform the overwrite by returning a write pointer. It can be configured as a means for performing.
【0018】これらのシステムでは、リミットポインタ
あるいはカウンタによって1バイト受信状態を実現する
と共に、これらを用いて連続受信状態から1バイト受信
状態へと再び復帰できるようにする。そして、上書き手
段はライトポインタを戻してコマンドデータが残らない
ようにそこに画像データを上書きする。In these systems, the limit pointer or counter realizes the 1-byte reception state, and these are used so that the continuous reception state can be restored to the 1-byte reception state again. Then, the overwriting means returns the write pointer and overwrites the image data there so that no command data remains.
【0019】なお、これらのホストベースプリンタシス
テムにおいて、前記ライトポインタは、1バイト受信状
態において、前記切換条件設定手段がデータを読み出し
た後で直前の状態に戻されるようにしておくとよい。こ
うすることで、先頭のコマンドデータも受信バッファ中
に残ることがなくなる。In these host-based printer systems, it is preferable that the write pointer is returned to the immediately preceding state after the switching condition setting means has read the data in the 1-byte reception state. By doing this, the first command data will not remain in the reception buffer.
【0020】また、他の具体的構成のホストベースプリ
ンタシステムとしては、前記データ送受信手段を、印刷
用のコマンドデータ及び画像データの送受信をIEEE
1284規格のECPモード又はEPPモードのシェー
クハンド方式で行う手段として構成すると共に、前記ホ
スト側に、前記コマンドデータを出力しているときと画
像データを出力しているときとを識別するための識別信
号出力手段を設け、前記プリンタ側に、前記識別信号が
コマンドデータの出力を意味している間は、書込用DM
Aコントローラを停止状態として自身でコマンドデータ
を受信して解釈し、前記識別信号が画像データの出力を
意味している間は前記書込用DMAコントローラに画像
データを受信させる中央処理装置を設けることで、前記
画像データ書込手段を構成することができる。As a host-based printer system having another specific structure, the data transmission / reception means uses the IEEE for transmitting / receiving the command data and image data for printing.
An identification for configuring when performing the shake hand method of the ECP mode or the EPP mode of the 1284 standard, and for distinguishing between the time when the command data is output and the time when the image data is output to the host side. A signal output unit is provided, and a DM for writing is provided on the printer side while the identification signal means output of command data.
A central processing unit is provided which, while the A controller is in a stopped state, receives and interprets command data by itself and causes the write DMA controller to receive image data while the identification signal means output of image data. Thus, the image data writing means can be configured.
【0021】このシステムでは、ホスト側のある信号に
よって、ECPモード又はEPPモードで送信されて来
たデータがコマンドデータであるか画像データであるか
を識別している。そして、コマンドデータは中央処理装
置自身が直接受信するから受信バッファにはそもそも書
き込まれることがなく、画像データのみが書込用DMA
コントローラによって高速で書き込まれていくことにな
る。In this system, a certain signal on the host side discriminates whether the data transmitted in the ECP mode or the EPP mode is command data or image data. Since the command data is directly received by the central processing unit itself, it is never written in the reception buffer in the first place, and only the image data is written in the write DMA.
It will be written at high speed by the controller.
【0022】また、他の具体的構成としては、前記デー
タ送受信手段を、画像データの送受信をIEEE128
4規格のECPモード又はEPPモードのシェークハン
ド方式で行い、コマンドデータの送受信をIEEE12
84規格のコンパチブルモードのシェークハンド方式で
行う手段として構成すると共に、前記プリンタ側に、前
記コンパチブルモード下で送信されて来るコマンドデー
タは直接受信して解釈し、前記ECPモード又はEPP
モードにおけるセットアップフェーズが完了した後ター
ミネーションフェーズが開始されるまでの間に送信され
てくるデータの受信は前記書込用DMAコントローラに
行わせる中央処理装置を設けることで、前記画像データ
書込手段を構成することとしてもよい。As another specific configuration, the data transmission / reception means uses the IEEE128 for image data transmission / reception.
4 standard ECP mode or EPP mode shake hand method is used, and command data is transmitted and received by IEEE12.
It is configured as means for performing the 84 standard compatible mode shake hand method, and the command data transmitted under the compatible mode is directly received and interpreted by the printer side, and the command data is transmitted in the ECP mode or the EPP mode.
By providing a central processing unit that causes the writing DMA controller to receive the data transmitted until the termination phase is started after the completion of the setup phase in the mode, the image data writing means is provided. It may be configured.
【0023】この場合、コンパチブルモード下では中央
処理装置がデータを受信してコマンドデータは受信バッ
ファへ書き込まないようにし、ECPモード又はEPP
モードにおいて書込用DMAコントローラが画像データ
だけ受信して受信バッファに書き込む。従って、1頁分
の画像データが間にコマンドデータを挟む様なデータと
してホストから出力されてきても、受信バッファには画
像データだけしか蓄積されないので、印刷不能になるこ
とがない。In this case, in the compatible mode, the central processing unit receives the data and does not write the command data in the reception buffer.
In the mode, the writing DMA controller receives only the image data and writes it in the reception buffer. Therefore, even if one page of image data is output from the host as data in which command data is sandwiched between them, only image data is stored in the reception buffer, and printing cannot be disabled.
【0024】これら本発明のホストベースプリンタシス
テムにおけるホストとプリンタの間でデータを取り扱う
方法としては、印刷用のコマンドデータ及び画像デー
タをIEEE1284規格のECPモード又はEPPモ
ードのシェークハンド方式で送受信するデータ送受信方
法、印刷用のコマンドデータ及び画像データをIEE
E1284規格のECPモード又はEPPモードのシェ
ークハンド方式で送受信すると共に、前記コマンドデー
タを出力しているときと画像データを出力しているとき
で反転する反転信号をホスト側から併せて出力するデー
タ送受信方法、または、画像データの送受信をIEE
E1284規格のECPモード又はEPPモードのシェ
ークハンド方式で行い、コマンドデータの送受信をIE
EE1284規格のコンパチブルモードのシェークハン
ド方式で行うデータ送受信方法のいずれかを採用すれば
よい。As a method of handling data between the host and the printer in the host-based printer system of the present invention, data for transmitting / receiving command data and image data for printing by the shake hand method of the ECP mode or the EPP mode of the IEEE1284 standard is used. The sending and receiving method, the command data for printing and the image data are IEEE
Data transmission / reception in which transmission / reception is performed by the E1284 standard ECP mode or EPP mode shake hand method, and an inversion signal that is inverted when the command data is being output and image data is being output is also output from the host side. Method or image data transmission / reception by IEEE
The E1284 standard ECP mode or EPP mode shake hand method is used to send and receive command data.
Any of the data transmission / reception methods performed by the shake hand method of the compatible mode of the EE1284 standard may be adopted.
【0025】[0025]
【実施例】以下、本発明の実施の形態を一層分かりやす
くするため、いくつかの実施例を図面と共に説明する。
なお、以下に説明する実施例は、いずれもIEEE12
84規格による双方向通信を実行するように構成されて
いる。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Some embodiments will be described below with reference to the drawings in order to make the embodiments of the present invention easier to understand.
It should be noted that all of the examples described below are IEEE12.
It is configured to perform two-way communication according to the 84 standard.
【0026】図1に示す様に、第1実施例のプリンタシ
ステム1は、印刷ホスト2と、レーザプリンタ3とで構
成されている。印刷ホスト2とレーザプリンタ3とはパ
ラレルデータ送受信用のセントロニクスケーブル4を介
して電気的に接続されている。ホスト2は、ビットマッ
プ化された画像データとコマンドデータとを出力して、
いわゆるホストベースプリンタとして機能し得るように
構成されている。プリンタ3は、レーザ光方式で印刷す
る印刷機構や用紙送り機構等のエンジン機構とコントロ
ールユニットとを含むもので、エンジン機構自体は既存
のレーザプリンタと同様であるので、その詳しい説明は
省略する。As shown in FIG. 1, the printer system 1 of the first embodiment comprises a print host 2 and a laser printer 3. The print host 2 and the laser printer 3 are electrically connected via a Centronics cable 4 for transmitting / receiving parallel data. The host 2 outputs bitmapped image data and command data,
It is configured so that it can function as a so-called host-based printer. The printer 3 includes an engine mechanism such as a printing mechanism for printing with a laser beam system and a paper feeding mechanism, and a control unit. Since the engine mechanism itself is the same as an existing laser printer, its detailed description is omitted.
【0027】この実施例では、ホスト2は、プリンタ3
に対して、図2(a)に示す様な構造の印刷データを出
力するようになっている。即ち、印刷データは、先頭の
5バイト分にデータ長などを与えるコマンドを配置し、
その後に圧縮された画像データを配置し、以下、コマン
ド、画像データ、コマンド、画像データ、…という順番
で1頁分のデータを配置し、最後に印刷実行を指令する
2バイトのフォームフィードコマンドを配置してなる。
そして、このコマンド及画像びデータは、いずれも、I
EEE1284規格のECPモードで送信されるように
なっている。具体的には、図2(b)に示す様に、EC
Pモードのフォワードフェーズ内でコマンドデータ及び
画像データが共に送信されるようになっている。In this embodiment, the host 2 is the printer 3
In contrast, print data having a structure as shown in FIG. 2A is output. That is, in the print data, a command for giving the data length etc. is arranged in the first 5 bytes,
After that, the compressed image data is arranged, and then one page of data is arranged in the order of command, image data, command, image data, and so on. Finally, a 2-byte form feed command for instructing print execution is arranged. It will be arranged.
The command and image data are both I
It is adapted to be transmitted in the ECP mode of the EEE1284 standard. Specifically, as shown in FIG. 2B, EC
Both the command data and the image data are transmitted within the forward phase of the P mode.
【0028】コントロールユニット30は、図3に示す
様に、制御の中枢となるCPU31と、制御プログラム
を格納したROM32と、リングバッファとして機能す
るRAM33と、RAM33に対して直接アクセスする
ことのできる書込用DMAコントローラ34と、読出用
DMAコントローラ35とを備えている。As shown in FIG. 3, the control unit 30 has a CPU 31 serving as the center of control, a ROM 32 storing a control program, a RAM 33 functioning as a ring buffer, and a write capable of directly accessing the RAM 33. The read DMA controller 34 and the read DMA controller 35 are provided.
【0029】書込用DMAコントローラ34は、セント
ロニクスインタフェースの受信部36と接続されてお
り、ホスト2から受信したデータをRAM33へそのま
ま書き込む様になっている。書込用DMAコントローラ
34は、コマンドデータと画像データとを区別せず、受
信部36で受信したデータを、RAM33内の、ライト
ポインタ管理部37によって指示されるライトポインタ
WPのアドレスに書き込んでいく。そして、書込用DM
Aコントローラ34は、1バイト分のデータを書き込む
毎に、ライトポインタ管理部37にインクリメント信号
を出力する。The write DMA controller 34 is connected to the reception unit 36 of the Centronics interface and writes the data received from the host 2 into the RAM 33 as it is. The write DMA controller 34 does not distinguish between command data and image data, and writes the data received by the receiving unit 36 into the address of the write pointer WP in the RAM 33, which is designated by the write pointer management unit 37. . And DM for writing
The A controller 34 outputs an increment signal to the write pointer management unit 37 each time one byte of data is written.
【0030】読出用DMAコントローラ35は、リード
ポインタ管理部38により指定されるリードポインタR
Pのアドレスに書かれているデータを1バイトずつ読み
出し、リードポインタ管理部38へイクリメント信号を
出力する。読み出したデータは、下流側に配置されるデ
コーダ39で伸張してからラインシフトバッファ40へ
移し変えられ、レーザダイオード等を備えたエンジン部
41へ出力される。The read DMA controller 35 has a read pointer R designated by the read pointer management unit 38.
The data written in the address P is read byte by byte, and the increment signal is output to the read pointer management unit 38. The read data is decompressed by the decoder 39 arranged on the downstream side, transferred to the line shift buffer 40, and output to the engine unit 41 equipped with a laser diode and the like.
【0031】ライトポインタWPとリードポインタRP
は、第1のコンパレータ42へ入力される。この第1の
コンパレータ42は、WP=RPのときにHighレベ
ル信号を出力するように構成されている。ライトポイン
タWPは、さらに、この実施例の特徴であるリミットポ
インタ管理部43によって指定されるリミットポインタ
LPと共に、第2のコンパレータ44へ入力され、比較
される。この第2のコンパレータ44は、WP=LPの
ときにHighレベル信号を出力するように構成されて
いる。なお、リミットポインタ管理部43は、CPU3
1によってLPの値を設定される様になっている。ま
た、第2のコンパレータ44は、読出用DMAコントロ
ーラ35に対しても出力を行っており、WP=RPとな
ったときに読出用DMAコントローラ35を停止させる
役割を果たしている。一方、読出用DMAコントローラ
35の起動は、CPU31によってなされるようになっ
ている。Write pointer WP and read pointer RP
Is input to the first comparator 42. The first comparator 42 is configured to output a high level signal when WP = RP. The write pointer WP is further input to the second comparator 44 and compared with the limit pointer LP designated by the limit pointer management unit 43, which is a feature of this embodiment. The second comparator 44 is configured to output a high level signal when WP = LP. Note that the limit pointer management unit 43 uses the CPU 3
The value of LP is set by 1. The second comparator 44 also outputs to the read DMA controller 35, and plays a role of stopping the read DMA controller 35 when WP = RP. On the other hand, the reading DMA controller 35 is activated by the CPU 31.
【0032】そして、第1,第2のコンパレータ42,
44の出力はオア回路45に入力されている。このオア
回路45の出力は、nPheriphAck信号(ペリ
フェラルアック信号、以下、単に「Ack」という)を
発生するAck発生部46及び受信部36へ入力されて
いる。Ack発生部46は、受信部36又はオア回路4
5からのいずれかからHighレベル信号が出力される
とホスト2に対してAcKを発生し、ホスト2側のデー
タの出力状態をコントロールする役割を果たしている。Then, the first and second comparators 42,
The output of 44 is input to the OR circuit 45. The output of the OR circuit 45 is input to an Ack generating unit 46 and a receiving unit 36 that generate an nPheriphAck signal (peripheral ACK signal, hereinafter simply referred to as “Ack”). The Ack generating unit 46 is the receiving unit 36 or the OR circuit 4.
When a High level signal is output from any one of 5 to 5, AcK is generated for the host 2 and plays a role of controlling the output state of data on the host 2 side.
【0033】また、第1,第2のコンパレータ42,4
4の出力は、オア回路45とは別に、インバータ47へ
も入力されており、その反転信号がCPU31の割込端
子に入力されるようになっている。CPU31は、割込
信号がLowレベルになったとき、割り込み処理を実行
する様に構成されている。Further, the first and second comparators 42, 4
The output of 4 is also input to the inverter 47 in addition to the OR circuit 45, and its inverted signal is input to the interrupt terminal of the CPU 31. The CPU 31 is configured to execute an interrupt process when the interrupt signal goes low.
【0034】なお、CPU31は、RAM33からコマ
ンドデータを読み出して処理するように構成されてい
る。また、CPU31,ROM32及びRAM33以外
の構成要素は、すべて単一のASICとして構成してお
く。次に、実施例のCPU31による処理内容を説明す
る。The CPU 31 is configured to read command data from the RAM 33 and process it. In addition, all components other than the CPU 31, the ROM 32, and the RAM 33 are configured as a single ASIC. Next, the processing contents of the CPU 31 of the embodiment will be described.
【0035】CPU31は、図4に示す様に、まず最初
にライトポインタWP,リードポインタRP,リミット
ポインタLPを、それぞれWP=0,RP=0,LP=
1に初期化する(S10)。これにより、書込用DMA
コントローラ34は、RAM33へ1バイトだけデータ
を書き込むことができるようになる。RAM33に1バ
イト分のデータを書き込むと、WP=LPとなって割り
込みが発生する。この割り込みの発生を受けて、CPU
31は、WP−1のアドレスに書き込まれているデータ
を読み出し(S20,S30)、WP←WP−1とライ
トポインタをデクリメントし(S40)、先ほど読み出
したデータのコマンド解釈を実行する(S50)。As shown in FIG. 4, the CPU 31 first sets the write pointer WP, the read pointer RP, and the limit pointer LP to WP = 0, RP = 0, LP =, respectively.
It is initialized to 1 (S10). This allows the write DMA
The controller 34 can write only one byte of data to the RAM 33. When 1 byte of data is written in the RAM 33, WP = LP and an interrupt occurs. Upon receipt of this interrupt, the CPU
31 reads the data written in the address of WP-1 (S20, S30), decrements WP ← WP-1 and the write pointer (S40), and executes command interpretation of the data read previously (S50). .
【0036】このコマンド解釈の結果、フォームフィー
ド「As a result of this command interpretation, the form feed "
【0037】F」が指示された場合は(S60=YE
S)、エンジン部41を起動し(S70)、エンジン部
41のセンサによって用紙位置が確認されてから、読出
用DMAコントローラ35へ起動指令を出力する(S8
0,S90)。When "F" is designated (S60 = YE
S), the engine unit 41 is started (S70), and after the sheet position is confirmed by the sensor of the engine unit 41, a start command is output to the reading DMA controller 35 (S8).
0, S90).
【0038】一方、フォームフィードが指示されていな
い場合には(S60=NO)、S50で解釈された結
果、データ数設定コマンド「On the other hand, when the form feed is not instructed (S60 = NO), the data number setting command "
【0039】G***(***は、3バイトで示される
データ数)」が受信されたのか否かを判定する(S10
0)。データ数設定コマンド「It is determined whether "G *** (*** is the number of data indicated by 3 bytes)" has been received (S10).
0). Data number setting command
【0040】G***」でなければ(S100=N
O)、再びS20以下の処理を実行する。データ数設定
コマンド「If not G *** "(S100 = N
O), and the processing of S20 and thereafter is executed again. Data number setting command
【0041】G***」であった場合は(S100=Y
ES)、リミットポインタLPに現在のライトポインタ
WPの値にデータのバイト数を加えた値をセットし(S
110)、以下、割り込み信号が入るまで待機する(S
120)。そして、割り込み信号が入ったら、リミット
ポインタLPをそのときのライトポインタWPに1を加
えた値にセットしてS20へ戻る(S130)。G *** "(S100 = Y
ES), and sets a value obtained by adding the number of bytes of data to the value of the current write pointer WP to the limit pointer LP (S
110), and then waits until an interrupt signal comes in (S
120). When the interrupt signal is input, the limit pointer LP is set to a value obtained by adding 1 to the write pointer WP at that time, and the process returns to S20 (S130).
【0042】以上の処理により、書込用DMAコントロ
ーラ34の動作は、次の様に制御されることとなる。書
込用DMAコントローラ34は、最初は、S10によっ
て1バイト分の受信が許可されているので、1バイト分
のデータを受信する。すると、ライトポインタ管理部3
7へインクリメント信号が入力され、WP=LP=1と
なる。この結果、書込用DMAコントローラ34は停止
する。また、第2のコンパレータにおいてHighレベ
ル信号が出力される。このHighレベル信号はインバ
ータで反転され、CPU31に割り込みが発生してS2
0が実行される。この結果、いま書き込んだばかりのデ
ータが読み出され、コマンド解釈が行われる。この間、
S30によってWPがデクリメントされるので、書込用
DMAコントローラ34は再び動き出す。そして、先ほ
ど読み込んだ1バイト分のデータの書き込まれているア
ドレスに次の1バイト分のデータが上書きされる。Through the above processing, the operation of the write DMA controller 34 is controlled as follows. Since the writing DMA controller 34 is initially permitted to receive one byte in S10, it receives one byte of data. Then, the write pointer management unit 3
The increment signal is input to 7, and WP = LP = 1. As a result, the write DMA controller 34 stops. Further, a High level signal is output from the second comparator. This High level signal is inverted by the inverter, the CPU 31 is interrupted and S2
0 is executed. As a result, the data just written is read and the command is interpreted. During this time,
Since WP is decremented by S30, the write DMA controller 34 starts operating again. Then, the address in which the 1-byte data read previously is written is overwritten with the next 1-byte data.
【0043】こうして、画像データの前に配置されてい
るデータ数設定コマンドを1バイトずつ書き込み、上書
きしながらCPU31によるコマンド解釈が実行され
る。こうして、1バイト書き込み、上書きが繰り返され
てデータ数設定コマンドを解釈し終えると、次からは画
像データであるから、データ数(***)に対応する分
のライトポインタWPが設定される。この結果、書込用
DMAコントローラ34は、WP=LPとなるまでは、
ECPモード特有のシェークハンド方式により、高速に
画像データの受信とRAM33への書き込みとを実行す
ることとなる。そして、WP=LPとなると、書込用D
MAコントローラ34が停止すると共に割り込み信号が
発生するので、再びCPU31が動き出し、リミットポ
インタLPを1バイトだけ受信可能な値にセットする。
そして、S20以下と同様に、書込用DMAコントロー
ラ34が1バイトのデータをRAM33に書き込むと、
直ちにこれをCPU31が読み出してコマンド解釈を実
行し、このデータの上に上書きするように次の1バイト
分のデータがRAM33は書き込まれる。In this way, the command interpretation by the CPU 31 is executed while writing the data number setting command arranged before the image data byte by byte and overwriting. In this way, when 1-byte writing and overwriting are repeated and the interpretation of the data number setting command is completed, the write pointer WP corresponding to the number of data (***) is set since it is image data from the next time. As a result, the write DMA controller 34 waits until WP = LP.
By the shake hand method peculiar to the ECP mode, the image data is received and written into the RAM 33 at high speed. When WP = LP, write D
Since the MA controller 34 is stopped and an interrupt signal is generated, the CPU 31 starts operating again and sets the limit pointer LP to a value that can receive only 1 byte.
Then, as in S20 and thereafter, when the write DMA controller 34 writes 1-byte data to the RAM 33,
Immediately, the CPU 31 reads this and interprets the command, and the next 1-byte data is written in the RAM 33 so as to overwrite this data.
【0044】例えば、今度もデータ数設定コマンドであ
った場合、S50=NO,S60=YESとなり、再
び、コマンドデータに上書きするようにして画像データ
がRAM33へ書き込まれていく。そして、S50=Y
ESとなるときには、RAM33には、1頁分の画像デ
ータが、間にコマンドデータを残すことなくRAM33
内に書き込まれた状態となる。この結果、読出用DMA
コントローラ35は、RAM33から順番に従って画像
データを読み出して印刷を実行することができる。For example, when the command is the data number setting command again, S50 = NO and S60 = YES, and the image data is written in the RAM 33 so as to overwrite the command data again. And S50 = Y
When it becomes ES, one page of image data is stored in the RAM 33 without leaving command data in between.
It becomes the state written in. As a result, the read DMA
The controller 35 can read the image data from the RAM 33 in order and execute printing.
【0045】次に、第2実施例を説明する。このプリン
タシステムも全体的には、図1に示したのと同じであ
る。しかし、プリンタのコントローラユニット130が
若干異なる構成となっている。それは、図5に示す様に
構成され、CPU131、ROM132、RAM13
3、書込用DMAコントローラ134、読出用DMAコ
ントローラ135、受信部136、ライトポインタ管理
部137、リードポインタ管理部138、デコーダ13
9、ラインシフトバッファ140及び第1のコンパレー
タ142が第1実施例と同様に備えられている。第2実
施例特有の構成としては、リミットポインタに代えて、
受信部136からのインクリメント信号を受けてカウン
トダウンするデータ数カウンタ151を備えるようにし
た点にある。このデータ数カウンタ151は、CPU1
31によってカウンタ値をセットされ、カウントダウン
によってカウンタ値=0となったときにHighレベル
信号を発生する様になっている。このデータ数カウンタ
151の出力は、第1のコンパレータ142の出力と共
に、オア回路145に入力され、受信部136及びAc
k発生部146へ入力されている。また、データ数カウ
ンタ151の出力はインバータ147を介してCPU1
31の割込端子に入力されるようになっている。なお、
この実施例でも、CPU,ROM,RAM以外の要素は
ASICで構成する。Next, a second embodiment will be described. This printer system is also the same as that shown in FIG. 1 as a whole. However, the controller unit 130 of the printer has a slightly different configuration. It is configured as shown in FIG. 5, and includes CPU 131, ROM 132, RAM 13
3, write DMA controller 134, read DMA controller 135, receiving unit 136, write pointer management unit 137, read pointer management unit 138, decoder 13
9, a line shift buffer 140 and a first comparator 142 are provided as in the first embodiment. As a configuration peculiar to the second embodiment, instead of the limit pointer,
The point is that a data number counter 151 that receives an increment signal from the reception unit 136 and counts down is provided. This data number counter 151 is
The counter value is set by 31 and a High level signal is generated when the counter value becomes 0 by the countdown. The output of the data number counter 151 is input to the OR circuit 145 together with the output of the first comparator 142, and the receiving unit 136 and the Ac are output.
It is input to the k generation unit 146. Further, the output of the data number counter 151 is sent to the CPU 1 via the inverter 147.
It is designed to be input to 31 interrupt terminals. In addition,
Also in this embodiment, the elements other than the CPU, ROM, and RAM are configured by ASIC.
【0046】次に、第2実施例のCPU131による処
理内容を説明する。CPU31は、図6に示す様に、ま
ず最初にライトポインタWP,リードポインタRP及び
カウンタCTを、それぞれWP=0,RP=0,CT=
1に初期化する(S210)。これにより、書込用DM
Aコントローラ134は、RAM133へ1バイトだけ
データを書き込むことができるようになる。RAM13
3に1バイト分のデータを書き込むと、CT=0となっ
て割り込みが発生する。この割り込みの発生を受けて、
CPU131は、WP−1のアドレスに書き込まれてい
るデータを読み出し、WP←WP−1とライトポインタ
をデクリメントし、先ほど読み出したデータのコマンド
解釈を実行する(S220〜S250)。Next, the contents of processing by the CPU 131 of the second embodiment will be described. As shown in FIG. 6, the CPU 31 first sets the write pointer WP, the read pointer RP, and the counter CT to WP = 0, RP = 0, CT =, respectively.
It is initialized to 1 (S210). This allows writing DM
The A controller 134 can write only one byte of data in the RAM 133. RAM 13
When 1 byte of data is written in 3, CT = 0 and an interrupt occurs. In response to the occurrence of this interrupt,
The CPU 131 reads the data written at the address of WP-1, decrements WP ← WP-1 and the write pointer, and executes command interpretation of the data that was just read (S220 to S250).
【0047】このコマンド解釈の結果、フォームフィー
ド「As a result of this command interpretation, the form feed "
【0048】F」が指示された場合は(S260=YE
S)、エンジン部141を起動し、エンジン部141の
センサによって用紙位置が確認されてから、読出用DM
Aコントローラ135へ起動指令を出力する(S270
〜S290)。If "F" is designated (S260 = YE)
S), after starting the engine unit 141 and confirming the sheet position by the sensor of the engine unit 141, read DM
A start command is output to the A controller 135 (S270
~ S290).
【0049】一方、フォームフィードが指示されていな
い場合には、データ数設定コマンド「On the other hand, when the form feed is not instructed, the data number setting command "
【0050】G***」が受信されたのか否かを判定す
る(S300)。データ数設定コマンドでなければ再び
S220以下の処理を実行するが、データ数設定コマン
ドであった場合は、カウンタCTにコマンドにより指示
されたデータのバイト数をセットし(S310)、以
下、割り込み信号が入るまで待機する(S320)。そ
して、割り込み信号が入ったら、カウンタCTをバイト
数1にセットしてS220へ戻る(S330)。It is determined whether "G ***" has been received (S300). If the command is not the data number setting command, the processing from S220 onward is executed again, but if it is the data number setting command, the number of bytes of the data instructed by the command is set in the counter CT (S310), and then the interrupt signal It waits until is entered (S320). When the interrupt signal is input, the counter CT is set to the byte number 1 and the process returns to S220 (S330).
【0051】以上の処理により、書込用DMAコントロ
ーラ134は、第1実施例と同様の動作を行い、1頁分
の画像データが間にコマンドデータを残すことなくRA
M133内に書き込まれた状態となる。この結果、読出
用DMAコントローラ135は、RAM133から順番
に従って画像データを読み出して印刷を実行することが
できる。Through the above processing, the write DMA controller 134 performs the same operation as that of the first embodiment, and RA of the image data for one page does not leave command data in between.
The state is written in M133. As a result, the read DMA controller 135 can read the image data from the RAM 133 in order and execute printing.
【0052】次に、第3実施例について説明する。第3
実施例は、IEEE1284規格のコンパチブルモード
とECPモードの両方を利用して印刷用のデータを送信
する様に構成されるものである。まず、データの送信方
法について説明する。Next, a third embodiment will be described. Third
The embodiment is configured to transmit print data using both the compatible mode and ECP mode of the IEEE1284 standard. First, a method of transmitting data will be described.
【0053】データの構造自体は、図2(a)と同じで
ある。このデータが、図7に示す様に、コンパチブルモ
ードの状態においてコマンドデータだけを送信し、EC
Pモードのネゴシエーションフェーズ及びセットアップ
フェーズが完了した後のフォワードフェーズで画像デー
タを送信するようになっている。なお、IEEE128
4規格では、1284Active信号がLowレベル
の時にコンパチブルモードとなり、Highレベルのと
きにECPモードとなる。コンパチブルモードとECP
モードの相違は、そのシェークハンドの仕方にある。具
体的には、従来技術の項で説明したので、それを参照さ
れたい。The data structure itself is the same as that shown in FIG. As shown in FIG. 7, this data transmits only command data in the compatible mode, and the EC
Image data is transmitted in the forward phase after the P mode negotiation phase and the setup phase are completed. In addition, IEEE128
According to the four standards, the compatible mode is set when the 1284 Active signal is at low level, and the ECP mode is set when it is at high level. Compatible mode and ECP
The difference between the modes is in the way of the shake hand. Specifically, it has been explained in the section of the prior art, so please refer to it.
【0054】第3実施例のプリンタシステムは、図8に
示す様に構成され、プリンタのコントロールユニット2
30は、CPU231、ROM232、RAM233、
書込用DMAコントローラ234、読出用DMAコント
ローラ235、デコーダ235a及びラインシフトバッ
ファ236を備えている。The printer system of the third embodiment is constructed as shown in FIG.
30 is a CPU 231, a ROM 232, a RAM 233,
A write DMA controller 234, a read DMA controller 235, a decoder 235a, and a line shift buffer 236 are provided.
【0055】この第3実施例では、CPU231もまた
データバス237を介してセントロニクスケーブル用の
インタフェース238と接続されている。なお、CPU
231とインタフェース238の間にはラッチ239が
設けられている。また、CPU231及び書込用DMA
コントローラ234にはストローブ信号線241が接続
され、CPU231にはさらにその他の制御線242も
接続されている。In the third embodiment, the CPU 231 is also connected to the Centronics cable interface 238 via the data bus 237. In addition, CPU
A latch 239 is provided between 231 and the interface 238. Further, the CPU 231 and the write DMA
The strobe signal line 241 is connected to the controller 234, and the other control line 242 is further connected to the CPU 231.
【0056】次に、第3実施例のCPU231による処
理内容を説明する。CPU231は、図9に示す様に、
1バイトだけデータを受信してはコマンド解釈を実行
し、データ数設定コマンド「Next, the processing contents of the CPU 231 of the third embodiment will be described. The CPU 231 is, as shown in FIG.
The command interpretation is executed after receiving only 1 byte of data, and the data number setting command “
【0057】G***」か否かを判断する(S410〜
S430)。なお、この間、書込用DMAコントローラ
234にはCPU231からの停止信号が入力されてい
るので(S405)、RAM233にはデータは書き込
まれない。It is judged whether or not it is "G ***" (S410-S410).
S430). During this period, since the stop signal from the CPU 231 is input to the write DMA controller 234 (S405), no data is written to the RAM 233.
【0058】データ数設定コマンドでない場合には、コ
マンド解釈結果に応じた処理を実行する(S440)。
データ数設定コマンドである場合には、設定されている
データ数Nを記憶する(S450)。そして、CPU2
31は、その他の制御線242の内、1284Acti
veを出力している制御線の信号がHighレベルとな
ったか否かを判断し、Highレベルになるまで待機す
る(S460)。If the command is not the data number setting command, the process according to the command interpretation result is executed (S440).
If the command is a data number setting command, the set data number N is stored (S450). And CPU2
In the other control line 242, 31 is 1284Acti
It is determined whether or not the signal on the control line outputting ve has become High level, and the process waits until it becomes High level (S460).
【0059】1284ActiveがHighレベルに
なったら、ECPモードに入るためのネゴシエーション
及びセットアップ処理を実行する(S470,S48
0)。これにより、ECPモードのフォワードフェーズ
となる。こうしてフォワードフェーズとなったら、書込
用DMAコントローラ234に対して起動を指令すると
共にラッチ239を解除する(S490)。この結果、
以後送信されて来るデータは、すべて書込用DMAコン
トローラ234を介してRAM233に書き込まれるこ
ととなる。When 1284 Active becomes High level, negotiation and setup processing for entering the ECP mode is executed (S470, S48).
0). As a result, the forward phase of the ECP mode is entered. In the forward phase, the write DMA controller 234 is instructed to start and the latch 239 is released (S490). As a result,
All data transmitted thereafter will be written in the RAM 233 via the write DMA controller 234.
【0060】そして、今度は、その他の制御線242の
内、1284Activeを出力している制御線の信号
がLowレベルとなったか否かを判断し、Lowレベル
になるまで待機する(S500)。1284Activ
eがLowレベルになったら、書込用DMAコントロー
ラ234に対して停止を指令すると共にラッチ239を
許可する(S510)。この結果、以後送信されて来る
データは、RAM233に書き込まれることがなくな
り、すべてCPU231にて受信されるようになる。Then, of the other control lines 242, it is determined whether or not the signal of the control line outputting 1284 Active has become Low level, and the process waits until it becomes Low level (S500). 1284Activ
When e becomes Low level, the write DMA controller 234 is instructed to stop and the latch 239 is enabled (S510). As a result, the data transmitted thereafter will not be written in the RAM 233 and will be all received by the CPU 231.
【0061】そして、この後、CPU231はECPモ
ードからコンパチブルモードへ戻すためのターミネーシ
ョンフェーズを実行する(S520)。そして、これま
でに受信したデータのバイト数DNとS450で記憶し
ておいたNと一致しているか否かを判定し(S53
0)、一致していない場合はDN<Nであるか否かを判
定する(S540)。S540でYESと判定された
ら、S460へ戻る。しかし、S540でNOと判定さ
れた場合には、エラーを報知して処理を終了する(S5
50)。なお、DN=Nとなった場合は、再びコンパチ
ブルモードにおける1バイト受信状態に戻り、コマンド
解釈を実行する。そして、次に再びデータ数設定コマン
ドがあれば、S450以下の処理を繰り返し、フォーム
フィードコマンドであれば、読出用DMAコントローラ
235を起動して印刷を開始する。After that, the CPU 231 executes the termination phase for returning from the ECP mode to the compatible mode (S520). Then, it is determined whether or not the number of bytes DN of the data received so far matches the number N stored in S450 (S53).
0), if they do not match, it is determined whether DN <N (S540). If YES is determined in S540, the process returns to S460. However, if NO in S540, an error is notified and the process ends (S5).
50). When DN = N, the 1-byte receiving state in the compatible mode is returned to and the command interpretation is executed. Then, if there is a data number setting command again, the processing from S450 onward is repeated, and if it is a form feed command, the read DMA controller 235 is activated to start printing.
【0062】こうして、この第3実施例においても、書
込用DMAコントローラ234により、1頁分の画像デ
ータが間にコマンドデータを残すことなくRAM233
内に書き込まれた状態となる。この結果、読出用DMA
コントローラ235は、RAM233から順番に従って
画像データを読み出して印刷を実行することができる。In this way, also in the third embodiment, the write DMA controller 234 does not leave command data between image data for one page and the RAM 233.
It becomes the state written in. As a result, the read DMA
The controller 235 can read image data from the RAM 233 in order and execute printing.
【0063】次に、第4実施例について説明する。第4
実施例は、IEEE1284規格のECPモードのフォ
ワードフェーズ内で印刷用のコマンドデータ及び画像デ
ータを送信する様に構成されるものである。まず、デー
タの送信方法について説明する。Next, a fourth embodiment will be described. 4th
The embodiment is configured to transmit the command data for printing and the image data in the forward phase of the ECP mode of the IEEE1284 standard. First, a method of transmitting data will be described.
【0064】データの構造自体は、図2(a)と同じで
ある。このデータが、図10に示す様に、コマンドデー
タの場合にはHostAckをLowとし、画像データ
の場合にはHostAckをHighとするというルー
ルに従って出力される。即ち、図11に示す様に、ホス
ト側は、出力しようとするデータがコマンドデータの場
合は(S610=YES)、8ビットのデータラインに
コマンドデータを出力すると共に、HostAckをL
owレベルとし(S620,S630)、画像データで
ある場合は(S610=NO)、データラインに画像デ
ータを出力すると共に、HostAckをHighレベ
ルとする(S640,S650)。そして、その後、H
ostClkをLowにしてプリンタ側にデータセット
完了を知らせ(S660)、プリンタからPeriph
Ack=Highが返って来るのを待つ(S670)。
そして、PeriphAck=Highとなったら直ち
にHostClk=Highに戻すと共に、Perip
hAck=Lowが返って来るのを待つ(S680,S
690)。そして、PeriphAck=Lowが返っ
て来たら、S610へ戻って次の出力データをデータラ
インにセットする処理を直ちに実行する。この間のS6
60〜S690のシェークハンド方式がECPモード特
有のものである。The data structure itself is the same as that shown in FIG. As shown in FIG. 10, this data is output according to the rule that, in the case of command data, HostAck is set to Low, and in the case of image data, HostAck is set to High. That is, as shown in FIG. 11, when the data to be output is command data (S610 = YES), the host outputs the command data to the 8-bit data line and sets HostAck to L.
If it is the ow level (S620, S630) and if it is image data (S610 = NO), the image data is output to the data line and the HostAck is set to the High level (S640, S650). And then, H
Set ostClk to Low to notify the printer side that the data set is complete (S660).
Wait for Ack = High to return (S670).
Then, when PeriphAck = High, immediately return to HostClk = High, and at the same time Perip
Wait for hAck = Low to return (S680, S
690). When PeriphAck = Low is returned, the process returns to S610 to immediately execute the process of setting the next output data in the data line. S6 during this time
The shake hand method of 60 to S690 is unique to the ECP mode.
【0065】第4実施例のプリンタシステムは、第3実
施例と同様に構成されるものであるが、特に、ストロー
ブ信号線などの接続方法に特徴がある。その詳細は図1
2に示す通りであり、8ビットのデータを出力するデー
タバス337は書込用DMAコントローラ334及びラ
ッチ339に入力されている。そして、ラッチ339か
らCPU331へとさらにデータバス337が接続され
ている。The printer system of the fourth embodiment has the same structure as that of the third embodiment, but is particularly characterized by the method of connecting the strobe signal line and the like. See Figure 1 for details.
2, the data bus 337 that outputs 8-bit data is input to the write DMA controller 334 and the latch 339. The data bus 337 is further connected from the latch 339 to the CPU 331.
【0066】また、ストローブ信号線であるHostC
lkライン351は、単安定フリッップフロップ352
にて立ち下がり信号を検出されるように接続されてい
る。そして、この単安定フリップフロップ352の出力
は、HostAckライン353のインバータ354に
よる反転信号と共にオア回路355に入力され、書込用
DMAコントローラ334に入力されている。このオア
回路355からの信号が書込用DMAコントローラ33
4に対する動作信号となり、この動作信号がLowレベ
ルになったときにだけ書込用DMAコントローラ334
が動作するようになっている。具体的には、HostC
lkの立ち下がりのLow信号とHostAck=Hi
ghとが重なった場合にだけ書込用DMAコントローラ
334が動作する。In addition, the strobe signal line HostC
The lk line 351 is a monostable flip-flop 352.
Is connected so that the falling signal is detected. Then, the output of the monostable flip-flop 352 is input to the OR circuit 355 together with the inverted signal from the inverter 354 of the HostAck line 353, and is input to the write DMA controller 334. The signal from the OR circuit 355 is the write DMA controller 33.
4 and the write DMA controller 334 only when the operation signal becomes Low level.
Is supposed to work. Specifically, HostC
Low signal at the falling edge of lk and HostAck = Hi
The write DMA controller 334 operates only when gh overlaps.
【0067】単安定フリップフロップ352の出力は、
さらに、1284Activeライン356のインバー
タ357による反転信号と共に第2のオア回路358に
入力されている。そして、この第2のオア回路358の
出力は、HostAckライン353の信号と共に第3
のオア回路359に入力されている。第3のオア回路3
59の出力は、ラッチ339及びCPU331へ入力さ
れている。The output of the monostable flip-flop 352 is
Further, it is input to the second OR circuit 358 together with the inverted signal from the inverter 357 of the 1284 Active line 356. The output of the second OR circuit 358 is output to the third output together with the signal of the HostAck line 353.
Is input to the OR circuit 359. Third OR circuit 3
The output of 59 is input to the latch 339 and the CPU 331.
【0068】こちらの信号とCPU331の動作の関係
についていうと、1284Active=High、H
ostClk=Low、HostAck=Lowの場合
にだけ、CPU331及びラッチ339にLowの割り
込み信号が入力されることになる。従って、CPU33
1は、1284Active=High、HostCl
k=Low、HostAck=Lowの場合にだけ、デ
ータを受信してコマンド解釈を実行することになる。As for the relationship between this signal and the operation of the CPU 331, 1284Active = High, H
Only when ostClk = Low and HostAck = Low, the Low interrupt signal is input to the CPU 331 and the latch 339. Therefore, the CPU 33
1 is 1284Active = High, HostCl
Only when k = Low and HostAck = Low, the data is received and the command interpretation is executed.
【0069】ところで、最初に説明した様に、第4実施
例では、ECPモードのフォワードフェーズにおいて、
コマンドデータはHostAck=Lowで出力し、画
像データはHostAck=Highで出力するように
しているので、上記構成の結果、書込用DMAコントロ
ーラ334は画像データのみを受信してRAM333へ
書き込み、コマンドデータはRAM333へ書き込まれ
ることなくCPU331によって解釈され、処理される
ことになる。By the way, as described at the beginning, in the fourth embodiment, in the forward phase of the ECP mode,
Since the command data is output with HostAck = Low and the image data is output with HostAck = High, as a result of the above configuration, the write DMA controller 334 receives only the image data and writes it in the RAM 333, and the command data Will be interpreted and processed by the CPU 331 without being written to the RAM 333.
【0070】この結果、この第4実施例においても、書
込用DMAコントローラ334により、1頁分の画像デ
ータが間にコマンドデータを残すことなくRAM333
内に書き込まれた状態となる。以上説明した様に、各実
施例では、少なくとも画像データをECPモードで送信
するので、従来のセントロニクスモードによるのと比べ
て、はるかに速い速度でデータを転送することができ、
DMAコントローラの効果をいかんなく発揮できる。し
かも、いずれの実施例においても、印刷実行時にはRA
Mには1頁分の画像データが間にコマンドデータを介在
することなく順番に並んでいるので、読出用のDMAコ
ントローラによって高速に処理することができる。この
結果、ホストベースプリンタシステムの利点である高速
印字をより顕著に達成することが可能となる。即ち、ホ
ストベースプリンタシステムに特有の効果として画像デ
ータへの展開時間を必要とせず、ECPモード特有の効
果としての高速転送を実現し、さらに、DMAコントロ
ーラによる高速受信を実現すると共に、コマンドデータ
と画像データを上手に区別して処理するので、これらの
相乗効果として顕著に高速化を達成することができるの
である。As a result, also in the fourth embodiment, the write DMA controller 334 does not leave command data in the image data for one page and the RAM 333 does not have the command data in between.
It becomes the state written in. As described above, in each embodiment, at least the image data is transmitted in the ECP mode, so that the data can be transferred at a much higher speed than in the conventional Centronics mode.
The effects of the DMA controller can be fully demonstrated. Moreover, in any of the embodiments, RA is used when printing is executed.
Since image data for one page is arranged in order in M without any intervening command data, it can be processed at high speed by the read DMA controller. As a result, high-speed printing, which is an advantage of the host-based printer system, can be achieved more significantly. That is, as a special effect of the host-based printer system, it does not require time to develop the image data, realizes high-speed transfer as an effect peculiar to the ECP mode, and realizes high-speed reception by the DMA controller as well as command data. Since the image data is properly distinguished and processed, it is possible to achieve remarkably high speed as a synergistic effect of these.
【0071】以上本発明のいくつかの実施例について説
明してきたが、本発明は何らこの実施例に限定されるも
のではなく、その要旨を逸脱しない範囲内で種々なる態
様にて実施できることはもちろんである。例えば、信号
ラインの使い方が異なるだけで、シェークハンド方式と
しては基本的に同様のEPPモードにおいて、上記実施
例と同様の構成を採用して同様の効果を発揮させること
ができることはもちろんである。Although some embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and it is needless to say that the present invention can be implemented in various modes without departing from the scope of the invention. Is. For example, in the EPP mode which is basically the same as the shake hand system except that the use of the signal line is different, it is needless to say that the same effect can be exerted by adopting the same configuration as the above embodiment.
【図1】 第1実施例のホストベースプリンタシステム
の概略構成図である。FIG. 1 is a schematic configuration diagram of a host-based printer system according to a first embodiment.
【図2】 第1実施例における印刷データの構造と送信
方法を示す説明図である。FIG. 2 is an explanatory diagram illustrating a structure of print data and a transmission method according to the first embodiment.
【図3】 第1実施例におけるプリンタのコントロール
ユニットの構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a control unit of the printer in the first embodiment.
【図4】 第1実施例におけるプリンタ側CPUの受信
制御の処理内容を示すフローチャートである。FIG. 4 is a flowchart showing processing contents of reception control of a printer CPU in the first embodiment.
【図5】 第2実施例におけるプリンタのコントロール
ユニットの構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a control unit of the printer in the second embodiment.
【図6】 第2実施例におけるプリンタ側CPUの受信
制御の処理内容を示すフローチャートである。FIG. 6 is a flowchart showing the processing contents of reception control of the printer-side CPU in the second embodiment.
【図7】 第3実施例における印刷データの送信方法を
示す説明図である。FIG. 7 is an explanatory diagram showing a method of transmitting print data according to the third embodiment.
【図8】 第3実施例におけるプリンタのコントロール
ユニットの構成を示すブロック図である。FIG. 8 is a block diagram showing a configuration of a control unit of a printer according to a third embodiment.
【図9】 第3実施例におけるプリンタ側CPUの受信
制御の処理内容を示すフローチャートである。FIG. 9 is a flowchart showing the processing content of reception control of the printer CPU in the third embodiment.
【図10】 第4実施例における印刷データの送信方法
を示す説明図である。FIG. 10 is an explanatory diagram showing a method of transmitting print data according to the fourth embodiment.
【図11】 第4実施例におけるホスト側CPUの送信
制御の処理内容を示すフローチャートである。FIG. 11 is a flowchart showing the processing contents of transmission control of the host CPU in the fourth embodiment.
【図12】 第4実施例におけるプリンタのコントロー
ルユニットの構成を示すブロック図である。FIG. 12 is a block diagram showing a configuration of a control unit of a printer according to a fourth embodiment.
1・・・プリンタシステム、2・・・印刷ホスト、3・
・・レーザプリンタ、4・・・セントロニクスケーブ
ル、31・・・CPU、32・・・ROM、33・・・
RAM、34・・・書込用DMAコントローラ、35・
・・読出用DMAコントローラ、36・・・受信部、3
7・・・ライトポインタ管理部、38・・・リードポイ
ンタ管理部、39・・・デコーダ、40・・・ラインシ
フトバッファ、41・・・エンジン部、42・・・第1
のコンパレータ、43・・・リミットポインタ管理部、
44・・・第2のコンパレータ、45・・・オア回路、
46・・・Ack発生部、47・・・インバータ、13
1・・・CPU、132・・・ROM、133・・・R
AM、134・・・書込用DMAコントローラ、135
・・・読出用DMAコントローラ、136・・・受信
部、137・・・ライトポインタ管理部、138・・・
リードポインタ管理部、139・・・デコーダ、142
・・・第1のコンパレータ、146・・・Ack発生
部、147・・・インバータ、151・・・データ数カ
ウンタ、231・・・CPU、232・・・ROM、2
33RAM、234・・・書込用DMAコントローラ、
235・・・読出用DMAコントローラ、235a・・
・デコーダ、236・・・ラインシフトバッファ、23
7・・・データバス、238・・・インタフェース、2
39・・・ラッチ、241・・・ストローブ信号線、2
42・・・その他の制御線、331・・・CPU、33
2・・・ROM、333・・・RAM、334・・・書
込用DMAコントローラ、337・・・データバス、3
39・・・ラッチ、351・・・HostClkライ
ン、352・・・単安定フリップフロップ、353・・
・HostAckライン、354・・・インバータ、3
55・・・第1のオア回路、356・・・Active
ライン、357・・・インバータ、358・・・第2の
オア回路、359・・・第3のオア回路。1 ... Printer system, 2 ... Print host, 3 ...
..Laser printer, 4 ... Centronics cable, 31 ... CPU, 32 ... ROM, 33 ...
RAM, 34 ... Write DMA controller, 35 ...
..Reading DMA controller, 36 ... Receiving unit, 3
7 ... Write pointer management unit, 38 ... Read pointer management unit, 39 ... Decoder, 40 ... Line shift buffer, 41 ... Engine unit, 42 ... First
Comparator, 43 ... Limit pointer management unit,
44 ... second comparator, 45 ... OR circuit,
46 ... Ack generation unit, 47 ... Inverter, 13
1 ... CPU, 132 ... ROM, 133 ... R
AM, 134 ... Write DMA controller, 135
... Read DMA controller, 136 ... Receiving unit, 137 ... Write pointer management unit, 138 ...
Read pointer management unit, 139 ... Decoder, 142
... First comparator, 146 ... Ack generator, 147 ... Inverter, 151 ... Data number counter, 231 ... CPU, 232 ... ROM, 2
33RAM, 234 ... Write DMA controller,
235 ... Read-out DMA controller, 235a ...
Decoder, 236 ... Line shift buffer, 23
7 ... data bus, 238 ... interface, 2
39 ... Latch, 241 ... Strobe signal line, 2
42 ... Other control lines, 331 ... CPU, 33
2 ... ROM, 333 ... RAM, 334 ... Write DMA controller, 337 ... Data bus, 3
39 ... Latch, 351 ... HostClk line, 352 ... Monostable flip-flop, 353 ...
・ HostAck line, 354 ... Inverter, 3
55 ... First OR circuit, 356 ... Active
Lines, 357 ... Inverters, 358 ... Second OR circuits, 359 ... Third OR circuits.
Claims (11)
成し、該画像データ及び印刷用のコマンドデータをプリ
ンタに出力して印刷を行う様にしたホストベースプリン
タシステムにおいて、 少なくとも前記画像データの送受信を、IEEE128
4規格のECPモード又はEPPモードにおけるシェイ
クハンド方式で実施するデータ送受信手段を備え、 プリンタ側に、前記画像データを受信して受信バッファ
へ書き込む書込用DMAコントローラと、印刷実行のた
めに前記受信バッファから画像データを読み出す読出用
DMAコントローラとを備え、 前記受信バッファへは、1頁分の画像データの間にコマ
ンドデータを介在させないようにデータを蓄積させる画
像データ蓄積手段を備えることを特徴とするホストベー
スプリンタシステム。1. A host-based printer system in which image data for printing is previously formed on the host side, and the image data and command data for printing are output to a printer for printing, and at least the image data Send and receive, IEEE128
A data transmission / reception means for carrying out the shake hand method in the ECP mode or EPP mode of the four standards is provided, and the printer side has a write DMA controller for receiving the image data and writing it in a reception buffer, and the reception for executing printing. A read DMA controller for reading image data from the buffer, and image data storage means for storing data in the reception buffer so that command data is not interposed between image data for one page. Host based printer system.
ステムにおいて、前記画像データ蓄積手段は、前記コマ
ンドデータと画像データとを区別し、画像データと画像
データの間にあるコマンドデータを受信バッファ内に残
さない様に受信バッファへデータを蓄積させる手段とし
て構成されることを特徴とするホストベースプリンタシ
ステム。2. The host-based printer system according to claim 1, wherein the image data storage unit distinguishes the command data from the image data, and stores the command data between the image data and the image data in a reception buffer. A host-based printer system, characterized in that the host-based printer system is configured as means for accumulating data in a reception buffer so as not to leave it.
ステムにおいて、 前記データ送受信手段を、印刷用のコマンドデータ及び
画像データの送受信をIEEE1284規格のECPモ
ード又はEPPモードのシェークハンド方式で行う手段
として構成すると共に、 前記プリンタ側に、 前記書込用DMAコントローラの受信状態を、1バイト
分のデータを受信したら一旦停止する1バイト受信状態
と連続的にデータを受信する連続受信状態とで切り換え
る受信状態切換手段と、 前記1バイト受信状態にあるときに前記書込用DMAコ
ントローラが受信バッファに書き込んだデータを読み出
して解釈し、該解釈結果に基づいて、前記受信状態切換
手段による受信状態の切換条件を設定する切換条件設定
手段と、 連続受信状態で受信バッファ内にデータを書き込み始め
るとき、1バイト受信状態で書き込まれたデータの上に
上書きしていく上書き手段とを備えさせることで前記画
像データ書込手段を構成することを特徴とするホストベ
ースプリンタシステム。3. The host-based printer system according to claim 2, wherein the data transmitting / receiving unit is a unit for performing transmission / reception of command data and image data for printing by a shake hand system of ECP mode or EPP mode of IEEE1284 standard. At the same time, the receiving state of the writing DMA controller on the printer side is switched between a 1-byte receiving state in which it temporarily stops after receiving 1-byte data and a continuous receiving state in which it continuously receives data. The switching means and the condition for switching the reception state by the reception state switching means based on the interpretation result by reading and interpreting the data written in the reception buffer by the write DMA controller in the 1-byte reception state. The switching condition setting means for setting the When you start to write data, the host-based printer system characterized by configuring the image data writing means by causing a overwriting means going overwritten on the data written in the 1-byte receiving state.
ステムにおいて、 前記受信状態切換手段を、前記書込用DMAコントロー
ラによるライトポインタの停止条件を与えるリミットポ
インタにより構成し、 前記切換条件設定手段を、前記リミットポインタに現在
のライトポインタの次のポインタを設定することで1バ
イト受信状態を設定し、該リミットポインタにコマンド
解釈の結果判明した画像データのバイト数だけ先のポイ
ンタを設定することで連続受信状態を設定する手段とし
て構成し、 前記上書き手段を、ライトポインタを戻すことによって
前記上書きを行わせる手段として構成することを特徴と
するホストベースプリンタシステム。4. The host-based printer system according to claim 3, wherein the reception state switching means is composed of a limit pointer for giving a write pointer stop condition by the write DMA controller, and the switching condition setting means By setting a pointer next to the current write pointer to the limit pointer, a 1-byte reception state is set, and by setting a pointer ahead by the number of bytes of the image data found as a result of command interpretation to the limit pointer, continuous A host-based printer system, wherein the host-based printer system is configured as means for setting a reception state, and the overwriting means is configured as means for performing the overwriting by returning a write pointer.
ステムにおいて、 前記受信状態切換手段を、前記書込用DMAコントロー
ラによるライトポインタの移動量を与えるカウンタによ
り構成し、 前記切換条件設定手段を、前記カウンタにバイト数1を
設定することで1バイト受信状態を設定し、該カウンタ
にコマンド解釈の結果判明した画像データのバイト数を
設定することで連続受信状態を設定する手段として構成
し、 前記上書き手段を、ライトポインタを戻すことによって
前記上書きを行わせる手段として構成することを特徴と
するホストベースプリンタシステム。5. The host-based printer system according to claim 3, wherein the reception state switching means is composed of a counter for giving a movement amount of a write pointer by the write DMA controller, and the switching condition setting means is The counter is set to a 1-byte reception state by setting the number of bytes 1, and the counter is configured to set a continuous reception state by setting the number of bytes of image data found as a result of command interpretation. A host-based printer system, characterized in that the means is configured as means for performing the overwrite by returning a write pointer.
ンタシステムにおいて、前記ライトポインタは、1バイ
ト受信状態において、前記切換条件設定手段がデータを
読み出した後で直前の状態に戻されることを特徴とする
ホストベースプリンタシステム。6. The host-based printer system according to claim 4 or 5, wherein the write pointer is returned to the immediately preceding state after the switching condition setting means has read the data in the 1-byte reception state. And host-based printer system.
ステムにおいて、 前記データ送受信手段を、印刷用のコマンドデータ及び
画像データの送受信をIEEE1284規格のECPモ
ード又はEPPモードのシェークハンド方式で行う手段
として構成すると共に、 前記ホスト側に、前記コマンドデータを出力していると
きと画像データを出力しているときとを識別するための
識別信号出力手段を設け、 前記プリンタ側に、前記識別信号がコマンドデータの出
力を意味している間は、書込用DMAコントローラを停
止状態として自身でコマンドデータを受信して解釈し、
前記識別信号が画像データの出力を意味している間は前
記書込用DMAコントローラに画像データを受信させる
中央処理装置を設けることで、 前記画像データ書込手段を構成することを特徴とするホ
ストベースプリンタシステム。7. The host-based printer system according to claim 2, wherein the data transmitting / receiving unit is a unit for performing transmission / reception of command data and image data for printing by a shake hand system of ECP mode or EPP mode of IEEE1284 standard. At the same time, the host side is provided with an identification signal output means for distinguishing when the command data is being output and when the image data is being output, and on the printer side, the identification signal is command data. While it means the output of, the write DMA controller is stopped and the command data is received and interpreted by itself.
A host characterized in that the image data writing means is configured by providing a central processing unit for causing the write DMA controller to receive image data while the identification signal means output of image data. Base printer system.
ステムにおいて、 前記データ送受信手段を、画像データの送受信をIEE
E1284規格のECPモード又はEPPモードのシェ
ークハンド方式で行い、コマンドデータの送受信をIE
EE1284規格のコンパチブルモードのシェークハン
ド方式で行う手段として構成すると共に、 前記プリンタ側に、前記コンパチブルモード下で送信さ
れて来るコマンドデータは直接受信して解釈し、前記E
CPモード又はEPPモードにおけるセットアップフェ
ーズが完了した後ターミネーションフェーズが開始され
るまでの間に送信されてくるデータの受信は前記書込用
DMAコントローラに行わせる中央処理装置を設けるこ
とで、 前記画像データ書込手段を構成することを特徴とするホ
ストベースプリンタシステム。8. The host-based printer system according to claim 2, wherein the data transmission / reception unit is configured to transmit / receive image data by IEEE
The E1284 standard ECP mode or EPP mode shake hand method is used to send and receive command data.
The printer is configured as a means for performing a shake hand method in the compatible mode of the EE1284 standard, and the command data transmitted under the compatible mode is directly received and interpreted by the printer side.
By providing a central processing unit that causes the write DMA controller to receive the data transmitted until the termination phase is started after the completion of the setup phase in the CP mode or the EPP mode, the image data is provided. A host-based printer system comprising a writing unit.
成し、該画像データ及び印刷用のコマンドデータをプリ
ンタに出力して印刷を行う様にしたホストベースプリン
タシステムにおけるデータ送受信方法において、 印刷用のコマンドデータ及び画像データをIEEE12
84規格のECPモード又はEPPモードのシェークハ
ンド方式で送受信することを特徴とするホストベースプ
リンタシステムにおけるデータ送受信方法。9. A data transmission / reception method in a host-based printer system, wherein image data for printing is formed in advance on the host side, and the image data and command data for printing are output to a printer for printing. Command data and image data for IEEE 12
A data transmission / reception method in a host-based printer system, characterized in that the data is transmitted / received by a shake hand system of ECP mode or EPP mode of 84 standard.
形成し、該画像データ及び印刷用のコマンドデータをプ
リンタに出力して印刷を行う様にしたホストベースプリ
ンタシステムにおけるデータ送受信方法において、 印刷用のコマンドデータ及び画像データをIEEE12
84規格のECPモード又はEPPモードのシェークハ
ンド方式で送受信すると共に、前記コマンドデータを出
力しているときと画像データを出力しているときで反転
する反転信号をホスト側から併せて出力することを特徴
とするホストベースプリンタシステムにおけるデータ送
受信方法。10. A data transmitting / receiving method in a host-based printer system, wherein image data for printing is formed in advance on the host side, and the image data and command data for printing are output to a printer for printing. Command data and image data for IEEE 12
In addition to transmitting and receiving in the 84-standard ECP mode or EPP mode shake hand system, an inversion signal that is inverted when the command data is output and when the image data is output is also output from the host side. A data transmission / reception method in a host-based printer system characterized.
形成し、該画像データ及び印刷用のコマンドデータをプ
リンタに出力して印刷を行う様にしたホストベースプリ
ンタシステムにおけるデータ送受信方法において、 画像データの送受信をIEEE1284規格のECPモ
ード又はEPPモードのシェークハンド方式で行い、コ
マンドデータの送受信をIEEE1284規格のコンパ
チブルモードのシェークハンド方式で行うことを特徴と
するホストベースプリンタシステムにおけるデータ送受
信方法。11. A data transmission / reception method in a host-based printer system, wherein image data for printing is formed in advance on the host side, and the image data and command data for printing are output to a printer for printing. A data transmission / reception method in a host-based printer system, characterized in that data transmission / reception is performed by an ECP mode or EPP mode shake hand system of IEEE1284 standard, and command data transmission / reception is performed by a compatible mode shake hand system of IEEE1284 standard.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8078929A JPH09269876A (en) | 1996-04-01 | 1996-04-01 | Host-based printer system and data transmission / reception method therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8078929A JPH09269876A (en) | 1996-04-01 | 1996-04-01 | Host-based printer system and data transmission / reception method therefor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09269876A true JPH09269876A (en) | 1997-10-14 |
Family
ID=13675570
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8078929A Pending JPH09269876A (en) | 1996-04-01 | 1996-04-01 | Host-based printer system and data transmission / reception method therefor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09269876A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002192753A (en) * | 1998-11-26 | 2002-07-10 | Seiko Epson Corp | Ink container and printing apparatus using the same |
| US6565198B2 (en) | 1998-11-02 | 2003-05-20 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| US6955411B2 (en) | 1998-11-26 | 2005-10-18 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| US6995861B1 (en) | 1998-11-26 | 2006-02-07 | Seiko Epson Corporation | Method of normality decision with regard to ink cartridge and printer actualizing the method |
| JP2006326857A (en) * | 2005-05-23 | 2006-12-07 | Canon Inc | Recording apparatus and method for controlling the apparatus |
-
1996
- 1996-04-01 JP JP8078929A patent/JPH09269876A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6565198B2 (en) | 1998-11-02 | 2003-05-20 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| US7195346B1 (en) | 1998-11-02 | 2007-03-27 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| US7393092B2 (en) | 1998-11-02 | 2008-07-01 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| JP2002192753A (en) * | 1998-11-26 | 2002-07-10 | Seiko Epson Corp | Ink container and printing apparatus using the same |
| US6955411B2 (en) | 1998-11-26 | 2005-10-18 | Seiko Epson Corporation | Ink cartridge and printer using the same |
| US6995861B1 (en) | 1998-11-26 | 2006-02-07 | Seiko Epson Corporation | Method of normality decision with regard to ink cartridge and printer actualizing the method |
| US7513590B2 (en) | 1998-11-26 | 2009-04-07 | Seiko Epson Corporation | Method of normality decision with regard to ink cartridge and printer actualizing the method |
| JP2006326857A (en) * | 2005-05-23 | 2006-12-07 | Canon Inc | Recording apparatus and method for controlling the apparatus |
| US7969605B2 (en) | 2005-05-23 | 2011-06-28 | Canon Kabushiki Kaisha | Recording apparatus and method of controlling the recording apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH082068A (en) | Printer with facsimile | |
| JP2525352B2 (en) | Printer system | |
| JPH09269876A (en) | Host-based printer system and data transmission / reception method therefor | |
| US20020039188A1 (en) | Image input-output apparatus and method therefor | |
| JPH096720A (en) | Information transmission method and information transmission system | |
| US20040190048A1 (en) | Image forming device and method | |
| JP3347580B2 (en) | Information processing device and storage medium | |
| JP3335094B2 (en) | Printer interface system | |
| JP4400097B2 (en) | Printing apparatus, printing control method, program, and recording medium | |
| JP3129679B2 (en) | Printer | |
| US20240028279A1 (en) | Information processing apparatus, method of controlling information processing apparatus, image forming apparatus, method of controlling image forming apparatus, storage medium, and image forming system | |
| JP2835487B2 (en) | Printer buffer | |
| JP2707963B2 (en) | Printing system | |
| JP2009211307A (en) | Image forming apparatus | |
| JPH0660002A (en) | Output device mode setting system | |
| JP3167062B2 (en) | Image recording device | |
| JP3423376B2 (en) | Information processing apparatus and control method therefor | |
| JPH0818719A (en) | Facsimile printer | |
| JP2002370409A (en) | Printing system, printing control method, program, and storage medium | |
| JP2006056170A (en) | Image forming apparatus | |
| JPH0467224A (en) | Information processor | |
| JPH0659834A (en) | Printer controller | |
| JP2000322210A (en) | Printer control method | |
| JP2004054505A (en) | Printing control device | |
| JPS6180461A (en) | Image processing device |