JP3335094B2 - Printer interface system - Google Patents

Printer interface system

Info

Publication number
JP3335094B2
JP3335094B2 JP00915597A JP915597A JP3335094B2 JP 3335094 B2 JP3335094 B2 JP 3335094B2 JP 00915597 A JP00915597 A JP 00915597A JP 915597 A JP915597 A JP 915597A JP 3335094 B2 JP3335094 B2 JP 3335094B2
Authority
JP
Japan
Prior art keywords
printer
data
host computer
status
phase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP00915597A
Other languages
Japanese (ja)
Other versions
JPH10207649A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP00915597A priority Critical patent/JP3335094B2/en
Publication of JPH10207649A publication Critical patent/JPH10207649A/en
Application granted granted Critical
Publication of JP3335094B2 publication Critical patent/JP3335094B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は主制御機器(ホスト
コンピュータ)とプリンタとの間に設けられるプリンタ
インターフェースシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer interface system provided between a main control device (host computer) and a printer.

【0002】[0002]

【従来の技術】従来、ホストコンピュータとプリンタと
を接続する標準インターフェースとして普及しているも
のは、ホストコンピュータからプリンタに複数バイトの
データを転送する場合、1バイト毎にBUSY信号をチ
ェックし、もし、BUSYならば一定時間待って再度B
USY信号をチェックし、BUSYでなくなるとデータ
をセットし、STROBE信号を送出して1バイトのデ
ータ送信を行うように動作していた。このため、プリン
タがBUSYの場合には、ホストコンピュータは無駄な
待ち時間が発生し、効率的なデータ転送が行えないとい
った問題があった。また、片方向通信方式であるため、
エラーステータスを送信するための送信線が少なく、エ
ラーステータスの種類が限られてしまうという問題もあ
った。
2. Description of the Related Art Conventionally, as a standard interface for connecting a host computer and a printer, when transferring a plurality of bytes of data from the host computer to the printer, a BUSY signal is checked for each byte. If it is BUSY, wait for a certain time and return to B
The USY signal is checked, and when the signal is no longer BUSY, data is set, and a STROBE signal is transmitted to transmit 1-byte data. For this reason, when the printer is BUSY, there is a problem that the host computer has a useless waiting time and cannot efficiently transfer data. Also, because of the one-way communication method,
There is also a problem that the number of transmission lines for transmitting the error status is small, and the types of the error status are limited.

【0003】この問題を解決すべく、特開平1−302
453号公報では、制御信号線を用いてシリアル通信す
る手段を設けることによって、プリンタの様々なエラー
ステータスの詳細を知ることを可能とするインターフェ
ースシステムが開示されている。
To solve this problem, Japanese Patent Laid-Open Publication No.
Japanese Patent Publication No. 453 discloses an interface system capable of knowing details of various error statuses of a printer by providing means for performing serial communication using a control signal line.

【0004】しかしながら、特開平1−302453号
公報に開示された方式では、エラー発生後にシリアル転
送を行うためエラーのステータスしか転送できず、非エ
ラーのステータスは転送できないという問題がある。
[0004] However, the method disclosed in Japanese Patent Application Laid-Open No. 1-302453 has a problem that only an error status can be transferred because serial transfer is performed after an error has occurred, and a non-error status cannot be transferred.

【0005】ところで、米国電気電子学会(IEEE)
では、従来のプリンタインターフェースの問題を改善す
るために、ホストコンピュータと周辺機器(プリンタ)
との信号の制御方式を定め、P1284規格として標準
化した。このIEEE−P1284規格は上記従来の標
準インターフェースを高速化しただけでなく、データバ
スを双方向として扱えるようになったため、今日のプリ
ンタインターフェースシステムの標準ともなっている。
IEEE−P1284規格に準拠したプリンタインター
フェースシステムは、図2に示すようないくつかのフェ
ーズをもっている。
[0005] Incidentally, the Institute of Electrical and Electronics Engineers (IEEE)
Now, to improve the problem of the conventional printer interface, the host computer and peripherals (printer)
The control method of the signal was determined and standardized as P1284 standard. The IEEE-P1284 standard has become the standard for today's printer interface systems because it not only speeds up the above-mentioned conventional standard interface but also allows the data bus to be handled bidirectionally.
A printer interface system based on the IEEE-P1284 standard has several phases as shown in FIG.

【0006】各フェーズの内容を説明すると、2AのC
ompatibilityフェーズは、従来の標準イン
ターフェースと互換可能ということである。このフェー
ズでは従来の標準インターフェースのデータの通信方式
でホストコンピュータからプリンタにデータを転送する
ことができる。IEEE−P1284規格はこのフェー
ズからスタートする。
The contents of each phase will be described.
The ompatibility phase is compatible with conventional standard interfaces. In this phase, data can be transferred from the host computer to the printer by the data communication method of the conventional standard interface. The IEEE-P1284 standard starts from this phase.

【0007】そして、2BのNegotiationフ
ェーズで、IEEE−P1284規格で定められたいく
つかの動作モードのうち一つに入り、交渉が成功すれ
ば、2CのSetupフェーズに移行する。その後、2
DのForward Idleフェーズで待機する。
In the Negotiation phase of 2B, the operation enters one of several operation modes defined by the IEEE-P1284 standard. If the negotiation is successful, the operation proceeds to the 2C Setup phase. Then 2
Wait in D's Forward Idle phase.

【0008】ホストコンピュータは、プリンタに対して
送出すべきデータがあれば、2DのForward I
dleフェーズから2EのForwardフェーズに移
行して、データを送出する。そして、転送が終了すると
再び2DのForwardIdleフェーズに戻る。
[0008] If there is data to be sent to the printer, the host computer sends a 2D Forward I
The process shifts from the dle phase to the forward phase of 2E and sends out data. When the transfer is completed, the process returns to the 2D ForwardIdle phase.

【0009】また、逆にプリンタからホストコンピュー
タへステータス情報などのデータを転送する場合は、2
DのForward Idleフェーズから2FのFo
rward to Reverseフェーズに移行し
て、データバスの入出力を切り替えた後、2GのRev
erse Idleフェーズへ移行する。そして、2H
のReverseフェーズでプリンタからホストコンピ
ュータへデータを転送する。
On the other hand, when data such as status information is transferred from the printer to the host computer,
From the Forward Idle phase of D to the Fo of 2F
After moving to the backward to reverse phase and switching the input / output of the data bus, the 2G Rev.
Move to the erase idle phase. And 2H
The data is transferred from the printer to the host computer in the reverse phase.

【0010】1バイトの転送が終了し、さらに転送を行
う場合は、2GのReverseIdleと2HのRe
verseフェーズを任意バイト数分ループする。そし
て、ホストコンピュータへのデータの転送を終了したい
ときは、2IのReverse to Forward
フェーズで、バスの入出力を切り替えた後、2DのFo
rward Idleフェーズに戻る。また、終了時に
は、この2DのForward Idleフェーズから
2JのTerminationフェーズを通して、2A
のCompatibilityフェーズへ移行して終了
となる。
When the transfer of one byte is completed and further transfer is to be performed, the 2G reverse idle and the 2h reverse idle are used.
Loop the reverse phase for an arbitrary number of bytes. Then, when it is desired to end the data transfer to the host computer, 2I Reverse to Forward
After switching the input and output of the bus in the phase, 2D Fo
Return to the backward Idle phase. At the time of termination, the 2D Forward Idle phase is passed through the 2J Termination phase and the 2A
Then, the process proceeds to the Compatibility phase.

【0011】図3はホストコンピュータとプリンタとの
間のデータ処理を示したフローチャートである。この処
理内容をIEEE−P1284規格のフェーズの遷移と
して考えると、図4のようなフローチャートとなる。図
3のステップ3C,3Dはそれぞれ図4のステップ4
C,4Dに相当する。ステップ3Cはホストコンピュー
タからプリンタにデータを送信するということであるか
ら、フェーズはステップ4CのようにForward
IdleフェーズとForwardフェーズの移行を繰
り返す。
FIG. 3 is a flowchart showing data processing between the host computer and the printer. If this processing content is considered as a phase transition of the IEEE-P1284 standard, a flowchart as shown in FIG. 4 is obtained. Steps 3C and 3D in FIG. 3 correspond to Step 4 in FIG.
C, 4D. Since the step 3C is to transmit data from the host computer to the printer, the phase is forward as in the step 4C.
The transition between the Idle phase and the Forward phase is repeated.

【0012】また、ステップ3Dはプリンタからホスト
コンピュータにデータを送信するということであるか
ら、フェーズはステップ4DのようにForward
toReverse、Reverse Idle、Re
verseフェーズへと移行する。そして、ホストコン
ピュータに未転送データが存在する間、ステップ3C,
3Dを繰り返す。これはステップ4C,4Dのフェーズ
を繰り返し移行し続けるということを意味する。
Since step 3D is to transmit data from the printer to the host computer, the phase is set to Forward as in step 4D.
toReverse, Reverse Idle, Re
Move to the reverse phase. Then, while the untransferred data exists in the host computer, steps 3C,
Repeat 3D. This means that the phase of steps 4C and 4D is repeatedly shifted.

【0013】[0013]

【発明が解決しようとする課題】このように、IEEE
−P1284規格ではForwardフェーズでホスト
コンピュータからプリンタへデータを転送中、プリンタ
のステータスデータを受信したい場合、一旦、データの
転送を中断して、Forward to Revers
eフェーズに移行し、データバスを切り替えた後、Re
verseフェーズでステータスデータを受信する。そ
して再び、Reverse to Forwardフェ
ーズでデータバスを切り替え、Forwardフェーズ
に移行してデータバス転送を再開するといった処理が必
要である。
SUMMARY OF THE INVENTION As described above, the IEEE
According to the P1284 standard, when data is transferred from the host computer to the printer in the forward phase, if the user wants to receive the status data of the printer, the data transfer is temporarily interrupted and the forward to reverses is performed.
e phase, and after switching the data bus,
Receive status data in the reverse phase. Then, it is necessary to switch the data bus again in the Reverse to Forward phase, shift to the Forward phase, and restart the data bus transfer.

【0014】従って、ホストコンピュータはプリンタの
ステータスをチェックする毎に、印字データの転送を中
断する必要があり、さらにフェーズの移行によって図6
に示すForward to Reverse期間のD
ATAの変化点からPerrorの立ち上がりまでの遅
延時間とReverse to Forward期間の
Initの立ち上がりからDATAの変化点までの遅延
時間を必要とする。
Therefore, every time the host computer checks the status of the printer, it is necessary to suspend the transfer of the print data.
D in the Forward to Reverse period shown in
It requires a delay time from the ATA change point to the rise of the Error and a delay time from the rise of Init to the change point of the DATA during the Reverse to Forward period.

【0015】その結果、データの転送効率が下がり、ダ
ムプリンタのような1ページ分のメモリを持たないプリ
ンタでは、印字中に印字データがなくなるというアンダ
ーランエラーが発生するという問題がある。
As a result, there is a problem in that the data transfer efficiency is reduced, and in a printer such as a dumb printer which does not have a memory for one page, an underrun error that print data is lost during printing occurs.

【0016】このアンダーランエラーを回避するにはプ
リンタのメモリを増設するか、ホストコンピュータの負
荷を下げる必要がある。メモリの増設はプリンタのコス
トアップを招き、ホストコンピュータの負荷を下げると
いうことは、実行中のプロセスを終了させる必要があ
り、ユーザーにとって不都合が生じる。
To avoid this underrun error, it is necessary to increase the memory of the printer or reduce the load on the host computer. Increasing the memory increases the cost of the printer, and lowering the load on the host computer requires terminating the running process, which is inconvenient for the user.

【0017】また、ホストコンピュータへプリンタから
のステータスを伝達する手段として、シリアル転送をす
る場合、プリンタ側にシリアル転送手段を設ける必要が
あるため回路が複雑化するという不都合が生じる。
Further, in the case of performing serial transfer as means for transmitting the status from the printer to the host computer, it is necessary to provide serial transfer means on the printer side, so that the circuit becomes inconvenient.

【0018】[0018]

【課題を解決するための手段】本発明のプリンタインタ
ーフェースシステムは、主制御機器とプリンタとの間に
設けられるパラレルインターフェースに、前記主制御機
器からプリンタにデータを送信するフェーズ中に、前記
プリンタのステータスデータを制御信号を介してシリア
ル転送する処理手段を設け、該処理手段はさらに、Sele
ct信号を前記ステータスデータとしAck信号をクロック
としてシリアル通信を行いIEEE−P1284規格に
準拠していることを特徴としている。
A printer interface system according to the present invention provides a parallel interface provided between a main control device and a printer during a phase of transmitting data from the main control device to the printer. Processing means for serially transferring the status data via a control signal is provided ;
Using the ct signal as the status data and clocking the Ack signal
Serial communication as IEEE-P1284 standard
It is characterized by being compliant .

【0019】また、前記処理手段は、制御信号を介して
主制御機器に転送するステータスデータをシリアル転送
ではなく、直接ステータス信号とし転送する。
Further, the processing means transfers status data to be transferred to the main control device via a control signal directly as a status signal instead of serial transfer.

【0020】[0020]

【発明の実施の形態】以下、図面を参照して本発明のプ
リンタインターフェースシステムの実施形態を説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a printer interface system according to the present invention will be described below with reference to the drawings.

【0021】図1は、本発明のプリンタインターフェー
スシステムの実施形態であり、ホストコンピュータとプ
リンタとからなるプリンタインターフェースシステムの
ブロック図である。
FIG. 1 is an embodiment of a printer interface system according to the present invention, and is a block diagram of a printer interface system including a host computer and a printer.

【0022】1Aはホストコンピュータ、1Bはプリン
タである。ホストコンピュータ1Aの内部は、システム
全体の制御を司るCPU1C、システム全体の処理手順
を格納するROM1D、CPU1Cの作業領域として記
憶領域を有するRAM1E、プリンタ1Dとの間のデー
タ授受のためのインターフェイス1H、処理結果等を表
示する表示装置1F、及びキーボード、マウス等の入力
装置1Gから構成される。
1A is a host computer, and 1B is a printer. The host computer 1A includes a CPU 1C for controlling the entire system, a ROM 1D for storing the processing procedure of the entire system, a RAM 1E having a storage area as a work area for the CPU 1C, an interface 1H for exchanging data with the printer 1D, The display device 1F includes a display device 1F that displays processing results and the like, and an input device 1G such as a keyboard and a mouse.

【0023】また、プリンタ1Bの内部も同様にCPU
1I、ROM1J、RAM1K、パラレルインターフェ
イス1N、ホストコンピュータ1Aから送られてくる印
字データを一時記憶するDRAM1M及び紙送り機構等
からなる印字機構1Lから構成される。
Similarly, the inside of the printer 1B also has a CPU.
1I, a ROM 1J, a RAM 1K, a parallel interface 1N, a DRAM 1M for temporarily storing print data sent from the host computer 1A, and a print mechanism 1L including a paper feed mechanism.

【0024】図3は図1に示したシステム構成に基づく
ホストコンピュータ1Aの印字プロセス時のデータ処理
フローチャートである。ホストコンピュータ1Aはアプ
リケーションから印字要求を受けると、ステップ3Aの
印字起動で、アプリケーションのデータをプリンタが処
理できるデータフォーマットに変換する。ホストコンピ
ュータ1Aはプリンタ1Bに印字データを転送する前
に、ステップ3Bで、まずプリンタ1Bが現在使用中で
あるかチェックする。プリンタ1Bが印字中の場合や、
エラーが発生している場合等、使用不可の状態であれば
印字可能状態になるまで一時待機する。
FIG. 3 is a flowchart of data processing during a printing process of the host computer 1A based on the system configuration shown in FIG. Upon receiving a print request from the application, the host computer 1A converts the data of the application into a data format that can be processed by the printer by starting printing in step 3A. Before transferring the print data to the printer 1B, the host computer 1A first checks in step 3B whether the printer 1B is currently in use. When the printer 1B is printing,
If an error has occurred, for example, if the printer cannot be used, the printer temporarily waits until the printer becomes printable.

【0025】そして、プリンタ1Bが印字可能状態であ
ることを確認できたら、ステップ3Cのデータ転送に
て、ホストコンピュータ1Aからプリンタ1Bへ印字デ
ータの転送を開始する。プリンタ1Bは受信した印字デ
ータを一時DRAM1Mに格納し、印字機構1Lからの
印字データ要求に応じて、DRAM1Mからデータを読
み出して、印字機構1Lに送出する。印字機構1Lでは
受信した印字データを紙面上に形成していく。ホストコ
ンピュータ1Aは印字データを転送している間にも、プ
リンタ1Bに紙詰まり等のエラーが発生していないかス
テータスをチェックする必要がある。
When it is confirmed that the printer 1B is in a printable state, transfer of print data from the host computer 1A to the printer 1B is started by data transfer in step 3C. The printer 1B temporarily stores the received print data in the DRAM 1M, reads the data from the DRAM 1M in response to a print data request from the print mechanism 1L, and sends the data to the print mechanism 1L. The printing mechanism 1L forms the received print data on the paper. The host computer 1A needs to check the status of the printer 1B for errors such as a paper jam even while transferring the print data.

【0026】プリンタ1Bのステータス情報には、例え
ば紙詰まり、紙切れ、アンダーランエラー、オーバーラ
ンエラー等のエラーに関するものから、現在のDRAM
1Mの空き容量、印字紙の通過位置等の非エラーに関す
るものまで、プリンタによって様々なステータス情報を
持っている。アンダーランエラーとは、印字中にメモリ
のデータが空になり、メモリから読み出すべきデータが
なくなってしまったことを示すエラーである。また、オ
ーバーランエラーとは印字中にメモリの容量をオーバー
してデータが転送され、データが溢れ出したことを示す
エラーである。
The status information of the printer 1B includes, for example, information relating to errors such as paper jam, running out of paper, underrun error, overrun error, etc.
The printer has various status information, such as information relating to non-errors such as a 1M free space and a passing position of a printing paper. An underrun error is an error indicating that data in the memory becomes empty during printing and there is no more data to be read from the memory. Also, an overrun error is an error indicating that data has been transferred while exceeding the capacity of the memory during printing and the data overflowed.

【0027】ホストコンピュータ1Aがプリンタ1Bの
ステータス情報をチェックする手段として本実施形態1
では、図8に示すようにパラレルインターフェースの制
御信号線を使用してシリアル通信手段を具備した構成と
なっている。また、使用する制御信号線は図7に示すよ
うにSelect信号とAck信号で、この例では、S
elect信号をステータスデータとして、またはAc
k信号をクロックとして構成されている。具体的にはス
テータスデータのビット幅を例えば4ビットと決めてお
き、それぞれのビットにステータスデータ情報を定義し
ておく。例えば、1ビット目は、DRAMの空き容量、
2ビット目はエンジンエラー、3ビット目はアンダーラ
ンエラー、4ビット目はオーバーランエラーというよう
に定義しておく。この4ビットを1ビットずつSele
ct信号にのせ、ホストコンピュータ1AはAck信号
の立ち上がりエッジでデータを受信していく。ホストコ
ンピュータ1Aは受信したシリアルデータを解析してプ
リンタ1Bのステータスを判別する。ステップ3Dのス
テータス受信の処理はこのようにして行う。
The first embodiment is used as means for the host computer 1A to check the status information of the printer 1B.
In this configuration, as shown in FIG. 8, a serial communication means is provided using a control signal line of a parallel interface. The control signal lines used are a Select signal and an Ack signal as shown in FIG.
select signal as status data or Ac
The k signal is configured as a clock. Specifically, the bit width of the status data is determined to be, for example, 4 bits, and status data information is defined for each bit. For example, the first bit is the free space of the DRAM,
The second bit is defined as an engine error, the third bit is defined as an underrun error, and the fourth bit is defined as an overrun error. These 4 bits are transferred one bit at a time
On the ct signal, the host computer 1A receives data at the rising edge of the Ack signal. The host computer 1A analyzes the received serial data and determines the status of the printer 1B. The status reception processing in step 3D is performed in this manner.

【0028】そして、判別結果が、もしエラーでなけれ
ば、さらに次のステップ3Fで未転送の印字データがあ
るかどうかを判別し、もし未転送データが存在するなら
ば、ステップ3Cに戻る。そして再びデータ転送を行
い、ステップ3Dのステータス受信を行い判別するとい
う処理を、未転送データがなくなるまで繰り返す。
If the result of the determination is not an error, it is further determined in the next step 3F whether or not there is untransferred print data. If there is untransferred data, the flow returns to step 3C. Then, the data transfer is performed again, and the process of receiving and determining the status in step 3D is repeated until there is no untransferred data.

【0029】また、もしエラーが発生したと判断した場
合は、ホストコンピュータ1Aは印字データの転送を中
止してステップ3Gのエラー処理で、エラーの内容をデ
ィスプレイに表示してユーザーに表示してユーザーに告
知する等の処理を行って終了する。
If it is determined that an error has occurred, the host computer 1A stops the transfer of the print data, and in the error processing of step 3G, displays the content of the error on the display to display to the user. And the process is terminated.

【0030】上述した処理内容をIEEE−P1284
規格のフェーズ遷移に注目すると図5のようなフローチ
ャートとなる。図3のステップ3C,3Dは図5の5B
に相当する。ステップ3Cのデータ転送ではホストコン
ピュータからプリンタにデータを転送するということな
ので、フェーズはステップ5BのようにForward
IdleとForwardフェーズを繰り返す。ま
た、ステップ3Dのステータス受信では、プリンタから
ホストコンピュータにデータを転送するということであ
るが、本実施形態1ではパラレルインターフェースの制
御信号線を用いてシリアル通信を行ってステータスデー
タの転送を行っているため、図4のステップ4Dに示す
ようなリバースフェーズへの移行を必要としない。
The above processing contents are described in IEEE-P1284.
Focusing on the standard phase transition, a flowchart as shown in FIG. 5 is obtained. Steps 3C and 3D in FIG. 3 correspond to 5B in FIG.
Is equivalent to Since the data transfer in step 3C involves transferring data from the host computer to the printer, the phase is set to Forward as in step 5B.
Repeat the Idle and Forward phases. In the status reception in step 3D, data is transferred from the printer to the host computer. In the first embodiment, status data is transferred by performing serial communication using the control signal line of the parallel interface. Therefore, it is not necessary to shift to the reverse phase as shown in step 4D of FIG.

【0031】つまり、印字データの転送も、ステータス
の転送も同一のフェーズで行うことができる。また、ス
テータスの転送で使用する制御信号線も、印字データの
転送時には使用しない信号線を使用するために、ステー
タスの受信中でも、印字データの転送を中断する必要は
ない。
That is, the transfer of the print data and the transfer of the status can be performed in the same phase. Further, since the control signal lines used in the status transfer use the signal lines not used in the transfer of the print data, it is not necessary to interrupt the transfer of the print data even during the reception of the status.

【0032】次に、本実施形態2としてのステータスデ
ータのチェック手段としてシリアル通信ではなく、図9
に示すようにパラレルインターフェースの制御信号線を
ステータス信号線として代用する場合を説明する。
Next, as a means for checking status data according to the second embodiment, serial communication is used instead of serial communication as shown in FIG.
The case where the control signal line of the parallel interface is substituted for the status signal line as shown in FIG.

【0033】図8では、Ack信号とSelect信号
をステータス伝達信号として構成している。この2本の
信号線を組み合わせることにより、例えば以下の表1に
示すようなステータス情報を表すことができる。
In FIG. 8, the Ack signal and the Select signal are configured as status transmission signals. By combining these two signal lines, for example, status information as shown in Table 1 below can be represented.

【0034】[0034]

【表1】 [Table 1]

【0035】READYというのは、プリンタにエラー
が発生していない状態で、印字可能であることを表すス
テータスである。このときの信号線はAck、Sele
ct共にHighレベルである。DRAMEMPTYは
DRAM1Mに格納されているデータ量が全容量の1/
5の状態のときに、Select信号のみがアクティブ
(Lowレベル)となるように設計されてあり、DRA
MFULLはDRAM1Mにデータが4/5まで格納さ
れたときにAck信号のみがアクティブ(Lowレベ
ル)となるように設計されてある。また、ERRORと
いうのはプリンタ1Bのエラー状態を表す信号で、紙詰
まりや、エンジンエラー等、プリンタ1Bのもつエラー
情報の内、一つでも発生した場合にアクティブ(Low
レベル)となるように設計されてある。
READY is a status indicating that printing is possible without an error occurring in the printer. The signal lines at this time are Ack, Cell
ct are High level. In DRAM EMPTY, the amount of data stored in the DRAM 1M is 1/100 of the total capacity.
In the state of 5, only the Select signal is designed to be active (Low level).
The MFULL is designed so that only the Ack signal becomes active (Low level) when data is stored up to 4/5 in the DRAM 1M. ERROR is a signal indicating an error state of the printer 1B, and is active (Low) when any one of error information of the printer 1B such as a paper jam or an engine error occurs.
Level).

【0036】ホストコンピュータ1Aは、まず、プリン
タ1Bが印字可能状態かを確認する必要がある。その為
にAck信号とSelect信号のレベルをチェックす
る。もしAck、Select信号が共にアクティブ
(Lowレベル)ならばエラーが発生していることを表
しているので、ホストコンピュータ1Aはエラーである
旨を表示する。プリンタ1Bにステータスレジスタを有
する場合は、ステータスレジスタを読み出して、エラー
の内容を解析し、ディスプレイに表示するなどしてエラ
ーの詳細をユーザーに告知する。
The host computer 1A first needs to confirm whether the printer 1B is ready for printing. For this purpose, the levels of the Ack signal and the Select signal are checked. If the Ack and Select signals are both active (Low level), it indicates that an error has occurred, and the host computer 1A indicates that an error has occurred. If the printer 1B has a status register, the status register is read, the contents of the error are analyzed, and details of the error are notified to the user by displaying them on a display or the like.

【0037】また、Ack、Select信号が非アク
ティブ(Highレベル)ならば、プリンタ1BはRE
DY、つまり、印字可能状態であることを表すので、印
字データの転送が行えるということである。ホストコン
ピュータ1Aは印字データの転送を開始したら、DRA
M1Mにデータが格納されていくので、DRAM1Mの
空き容量が減少する。そこで、ホストコンピュータ1A
はプリンタ1BのDRAM1Mの空き容量をチェックす
るために、Ack信号のレベルをチェックする。もし、
非アクティブ(Highレベル)ならば、まだDRAM
1Mに空き容量があることを表しているので、引き続き
転送すべきデータがあれば、転送を続行する。もし、ア
クティブ(Lowレベル)ならばDRAM1Mには空き
容量が残りわずかであるということなので、ホストコン
ピュータはデータの転送を一時中断する。
If the Ack and Select signals are inactive (High level), the printer 1B
DY, which indicates that the printer is in a printable state, means that print data can be transferred. When the host computer 1A starts transferring the print data, the DRA
Since data is stored in M1M, the free space of DRAM 1M decreases. Therefore, the host computer 1A
Checks the level of the Ack signal to check the free space of the DRAM 1M of the printer 1B. if,
If inactive (High level), still DRAM
Since there is free space in 1M, if there is data to be transferred continuously, the transfer is continued. If it is active (Low level), it means that the free space in the DRAM 1M is very small, and the host computer temporarily suspends the data transfer.

【0038】一方、プリンタ1Bは、印字機構1Lから
の印字データ要求に応じてDRAM1Mからデータを読
み出して印字機構1Lに送出する。DRAM1Mからデ
ータが読み出されるとDRAM1Mの空き容量が増加す
るので、Ack信号は再び非アクティブ(Highレベ
ル)となる。そしてDRAM1Mに格納されているデー
タ量が全容量の1/5になるとこ今度はSelect信
号がアクティブ(Lowレベル)となり、ホストコンピ
ュータ1AはSelect信号のアクティブ(Lowレ
ベル)になったことを確認した後、印字データの転送を
再開する。これらのサイクルを未転送データがなくなる
まで繰り返し行い、プリンタ1Bから紙面上に形成され
た印字結果を得る。
On the other hand, in response to a print data request from the printing mechanism 1L, the printer 1B reads data from the DRAM 1M and sends the data to the printing mechanism 1L. When data is read from the DRAM 1M, the free space of the DRAM 1M increases, so that the Ack signal becomes inactive again (High level). When the amount of data stored in the DRAM 1M becomes 1/5 of the total capacity, the Select signal becomes active (Low level), and the host computer 1A confirms that the Select signal becomes active (Low level). Thereafter, the transfer of the print data is restarted. These cycles are repeated until there is no untransferred data, and a print result formed on the paper is obtained from the printer 1B.

【0039】実施形態2では必要最小限のステータス情
報だけをホストコンピュータに伝達したい場合や、シリ
アル通信手段の回路の追加によるコストアップが問題と
なる場合に適している。
The second embodiment is suitable for transmitting only the minimum necessary status information to the host computer or for increasing the cost due to the addition of a serial communication circuit.

【0040】なお、本実施形態2では、シリアル通信手
段としてSelect信号とAck信号をデータとクロ
ックとして用いたが、これら信号線の組み合わせや、通
信方式などは限定されるものではない。
In the second embodiment, the Select signal and the Ack signal are used as the data and the clock as the serial communication means. However, the combination of these signal lines and the communication system are not limited.

【0041】[0041]

【発明の効果】本発明のプリンタインターフェースシス
テムは上記のような構成であるから、IEEE−P12
84規格に準拠したプリンタインターフェースシステム
において、主制御機器からプリンタにデータを転送する
フェーズ中に、制御信号を用いてプリンタから主制御機
器へのステータスを送出し、Select信号をステータスデ
ータとしAck信号をクロックとしてシリアル通信を行う
ことにより、印字データの転送を中断することなく、ま
た、フェーズ移行時の遅延時間による待ち時間も発生し
ないので、データの転送効率が向上し、アンダーランエ
ラーの発生を抑えることができる。
As described above, the printer interface system of the present invention has the above-described configuration, and thus the IEEE-P12
In a printer interface system conforming to the G.84 standard, during a phase in which data is transferred from the main control device to the printer, a status is transmitted from the printer to the main control device using a control signal, and a Select signal is sent to the status
The data transfer efficiency is improved by not interrupting the transfer of print data and generating no waiting time due to the delay time at the phase shift by performing serial communication using the Ack signal as the clock and the Ack signal as the clock. And the occurrence of underrun errors can be suppressed.

【0042】また、ステータス情報を多く持たない簡易
プリンタなどに用いることにより、ステータスデータを
シリアル転送する回路を必要とせず、容易にフェーズ移
行時の遅延時間による待ち時間の発生を防止することが
でき、データの転送効率が向上し、アンダーランエラー
の発生を抑えることができる。
Also, by using a simple printer or the like which does not have much status information, a circuit for serially transferring status data is not required, and it is possible to easily prevent the occurrence of a waiting time due to a delay time at the time of a phase shift. In addition, data transfer efficiency is improved, and occurrence of underrun errors can be suppressed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のプリンタインターフェースシステムの
実施形態1に基づくシステムブロック図である。
FIG. 1 is a system block diagram based on a first embodiment of a printer interface system of the present invention.

【図2】IEEE−P1284規格に基づくフェーズ移
行を説明する説明図である。
FIG. 2 is an explanatory diagram illustrating a phase shift based on the IEEE-P1284 standard.

【図3】実施形態1のプリンタインターフェースシステ
ムの処理内容を示したフローチャートである。
FIG. 3 is a flowchart illustrating processing contents of a printer interface system according to the first exemplary embodiment.

【図4】従来のインターフェースシステムにおけるIE
EE−P1284規格に基づくフェーズ移行を説明する
説明図である。
FIG. 4 shows an IE in a conventional interface system.
It is explanatory drawing explaining the phase shift based on EE-P1284 standard.

【図5】本発明にて使用されるIEEE−P1284規
格に基づくフェーズ移行を説明する説明図である。
FIG. 5 is an explanatory diagram illustrating a phase shift based on the IEEE-P1284 standard used in the present invention.

【図6】IEEE−P1284規格のリバースフェーズ
におけるタイミングを示す説明図である。
FIG. 6 is an explanatory diagram showing timing in a reverse phase of the IEEE-P1284 standard.

【図7】本発明の実施形態1におけるタイミングを示す
説明図である。
FIG. 7 is an explanatory diagram showing timing in the first embodiment of the present invention.

【図8】本発明の実施形態1における構成図である。FIG. 8 is a configuration diagram according to the first embodiment of the present invention.

【図9】本発明の実施形態2における構成図である。FIG. 9 is a configuration diagram according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1A ホストコンピュータ 1B プリンタ 1C CPU 1D ROM 1E RAM 1F 表示装置 1G 入力装置 1H パラレルインターフェース 1I CPU 1J ROM 1K RAM 1L 印字機構 1M DRAM 1N パラレルインターフェース 1A Host computer 1B Printer 1C CPU 1D ROM 1E RAM 1F Display device 1G Input device 1H Parallel interface 1I CPU 1J ROM 1K RAM 1L Printing mechanism 1M DRAM 1N Parallel interface

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 主制御機器とプリンタとの間に設けられ
るパラレルインターフェースに、前記主制御機器からプ
リンタにデータを送信するフェーズ中に、前記プリンタ
のステータスデータを制御信号を介してシリアル転送す
る処理手段を設け、前記処理手段はさらに、Select信号
を前記ステータスデータとしAck信号をクロックとして
シリアル通信を行いIEEE−P1284規格に準拠し
ていることを特徴とするプリンタインターフェースシス
テム。
1. A process of serially transferring status data of a printer via a control signal to a parallel interface provided between a main control device and a printer during a phase of transmitting data from the main control device to the printer. Means , wherein the processing means further comprises a Select signal
With the status data as the Ack signal as the clock
Performs serial communication and complies with the IEEE-P1284 standard.
A printer interface system.
【請求項2】 前記処理手段は、制御信号を介して主制
御機器に転送するステータスデータをシリアル転送では
なく、直接ステータス信号とし転送することを特徴とす
る請求項1記載のプリンタインターフェースシステム。
2. The printer interface system according to claim 1, wherein said processing means transfers status data to be transferred to a main control device via a control signal as a status signal directly instead of serially.
JP00915597A 1997-01-22 1997-01-22 Printer interface system Expired - Fee Related JP3335094B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00915597A JP3335094B2 (en) 1997-01-22 1997-01-22 Printer interface system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00915597A JP3335094B2 (en) 1997-01-22 1997-01-22 Printer interface system

Publications (2)

Publication Number Publication Date
JPH10207649A JPH10207649A (en) 1998-08-07
JP3335094B2 true JP3335094B2 (en) 2002-10-15

Family

ID=11712738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00915597A Expired - Fee Related JP3335094B2 (en) 1997-01-22 1997-01-22 Printer interface system

Country Status (1)

Country Link
JP (1) JP3335094B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3284464B2 (en) 1998-09-29 2002-05-20 セイコーエプソン株式会社 Page printer and page print system
GB2418036B (en) 2004-09-08 2007-10-31 Advanced Risc Mach Ltd Communication transaction control between independent domains of an integrated circuit

Also Published As

Publication number Publication date
JPH10207649A (en) 1998-08-07

Similar Documents

Publication Publication Date Title
US6434643B1 (en) Transmission of status information by a selected one of multiple transfer modes based on the cause for sending the status information
US6218969B1 (en) Universal serial bus to parallel bus signal converter and method of conversion
US5307462A (en) Switch for sharing a peripheral device
US9137395B2 (en) Image processing device and computer-readable storage medium for use in connection with USB data packets
JP2004157966A (en) End point memory control method and device, usb device, and storage medium
JP2002055936A (en) Usb device, and system and method for communication between usb devices
US7502134B2 (en) Network system and network interface card
US9239692B2 (en) Communication apparatus performing communication speed changing process, communication control method and storage medium
JP3335094B2 (en) Printer interface system
US6731395B1 (en) Network printer with watch dog timer
JP3347580B2 (en) Information processing device and storage medium
JP2016210035A (en) Communication device, control method, and program
JPH09269876A (en) Host base printer system and data transmission and reception method for it
JP2001338286A (en) Method and device for image processing
JP2658931B2 (en) Printer controller
JP3846089B2 (en) Interface device, control method thereof, and information recording medium
JP2001067193A (en) Printing system, printer and its controlling method
US20080158595A1 (en) Printing system and control method thereof
JP3071607U (en) Computer peripheral device and printer device
JP2005309511A (en) Information processor, status acquisition method and program
JP2707963B2 (en) Printing system
JPH0981334A (en) Information processor and its data transfer method
JP5365280B2 (en) Switch device, image forming apparatus, and switch control method
JP2002268940A (en) Image processor
JP2995420B2 (en) Network disconnection method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070802

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100802

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110802

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110802

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120802

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120802

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130802

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees