JPH0292571A - Printer serial interface system - Google Patents
Printer serial interface systemInfo
- Publication number
- JPH0292571A JPH0292571A JP63242474A JP24247488A JPH0292571A JP H0292571 A JPH0292571 A JP H0292571A JP 63242474 A JP63242474 A JP 63242474A JP 24247488 A JP24247488 A JP 24247488A JP H0292571 A JPH0292571 A JP H0292571A
- Authority
- JP
- Japan
- Prior art keywords
- printer
- computer
- serial
- interface
- parallel
- 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.)
- Granted
Links
- 230000005856 abnormality Effects 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 abstract description 12
- 238000012545 processing Methods 0.000 abstract description 5
- 230000005540 biological transmission Effects 0.000 description 29
- 230000007704 transition Effects 0.000 description 15
- 238000000034 method Methods 0.000 description 13
- 238000001514 detection method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 12
- 230000002159 abnormal effect Effects 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000006866 deterioration Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 102100036167 CXXC-type zinc finger protein 5 Human genes 0.000 description 1
- 101150007667 FPS2 gene Proteins 0.000 description 1
- 101000947154 Homo sapiens CXXC-type zinc finger protein 5 Proteins 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
プリンタと計算機間を接続するプリンタインタフェース
として高速シリアルインタフェースを使用する場合のプ
リンタシリアルインタフェース方式に関し、
エラー処理が可能な高速シリアルインタフェースとする
ことによりプリンタと計算機間の接続距離の伸長を図り
、かつシステムとして動作保障することを目的とし、
プリンタと計算機間を接続するプリンタインタフェース
として高速シリアルインタフェースを使用する場合のプ
リンタシリアルインタフェース方式であって、前記高速
シリアルインタフェースは、前記高速シリアルインタフ
ェース上でエラーが発生したときに、前記エラーを前記
プリンタの異常として扱わずに前記プリンタの電源オフ
として前記計算機に通知し、前記プリンタに対してはプ
リンタリセットの指示を行い、前記エラー検出後の一定
時間が経過した後にエラー状態から復旧したとき、前記
プリンタの電源が再投入されたとして前記計算機に対し
て通知し、前記計算機は前記プリンタの状態再設定を行
うように構成する。[Detailed Description of the Invention] [Summary] Regarding a printer serial interface method when a high-speed serial interface is used as a printer interface to connect a printer and a computer, the present invention provides a high-speed serial interface that can handle errors so that the printer and computer can A printer serial interface method in which a high-speed serial interface is used as a printer interface to connect a printer and a computer, with the aim of extending the connection distance between the printer and the computer and ensuring operation as a system. When an error occurs on the high-speed serial interface, the computer notifies the computer that the printer is powered off without treating the error as an abnormality in the printer, and instructs the printer to reset the printer. , when the error state is recovered after a certain period of time has elapsed after the error detection, the computer is notified that the power of the printer has been turned on again, and the computer resets the status of the printer. Configure.
プリンタと計算機間を接続するプリンタインタフェース
として高速シリアルインタフェースを使用する場合のプ
リンタシリアルインタフェース方式に関する。The present invention relates to a printer serial interface method when a high-speed serial interface is used as a printer interface for connecting a printer and a computer.
近年、パーソナルコンピュータ(パソコン)等の計算機
分野では小型、軽量化が進展している。In recent years, the field of computers such as personal computers (PCs) has become smaller and lighter.
例えば、ラップトツブ型パソコンは机上据置型パソコン
と同等の機能を有し、可搬性があり、省スペースである
という特徴を有している。一方、プリンタ装置は小型の
ものもあるが、性能、生産コスト等の兼ね合いから比較
的大きなものにならざるを得ない。For example, a laptop computer has the same functions as a desk-top personal computer, is portable, and is space-saving. On the other hand, although some printer devices are small, they are forced to be relatively large due to performance, production cost, and other considerations.
この場合にパソコンとプリンタとの接続距離が技術的に
制約される接続方式では、パソコン本体が省スペース型
であっても大きなプリンタを側に配置することになりス
ペース的に問題である。そこで、プリンタを離れた場所
に配置するため接続距離を伸長する検討がなされている
が、後述する種々の問題を生じることになる。In this case, with a connection method in which the connection distance between the personal computer and the printer is technically limited, even if the main body of the personal computer is a space-saving type, a large printer must be placed on the side, which poses a problem in terms of space. Therefore, attempts have been made to extend the connection distance in order to locate the printer at a remote location, but this will result in various problems as will be described later.
〔従来の技術及び発明が解決しようとする課題〕従来、
計算機とプリンタ間のプリンタインタフェースの接続方
式は、R3−232Cやセントロニクス社にて開発され
たセントロニクスインタフェース準拠が一般的である。[Problems to be solved by conventional techniques and inventions] Conventionally,
The printer interface connection method between a computer and a printer is generally based on R3-232C or the Centronics interface developed by Centronics Corporation.
例えば、セントロニクスインタフェース準拠はパソコン
とプリンタ間を8ビット並列通信を用いるパラレルイン
タフェースである。For example, the Centronics interface is a parallel interface that uses 8-bit parallel communication between a personal computer and a printer.
しかしながら、この方式はこれら2地点間を電気的にT
TLで接続を行っているため、これらの間の接続距離を
延長すると2地点間に電位差を生じ、インタフェースと
して正常に動作できないという問題を発生する。従って
、2地点間の電位差を発生させないように接続距離を制
限する必要があった。However, this method requires an electrical T between these two points.
Since the connection is made by TL, if the connection distance between them is extended, a potential difference will be generated between the two points, causing a problem that the interface cannot operate normally. Therefore, it was necessary to limit the connection distance so as not to generate a potential difference between two points.
また、セントロニクスインタフェース準拠の8ビツトパ
ラレルインタフエースは、伝送の過程で何らかのエラー
が発生した場合、このエラーを計算機に通知する手段を
持たない。そのため、シリアルインタフェースにしたと
き、シリアルインタフェース上でエラーが発生し検出し
てもソフトウェアに通知できないという問題がある。Furthermore, the 8-bit parallel interface based on the Centronics interface does not have a means to notify the computer of any error that occurs during the transmission process. Therefore, when using a serial interface, there is a problem in that even if an error occurs and is detected on the serial interface, it cannot be notified to the software.
一方、プリンタインタフェース以外の通信の分野におい
て、高速かつ長距離の伝送が技術的に可能となっている
。そこで、この通信分野で使用されるシリアルインタフ
ェース技術をプリンタインタフェースに応用することが
考えられるが、単純にシリアルインタフェースに置き換
えるだけでは性能の低下やソフトウェアの変更が必要に
なる。On the other hand, high-speed and long-distance transmission has become technically possible in communication fields other than printer interfaces. Therefore, it is conceivable to apply the serial interface technology used in the communication field to the printer interface, but simply replacing it with a serial interface would result in a decrease in performance and the need to change the software.
さらに、上述の通信分野のプロトコルを用いて従来から
存在するソフトウェアの変更は行わずにシステムとして
の動作を保障することは実施上不可能である。そこで、
プリンタ用のシリアルインタフェースの開発が必要にな
ってくる。Furthermore, it is practically impossible to guarantee the operation of the system using the above-mentioned protocols in the communication field without changing the existing software. Therefore,
It becomes necessary to develop a serial interface for printers.
本発明の目的は、パソコンとプリンタ間の接続方式をエ
ラー処理が可能な高速シリアルインタフェースとするこ
とによりこれらの間の接続距離の伸長を図り、かつシス
テムとして動作保障することにある。An object of the present invention is to extend the connection distance between a personal computer and a printer by using a high-speed serial interface that can handle errors, and to ensure operation as a system.
〔課題を解決するための手段及び作用〕本発明は、プリ
ンタと計算機間を接続するプリンタインタフェースとし
て高速シリアルインタフェースを使用する場合のプリン
タシリアルインタフェース方式であって、前記高速シリ
アルインタフェースは、前記高速シリアルインタフェー
ス上でエラーが発生したときに、前記エラーを前記プリ
ンタの異常として扱わずに前記プリンタの電源オフとし
て前記計算機に通知し、前記プリンタに対してはプリン
タリセットの指示を行い、前記エラー検出後の一定時間
が経過した後にエラー状態から復旧したとき、前記プリ
ンタの電源が再投入されたとして前記計算機に対して通
知し、前記計算機は前記プリンタの状態再設定を行うよ
うにしたことを特徴とする。[Means and effects for solving the problems] The present invention provides a printer serial interface system when a high-speed serial interface is used as a printer interface for connecting a printer and a computer, and the high-speed serial interface When an error occurs on the interface, the computer is notified that the printer is powered off without treating the error as an abnormality in the printer, and the printer is instructed to reset the printer, and after the error is detected, When the printer recovers from the error state after a certain period of time has elapsed, the computer is notified that the power of the printer has been turned on again, and the computer resets the status of the printer. do.
本発明の高速シリアルインタフェースを決定する上で守
るべき条件として、
■ソフトウェアインタフェースを変更しない、■性能低
下とならない、
■システムとして動作保障できる、
■低価格にて構成できる、等である。Conditions to be observed in determining the high-speed serial interface of the present invention include: (1) the software interface is not changed; (2) there is no performance deterioration; (2) operation can be guaranteed as a system; (2) it can be constructed at a low cost.
本発明は以上の4点を守ったプリンタシリアルインタフ
ェース・プロトコルを定義することになる。The present invention defines a printer serial interface protocol that adheres to the above four points.
第1図は、本発明のホスト計算機とプリンタ間の概略接
続構成図である。図において、HSTはホスト計算機、
PRTはプリンタ、PSCH,PSCPはシリアル−パ
ラレル変換手段、D/R,R/DはR5−422ドライ
バ/レシーバ、dν/rνもドライバ/レシーバ、CL
Kはクロック発生手段である。また、細線SIFはシリ
アルインタフェース、太線PIFはパラレルインタフェ
ースである。FIG. 1 is a schematic connection configuration diagram between a host computer and a printer according to the present invention. In the figure, HST is the host computer,
PRT is a printer, PSCH, PSCP are serial-parallel conversion means, D/R, R/D are R5-422 driver/receivers, dν/rν are also driver/receivers, CL
K is a clock generation means. Further, the thin line SIF is a serial interface, and the thick line PIF is a parallel interface.
図に示すように、本発明は従来用いられるプリンタイン
タフェースPIFに、計算機側、プリンタ側にそれぞれ
パラレル−シリアル信号変換回路PSCH,PSCPを
有する装置IFPSI及びIFPS2を付加し、これら
の間をシリアルインタフェースSIFで接続する。ホス
ト計算機側から発行される一連のコマンドは計算機側の
装置IFPSIにより単純にパラレル−シリアル変換さ
れ、プリンタ側の装置IFPS2によりシリアル−パラ
レルに再度変換されプリンタに通知される。As shown in the figure, the present invention adds devices IFPSI and IFPS2 having parallel-to-serial signal conversion circuits PSCH and PSCP on the computer side and the printer side, respectively, to the conventional printer interface PIF, and connects them with a serial interface SIF. Connect with. A series of commands issued from the host computer side are simply converted from parallel to serial by the device IFPSI on the computer side, converted again from serial to parallel by the device IFPS2 on the printer side, and notified to the printer.
一方、プリンタPRTにて発生する各種状態については
プリンタ側の装置IFPS2にてパラレル−シリアル変
換され、計算機側の装置IFPSIにてシリアル−パラ
レル変換され計算機に通知される。On the other hand, various states occurring in the printer PRT are subjected to parallel-to-serial conversion by the printer-side device IFPS2, serial-to-parallel conversion by the computer-side device IFPSI, and are notified to the computer.
第2図はシリアル−パラレル変換手段IFPSIをホス
ト計算機H5T内に組み込んだ接続構成図である。この
接続構成例の動作は第1図とほぼ同様であるため省略す
る。FIG. 2 is a connection configuration diagram in which the serial-parallel conversion means IFPSI is incorporated into the host computer H5T. The operation of this connection configuration example is almost the same as that shown in FIG. 1, so a description thereof will be omitted.
ところで前述のように、セントロニクスインクフェース
準拠のパラレルインタフェースは、伝送の過程で何らか
の異常が発生した場合、これらの異常を計算機に通知す
る手段を持たない。そのため、単にこれらの間にシリア
ルインタフェースを介した場合にシリアルインタフェー
ス上でエラーが発生し検出してもソフトウェアに通知で
きないという問題がある。By the way, as described above, the parallel interface based on the Centronics interface does not have a means to notify the computer of any abnormalities that occur during the transmission process. Therefore, if a serial interface is simply used between these, there is a problem in that even if an error occurs on the serial interface and is detected, it cannot be notified to the software.
上記の従来の問題に対して本発明では基本的に次のよう
にして解決している。即ち、計算機側のシリアル−パラ
レル変換回路IFPSIで受信データのエラーを検出し
た場合、1秒間、計算機に対してプリンタPRTの電源
オフを通知する。この間、送信データSDを通してプリ
ンタリセットを強制発行する。次にプリンタ側で受信デ
ータエラーを検出した場合も、プリンタリセットを発行
して計算機に対してプリンタ電源オフを通知する。これ
らの動作により、あたかもプリンタが復旧したように見
え、ソフトウェアから再印刷可能な状態にすることが可
能である。The present invention basically solves the above-mentioned conventional problems as follows. That is, when the serial-parallel conversion circuit IFPSI on the computer side detects an error in the received data, it notifies the computer for one second to turn off the power of the printer PRT. During this time, a printer reset is forcibly issued through the transmission data SD. Next, when a received data error is detected on the printer side, a printer reset is issued to notify the computer that the printer is powered off. Through these operations, it appears as if the printer has been restored, and it is possible to make it possible to reprint from the software.
第3図(a) 、 (b) 、 (c)は本発明で使用
するシリアル伝送手順のフレーム構成である。(a)
、 (b)はホスト側からデータを転送する場合のフレ
ーム構成、(c)はプリンタ側からデータ(制御信号)
を転送する場合のフレーム構成である。FIGS. 3(a), 3(b), and 3(c) show frame structures of the serial transmission procedure used in the present invention. (a)
, (b) is the frame structure when transferring data from the host side, (c) is the data (control signal) from the printer side
This is the frame structure when transferring.
(a) 、 (b) 、 (clにおいて、Hはオン(
1) 、Lはオフ(0)であり、パリティビットは奇数
パリティである。ビット構成は12ビツトであり、ビッ
ト番号O〜11に対応して”5tart”(str)、
DATA” (DT) 、 ”DSTB″”5top’
(stp) 、 ”parity’ (pty) +
”extend” (ext)等の信号が図示のよう
に割り当られる。また、同期方式は調歩同期である。(a), (b), (In cl, H is on (
1), L is off (0), and the parity bit is odd parity. The bit configuration is 12 bits, and "5tart" (str) corresponds to bit numbers O to 11.
DATA" (DT), "DSTB""5top'
(stp), “parity” (pty) +
Signals such as "extend" (ext) are assigned as shown. Furthermore, the synchronization method is start-stop synchronization.
次にこれらの信号の機能について説明する。これらの信
号にはセントロニクスインタフェース準拠の信号も含ま
れる。Next, the functions of these signals will be explained. These signals also include signals compliant with the Centronics interface.
信号DSTBはデータDATAI〜DATABをプリン
タ側で読み込むためのストローブ信号である。ホスト側
はDSTBオン検出でSD信号vA(第1図に示すよう
にホストからプリンタに送る平衡伝送のシリアルデータ
線)を経てデータを送信する。この際、DATAI〜D
ATABを同時に送信する。DSTBオフは検出しない
。一方、プリンタ側はDSTBオンを受信した場合、D
ATAI〜DATA8をアクティブにしてスキューを保
障して(1μs)プリンタに対してDSTBをオンにし
た後、lμs以上経過後、DSTBをオフにする。Signal DSTB is a strobe signal for reading data DATAI to DATAB on the printer side. The host side transmits data via the SD signal vA (balanced transmission serial data line sent from the host to the printer as shown in FIG. 1) upon detection of DSTB on. At this time, DATAI~D
Send ATAB at the same time. DSTB off is not detected. On the other hand, when the printer side receives DSTB ON, D
After ATAI to DATA8 are activated to ensure skew (1 μs) and DSTB is turned on for the printer, DSTB is turned off after more than 1 μs has elapsed.
信号INPRM及びEXPRMはプリンタをイニシャル
状態にする信号である。ホスト側はオン、オフの検出で
SD信号線を経てデータを送信する。プリンタ側はオン
検出、オフ検出のデータ受信に応じてプリンタに対して
INPRM信号(EXPRM )をオン、オフする。Signals INPRM and EXPRM are signals that bring the printer into an initial state. The host side sends data via the SD signal line upon detection of on/off. The printer side turns on and off the INPRM signal (EXPRM) to the printer in response to reception of on-detection and off-detection data.
信号ACKNLGはDSTB信号に対する応答及び要求
信号である。プリンタ側は八CKNLGのオン検出でR
D(第1図に示すようにプリンタからホストに送る平衡
伝送のシリアルデータ線)を経てデータを送信する。A
CKNLGオフは検出しない。ホスト側はACKNLG
オンを受信した場合、ホストに対してACKNLG信号
を1μs以上オンにした後オフする。Signal ACKNLG is a response and request signal to the DSTB signal. The printer side turns R when 8CKNLG is turned on.
The data is transmitted via line D (balanced serial data line sent from the printer to the host as shown in FIG. 1). A
CKNLG off is not detected. ACKNLG on host side
If it receives an ACKNLG signal, it turns on the ACKNLG signal to the host for 1 μs or more and then turns it off.
信号FAULTは、プリンタ側はFAULTのオン、オ
フ検出で、信号線RDを経てデータを送信する。この際
、プリンタの状態を示すRINF1〜3も送信する。ホ
スト側はFAULTオンの検出を受信後RINF1〜3
を確定後、500nsec以上経過後、FAtlLT信
号をオンにする。The printer side detects whether FAULT is on or off and transmits data through the signal line RD. At this time, RINF1 to RINF3 indicating the status of the printer are also transmitted. After receiving the detection of FAULT ON, the host side changes RINF1 to 3.
After determining , the FAtlLT signal is turned on after 500 nsec or more has elapsed.
信号BUSY、 PE、、5LCTSESIGはすべて
同一の処理方法である。プリンタ側はオン、オフの検出
でRDを経てデータを送信する。ホスト側はオン、オフ
検出のデータ受信に応じて各信号線を変化させる。Signals BUSY, PE, .5LCTSESIG are all processed in the same way. The printer side sends data via the RD upon detection of on/off. The host side changes each signal line in response to reception of on/off detection data.
RINFについてのスキュー保障はしない。There is no skew guarantee for RINF.
次にシリアル伝送路におけるエラー処理について説明す
る。Next, error handling in the serial transmission path will be explained.
セントロニクスインタフェース上でのエラー処理は行わ
ない。本発明のエラー処理の対象はシリアル伝送路上で
のエラーのみである。そしてエラ一対象となるのは、パ
リティ−エラー、フレーミングエラー、ブレーク検出で
ある。No error handling is performed on the Centronics interface. The object of error processing according to the present invention is only errors on the serial transmission path. The errors targeted are parity errors, framing errors, and break detection.
ホスト側受信データエラー検出の場合は、データ受信エ
ラーを検出したとき、ホストに対してプリンタ電源オフ
(PONオフ)をIs以上通知する。In the case of host-side reception data error detection, when a data reception error is detected, the host is notified of printer power off (PON off) for more than Is.
このプリンタ電源オフの通知中は受信データを受付けな
い。1秒(S)経過後の正常データ受信までプリンタの
電源オフを通知する。さらにプリンタ側に対してINP
PMNPP光行しLooms後、INPRMオフを発行
する。Received data will not be accepted during this printer power off notification. Notifies printer power off until normal data is received after 1 second (S) has elapsed. Furthermore, INP to the printer side
After executing PMNPP and Looms, issue INPRM OFF.
プリンタ側受信データエラー検出の場合は、データ受信
エラーを検出したとき、プリンタに対してTNPPM信
号を100m5オンにする。この時間中に受信したデー
タはキャンセルされる。INPPM信号オフ後のデータ
は受は付ける。また、130間、10m5間隔のデータ
送信を中止する。その他、プリンタ側でエラーを検出し
たときはLEDを点灯する。In the case of printer-side reception data error detection, when a data reception error is detected, the TNPPM signal is turned on for 100m5 to the printer. Data received during this time will be cancelled. Data is accepted after the INPPM signal is turned off. Also, data transmission at intervals of 10m5 for 130 minutes is stopped. In addition, the LED lights up when an error is detected on the printer side.
このLEDは外部からの電源投入(リセット)またはエ
ラー検出is経過後、何らかの正常データ受信により消
灯する。This LED turns off when power is turned on from the outside (reset) or after an error detection is received or when some normal data is received.
第4図はプリンタ側動作フローチャート、第5図(al
、 (b)はプリンタ側状態遷移図、第6図はホスト側
動作フローチャート、第7図(al、 (b)はホスト
側状態遷移図である。Figure 4 is an operation flowchart on the printer side, Figure 5 (al
, (b) is a state transition diagram on the printer side, FIG. 6 is an operation flowchart on the host side, and FIG. 7 (al, (b) is a state transition diagram on the host side.
第4図及び第5図を参照しつつプリンタ側の動作と状態
遷移を説明する。第5図において(alは送信系、(b
)は受信系である。The operation and state transition on the printer side will be explained with reference to FIGS. 4 and 5. In FIG. 5, (al is the transmission system, (b
) is the receiving system.
第4図において、プリンタのリセット状態(1)からプ
リンタの電源が投入されると、1秒タイマの起動と送信
、受信の禁止がされ(2)、送信処理では10m5タイ
マの起動と信号変化の監視がされ(3)、送信要因が発
生し、データ送信を開始する(4)。一方、受信処理で
は受信データ待ちとなり(5)、正常受信の場合は受信
データに対応した信号を変化しく6)、異常受信の場合
はプリンタリセット(INPPM)を発行処理しく7)
、処理を完了する。In Figure 4, when the printer is powered on from the printer's reset state (1), a 1-second timer is activated and transmission and reception are prohibited (2), and in the transmission process, the 10m5 timer is activated and the signal changes. Monitoring is performed (3), a transmission factor occurs, and data transmission is started (4). On the other hand, in the reception process, the process waits for the received data (5), and if the reception is normal, the signal corresponding to the received data is changed 6), and if the reception is abnormal, the printer reset (INPPM) is issued 7)
, complete the process.
第5図の送信系(a)において、初期状態としてはリセ
ット状Q (1)にある。プリンタの電源が投入(po
w、on)されるとりセント状態から1秒タイマ起動で
送信ディスイネーブル状態(2)に入る。この状態では
プリンタ側シリアル−パラレル変換は動作しない。1秒
タイマがタイムアウト(lsec、 timeout)
になるとアイドル状態(3)になる。この状態では(3
)はその内部の10m秒タイマを起動しており10m秒
のタイムアウト(10ms、time out)が発生
するとその時のプリンタの信号状態を送信しくTx)、
送信が完了する(Tx end)とアイドル状態(3)
に戻る。In the transmission system (a) of FIG. 5, the initial state is in the reset state Q (1). The printer is powered on (po
When the 1-second timer is activated, the transmission disable state (2) is entered from the sent state (w, on). In this state, serial-to-parallel conversion on the printer side does not operate. 1 second timer times out (lsec, timeout)
When this happens, it enters the idle state (3). In this state (3
) starts its internal 10ms timer, and when a 10ms timeout (10ms, time out) occurs, it sends the signal status of the printer at that time (Tx),
Transmission complete (Tx end) and idle state (3)
Return to
これに対して(3)において10m秒タイムアウトが発
生する前にプリンタインタフェースの信号(*ACKN
LG、 *FAULT 、 BUSY、 PH,5LC
T)が変化すると(ch)、(4)からその変化したと
きのプリンタインタフェースの信号状態を(3)に送信
する。送信が完了すると前記のようなアイドル状態に戻
る。この際10m秒タイマをリセットし、再度1011
1秒タイマを起動する。On the other hand, in (3), before the 10ms timeout occurs, the printer interface signal (*ACKN
LG, *FAULT, BUSY, PH,5LC
When T) changes (ch), the signal state of the printer interface at the time of the change is transmitted from (4) to (3). When the transmission is completed, the device returns to the idle state as described above. At this time, reset the 10ms timer and repeat 1011.
Start a 1 second timer.
それぞれの動作中にプリンタの電源がオフ(pow。The printer is powered off (pow) during each operation.
off)になると、すべてリセット状態に遷移する。off), all transition to the reset state.
このリセット状態においては何も実行しない。Nothing is executed in this reset state.
第5図の受信系fb)において、初期状態は送信系と同
様にリセット状態(1)にある。プリンタの電源が投入
される(poh、on)ことによりリセット状態から受
信ディスイネーブルの状態となり、送信系で起動した1
秒タイマのタイムアウト発生まで受信が停止する(2)
。即ち、この受信停止状態のときにデータが到達しても
そのデータを無視する。The receiving system fb) in FIG. 5 is initially in the reset state (1), similar to the transmitting system. When the power of the printer is turned on (poh, on), it changes from the reset state to the reception disabled state, and the 1 activated in the transmission system
Reception stops until the second timer times out (2)
. That is, even if data arrives during this reception stop state, the data is ignored.
タイムアウトが発生すると、受信可能な状態(3)に遷
移する。この状態で正常なデータを受信すると、その受
信データ(data rev)に従ってプリンタに対す
る各種の信号(*DSTB、 *INPRM、* EX
PRM、DATAI〜DATAB )を制御する(4)
。この制御が終了すると次のデータ受信が可能になる。When a timeout occurs, a transition is made to a state (3) in which reception is possible. When normal data is received in this state, various signals (*DSTB, *INPRM, *EX) are sent to the printer according to the received data (data rev).
PRM, DATAI~DATAB) (4)
. When this control is completed, the next data reception becomes possible.
しかしながら、受信したデータにエラーがあった場合は
(Rx error)、(5)からプリンタに対して*
INPPM信号を制御してプリンタをイニシャル状態に
し、1秒タイマを起動し受信不可能状態に遷移する。こ
の1秒タイマのタイムアウト(Is timeou t
)によりまた受信可能な状態に遷移する。However, if there is an error in the received data (Rx error), a *
The INPPM signal is controlled to put the printer in the initial state, start a one-second timer, and transition to the unreceivable state. Is timeout of this one second timer
) to transition to a state where it can receive data again.
第6図はホスト側の動作フローチャート、第7図fat
、 (b)はホスト側の状態遷移を説明する図である。Figure 6 is an operation flowchart on the host side, Figure 7 is a fat
, (b) is a diagram illustrating state transition on the host side.
第7図の(a)は送信系、(b)は受信系である。FIG. 7(a) shows a transmitting system, and FIG. 7(b) shows a receiving system.
第6図において、計算機のリセット状態から(1)、本
体の電源が投入され、送信処理では送信処理の待ち状態
となり(2)、送信要因を発生し、データ送信を開始す
る(3)。一方、受信処理では受信データ待ちで32m
5ecタイマを起動しく4)、正常受信ではプリンタ電
源投入と各種信号の処理がされ(5)、32m5タイム
アウトではプリンタ電源をオフしく6)、異常受信のと
きは受信を禁止し、ISタイマを起動し、プリンタ電源
をオフし、INFRM信号の送信要求をする(7)。In FIG. 6, from the reset state of the computer (1), the main unit is powered on, enters a waiting state for transmission processing (2), generates a transmission factor, and starts data transmission (3). On the other hand, in reception processing, waiting for received data is 32m.
Activate the 5ec timer 4), turn on the printer power and process various signals for normal reception (5), turn off the printer power for 32m5 timeout 6), prohibit reception and start the IS timer for abnormal reception. Then, the printer power is turned off and an INFRM signal transmission request is made (7).
第7図の送信系(alにおいて、ホスト側シリアル−パ
ラレル変換装置では、電源が投入され、リセット状態か
らすぐにアイドル状g(1)に遷移する。In the transmission system (al) of FIG. 7, the host side serial-parallel converter is powered on and immediately transitions from the reset state to the idle state g(1).
ここでホストが制御する各種のプリンタ信号(*DST
B、*INPRM 、*EXPRM )を監視して変化
が発生すると(ch)、その時の変化が* DSTB信
号であるとDATAI〜DATABと共にシリアル化し
て送信する(2)。また、*INPRM 、 *EXP
RM信号であった場合はこれらの状態を送信する。送信
が完了する(trsend)とアイドル状態に遷移する
。Here, various printer signals (*DST
B, *INPRM, *EXPRM) and when a change occurs (ch), if the change at that time is a *DSTB signal, it is serialized and transmitted together with DATAI to DATAB (2). Also, *INPRM, *EXP
If it is an RM signal, these states are transmitted. When transmission is completed (trsend), it transitions to an idle state.
このアイドル状態にいる時に受信系でエラーが発生した
場合(RX 6rror)、(3)から* INPRM
信号が変化したとして自動的に* INPRM信号のオ
ン/オフを送信する。この送信が完了する(4)とアイ
ドル状態に遷移する。If an error occurs in the receiving system while in this idle state (RX 6rror), from (3) * INPRM
Automatically transmits * INPRM signal on/off as the signal changes. When this transmission is completed (4), it transitions to an idle state.
第7図(b)において、電源が投入されリセットが解除
されるとプリンタの電源が投入されていないとして内部
に持つプリンタ電源フラグをオフにする。この状態から
直ちにアイドル状態(1)となり受信データ待ちとなる
。この状態で正常データを受信するとそのデータに対応
した信号状態をセットしく2)、アイドル状態に戻る。In FIG. 7(b), when the power is turned on and the reset is released, the internal printer power flag is turned off, assuming that the printer is not powered on. Immediately from this state, the device enters the idle state (1) and waits for received data. When normal data is received in this state, the signal state corresponding to the data is set (2) and the device returns to the idle state.
この際、プリンタの電源が投入されたと判断し、32m
秒タイマを起動してさらに受信データが来ることを待つ
。プリンタ側からは正常な状態であれば10m秒間隔で
何らかの状態を送信して来るので、32m秒のタイムア
ウトが発生する可能性はないが、プリンタの電源がオフ
になったり、ホスト側から送信したデータがプリンタ側
で異常となった場合プリンタ側からの送信データが最低
1秒は存在しないため、32m秒タイマのタイムアウト
が発生する(time out32ms)。タイムアウ
トが発生したことにより、プリンタの電源がオフになっ
たと判断しく3)、プリンタ電源フラグをオフにしてア
イドル状!IEfilに遷移する。At this time, it is determined that the printer's power is turned on, and the 32m
Starts the second timer and waits for further received data. If the printer is in normal condition, it will send some status information at 10ms intervals, so there is no possibility of a 32ms timeout occurring, but if the printer is turned off or sent from the host side. If the data becomes abnormal on the printer side, the 32 ms timer times out (time out 32 ms) because there is no data sent from the printer side for at least 1 second. Because a timeout occurred, it was assumed that the printer was turned off.3) The printer power flag was turned off and the printer was in an idle state! Transition to IEfil.
また、エラーデータ(Rx error)を受信した場
合、1秒間の受信不許可の状態に遷移しく4)、ホスト
に対してプリンタ電源がオフになったように見せる。Furthermore, when error data (Rx error) is received, the printer changes to a state in which reception is not permitted for one second (4), making it appear to the host that the printer power is turned off.
さらに前記の送信系に対して受信エラーを通知する。1
秒経過後アイドル状態に遷移して受信データ待ちになる
。Furthermore, it notifies the transmission system of the reception error. 1
After seconds have elapsed, it transitions to an idle state and waits for received data.
第8図+al、(bl、(C1はインタフェース信号状
態説明図である。FIG. 8 +al, (bl, (C1 is an explanatory diagram of the interface signal state.
図において、H5Tはホスト計算機、IFPSIはホス
ト側パラレル−シリアル変換装置、IFPS2はプリン
タ側パラレル−シリアル変換装置、PRTはプリンタで
ある。In the figure, H5T is a host computer, IFPSI is a parallel-to-serial converter on the host side, IFPS2 is a parallel-to-serial converter on the printer side, and PRT is a printer.
また、P+5V信号とはプリンタ装置で使用している電
源の+5vである。この電源をパソコン側で確認するこ
とでプリンタの電源が投入されていると判断することが
可能である。Further, the P+5V signal is +5V of the power supply used in the printer device. By checking this power on the computer side, it is possible to determine that the printer is powered on.
(alは正常な場合のホストに対するP +5V信号の
処理であり、プリンタ側からlQmsec間隔でステー
タスが送信されと、ホスト側で正常受信され、ステータ
スに応じた信号変化が計算機に送出される。(al is the processing of the P +5V signal to the host in the normal case; when the status is sent from the printer side at an interval of 1Qmsec, it is normally received by the host side, and a signal change according to the status is sent to the computer.
(blは既に電源が投入されているときにプリンタ側で
受信エラーが発生した場合であり、プリンタ側のインタ
フェース[FPS2でエラーを受信すると* INPP
M信号をオン、オフしプリンタをリセフトする。(bl is a case where a reception error occurs on the printer side while the power is already turned on, and when an error is received on the printer side interface [FPS2 * INPP
Turn the M signal on and off to reset the printer.
(C)はホスト側で受信エラーが発生した場合であり、
ホスト側インタフェースIFPSIでエラーを受信する
とP +5Vをオフし、1秒間ステータスの受信を無視
する。(C) is a case where a reception error occurs on the host side,
When the host side interface IFPSI receives an error, it turns off P +5V and ignores the status reception for 1 second.
以上説明したように本発明ではプリンタ側、ホスト側ど
ちらかでエラーを検出した際、プリンタに対してINP
PM信号をオンにし、ホスト側に対してはプリンタ側オ
フを通知する。最終的には正常データの受信により電源
オン状態に復旧する。As explained above, in the present invention, when an error is detected on either the printer side or the host side, the INP
The PM signal is turned on and the host side is notified that the printer side is off. Eventually, the power is restored to the power-on state by receiving normal data.
また、ソフトウェアの動作については、まず、既存のソ
フトウェアに対して互換性を持たせる必要がある。従来
のソフトウェアはプリンタが異常状態にならないと予め
設定していた内容を再設定することができない。本発明
ではこの異常状態をプリンタ電源オフという形でソフト
ウェアに通知し、復旧した場合はプリンタ電源オンを通
知することによりソフトウェアはソフトウェアが保持し
ている状態値を再設定する。このように−時的にエラー
が発生してもソフトウェアにプリンタが異常であること
を通知できる。これはプリンタの使用者に通知すること
が可能となる。また、今まで使用していた状態で再印字
することが可能になる6〔発明の効果〕
以上説明したように、本発明の高速シリアルインタフェ
ースを使用することによる効果として、+11 ソフ
トウェアインタフェースが変更にならないため、従来か
らあるソフトウェアの動作が可能である。Furthermore, regarding the operation of the software, it is first necessary to make it compatible with existing software. Conventional software cannot reset the previously set contents unless the printer goes into an abnormal state. In the present invention, this abnormal state is notified to the software in the form of turning off the printer power, and when recovery occurs, the software resets the status value held by the software by notifying the printer power on. In this way, even if an error occurs from time to time, the software can be notified that the printer is abnormal. This allows the printer user to be notified. In addition, it becomes possible to reprint in the state that was previously used.6 [Effects of the Invention] As explained above, as an effect of using the high-speed serial interface of the present invention, there are +11 changes in the software interface. Therefore, conventional software can operate.
(2)性能の低下を生じない。シリアルインタフェース
に対しても高速な転送速度にするため、プリンタの機械
的動作の中で本発明のインタフェースのオーバーヘッド
が吸収されてしまう。(2) No deterioration in performance occurs. In order to achieve a high transfer rate even for a serial interface, the overhead of the interface of the present invention is absorbed in the mechanical operation of the printer.
(3)エラー処理を強化しているためシステムとしての
動作の保障が可能である。(3) Since error handling is strengthened, it is possible to guarantee the operation of the system.
(41LSI化することにより小型化、低価格化が実現
できる。さらにシリアルインタフェースであるため光イ
ンタフェースの平衡伝送などの長距離伝送技術を容易に
流用できるため、低価格、接続距離延長が可能となりス
ペースの有効活用が可能となる。(By using a 41LSI, it is possible to achieve smaller size and lower cost. Furthermore, since it is a serial interface, long-distance transmission technology such as balanced transmission of optical interface can be easily used, making it possible to lower the price and extend the connection distance, saving space. can be used effectively.
第1図は本発明のホスト計算機とプリンタ間の概略接続
構成図、
第2図は本発明のポスト計算機内にシリアルパラレル変
換手段を組み込んだ接続構成図、第3図Tal、(b)
、(C)は本発明のシリアル伝送手順のフレーム構成図
、
第4図はプリンタ側動作フローチャート、第5図はプリ
ンタ側状態遷移図、
第6図はホスト側動作フローチャート、第7図はホスト
側状態遷移図、及び
第8図(a)、(b)、(C1はインタフェース信号状
態説明図である。
(符号の説明)
H5T・・・ホスト計算機、
IFPSI・・・ホスト側パラレル−シリアル変換手段
、IFPS2・・・プリンタ側パラレル−シリアル変換
手段、
PRT・・・プリンタ、
PIF・・・パラレルインタフェース、SrF・・・シ
リアルインタフェース、PSCll、PSCP・・・パ
ラレル−シリアル変換回路、R/D、D/R・・・ドラ
イバ・レシーバ。Fig. 1 is a schematic connection block diagram between the host computer and printer of the present invention, Fig. 2 is a connection block diagram in which a serial-to-parallel conversion means is incorporated in the post computer of the present invention, and Fig. 3 Tal (b).
, (C) is a frame configuration diagram of the serial transmission procedure of the present invention, FIG. 4 is a printer side operation flowchart, FIG. 5 is a printer side state transition diagram, FIG. 6 is a host side operation flowchart, and FIG. 7 is a host side operation flowchart. State transition diagram, and FIGS. 8(a), (b), (C1 is an interface signal state explanatory diagram. (Explanation of symbols) H5T: host computer, IFPSI: host side parallel-serial conversion means , IFPS2...Printer side parallel-serial conversion means, PRT...Printer, PIF...Parallel interface, SrF...Serial interface, PSCll, PSCP...Parallel-serial conversion circuit, R/D, D /R...Driver/receiver.
Claims (1)
ースとして高速シリアルインタフェースを使用する場合
のプリンタシリアルインタフェース方式であって、 前記高速シリアルインタフェースは、 前記高速シリアルインタフェース上でエラーが発生した
ときに、前記エラーを前記プリンタの異常として扱わず
に前記プリンタの電源オフとして前記計算機に通知し、 前記プリンタに対してはプリンタリセットの指示を行い
、 前記エラー検出後の一定時間が経過した後、エラー状態
から復旧したとき、前記プリンタの電源が再投入された
として前記計算機に対して通知し、前記計算機は前記プ
リンタの状態再設定を行うようにした、 ことを特徴とするプリンタシリアルインタフェース方式
。[Scope of Claims] 1. A printer serial interface system in which a high-speed serial interface is used as a printer interface for connecting a printer and a computer, wherein the high-speed serial interface is configured to operate when an error occurs on the high-speed serial interface. In some cases, the error is not treated as an abnormality in the printer, but the computer is notified that the printer is powered off, and the printer is instructed to reset the printer, and after a certain period of time has elapsed after the error was detected. , when the printer recovers from an error state, it notifies the computer that the power of the printer has been turned on again, and the computer resets the status of the printer. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63242474A JP2632967B2 (en) | 1988-09-29 | 1988-09-29 | Error handling method in printer serial interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63242474A JP2632967B2 (en) | 1988-09-29 | 1988-09-29 | Error handling method in printer serial interface |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0292571A true JPH0292571A (en) | 1990-04-03 |
JP2632967B2 JP2632967B2 (en) | 1997-07-23 |
Family
ID=17089624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63242474A Expired - Lifetime JP2632967B2 (en) | 1988-09-29 | 1988-09-29 | Error handling method in printer serial interface |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2632967B2 (en) |
-
1988
- 1988-09-29 JP JP63242474A patent/JP2632967B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2632967B2 (en) | 1997-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5597104B2 (en) | Data transfer apparatus and control method thereof | |
US8661280B2 (en) | Host apparatus and information processing system using the same | |
US7409567B2 (en) | Devices with reciprocal wake-up function from the standby mode | |
JPH10187589A (en) | Hot plug for keyboard | |
KR102635457B1 (en) | PCIe DEVICE AND COMPUTING SYSTEM INCLUDING THEREOF | |
US20090077275A1 (en) | Multiple I/O interfacing system for a storage device and communicating method for the same | |
US20060047862A1 (en) | Automatic hardware data link initialization | |
US5379437A (en) | Reset of peripheral printing devices after a hot plug state | |
CN101359311B (en) | Method for establishing sequence transmission channel between peripheral device and host | |
US9552048B2 (en) | Electronic system in which USB device can inform occurrence of event to host device without receiving status request from host device | |
JP2007334731A (en) | USB device, host device, and USB connection system | |
JP2008293230A (en) | Data transfer device | |
US20030018925A1 (en) | Disabling a clock signal to a peripheral interface engine block during peripheral operation in a selected operational mode | |
JPH0448013B2 (en) | ||
JP2000293485A (en) | Communication interface | |
JPH0292571A (en) | Printer serial interface system | |
JP3204301B2 (en) | Control method between pointing device and computer | |
JP2002354067A (en) | Interface device, telecommunication equipment and method including the device | |
JP2007047909A (en) | USB device and standby state avoidance method thereof | |
JP2006048106A (en) | Peripheral equipment device system | |
JP2706027B2 (en) | Programmable controller | |
KR100349669B1 (en) | Device having I2C bus for interfacing LCD-button and peripheral system and interfacing method of it | |
CN115562912A (en) | Data redundancy monitoring method | |
JPS62128643A (en) | Data transmission system | |
JP2006198794A (en) | Power consumption control method of printer and printer |