JPH07295896A - Peripheral equipment and information processing system using same - Google Patents

Peripheral equipment and information processing system using same

Info

Publication number
JPH07295896A
JPH07295896A JP6081901A JP8190194A JPH07295896A JP H07295896 A JPH07295896 A JP H07295896A JP 6081901 A JP6081901 A JP 6081901A JP 8190194 A JP8190194 A JP 8190194A JP H07295896 A JPH07295896 A JP H07295896A
Authority
JP
Japan
Prior art keywords
data
communication error
peripheral device
host computer
communication
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
Application number
JP6081901A
Other languages
Japanese (ja)
Inventor
Kazuko Fukano
和子 深野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP6081901A priority Critical patent/JPH07295896A/en
Publication of JPH07295896A publication Critical patent/JPH07295896A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the abnormal operation of peripheral equipment, and to protect normal data by reporting the occurrence of a communication error to a host computer from the peripheral equipment. CONSTITUTION:When the communication error is detected in receive data by the communication error detecting means 114 of the peripheral equipment 110, after executing processing required for the suspension of usual processing by a usual processing suspending means 117, an error information message is outputted by an error message output means 118. Further, the state of a communication condition setting means 111 is outputted by a communication condition message output means 119. Besides, when the communication error is detected in the receive data by the communication error detecting means 114, the received data is converted into communication error occurrence report data by a data converting means 116, and it is transmitted to the host computer 100 by a data transmitting means 115. After that, after executing the processing required for resetting to the usual processing by a usual processing resetting means 124, the processing is reset to the usual processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は双方向の通信が可能であ
り、インターフェイスによりホストコンピュータと接続
して使用する周辺装置および該周辺装置を用いた情報処
理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a peripheral device capable of bidirectional communication and connected to a host computer through an interface, and an information processing system using the peripheral device.

【0002】[0002]

【従来の技術】従来の周辺装置では受信データに通信エ
ラーが発生した場合、通信エラーが発生したデータのみ
を読み捨てる処理を実行していた。あるいは通信エラー
が発生したデータを特定データに変換して受信メモリに
記憶し、正常データと同じ処理をしていた。
2. Description of the Related Art In a conventional peripheral device, when a communication error occurs in received data, a process of reading and discarding only the data in which the communication error occurs is executed. Alternatively, the data in which a communication error has occurred is converted into specific data and stored in the reception memory, and the same processing as that of normal data is performed.

【0003】[0003]

【発明が解決しようとする課題】しかし、前述の従来技
術では、周辺装置は通信エラーの発生した通信タスクに
より受信したデータを異常データとして内部処理を実行
するが、ホストコンピュータでは周辺装置で通信エラー
が発生していることを検出できずデータを送信し続ける
ために、ホストコンピュータと周辺装置との間で無効デ
ータであるにもかかわらず処理が継続されてしまい異常
動作が発生するという欠点があった。また、オペレータ
がこの状態に気付きホストコンピュータの処理を中止す
るような場合でも周辺装置の受信データ格納メモリに多
量のデータが残っていたときは電源をオフすることによ
り周辺装置の動作を中止する必要があり、コマンド等に
より以前に設定した周辺装置動作仕様の内容がリセット
されてしまうという欠点もあった。あるいは電源をオフ
せずに異常動作が中止できた場合でも、通信エラー発生
以降の受信データが周辺装置の制御コードと偶然一致し
ている場合も考えられる。この場合、周辺装置内部処理
で周辺装置動作仕様の設定内容が変更されてしまうた
め、通信エラー復帰時に通信エラー発生以前と同じ状態
で引き続き周辺装置が使用できるとは限らないという欠
点もあった。
However, in the above-mentioned conventional technique, the peripheral device executes internal processing by treating the data received by the communication task in which the communication error has occurred as abnormal data, but in the host computer, the communication error occurs in the peripheral device. However, there is a drawback that abnormal processing occurs because the processing is continued between the host computer and the peripheral device, even though the data is invalid, because it cannot detect that the error has occurred and continues to send data. It was In addition, even if the operator notices this state and stops the processing of the host computer, if a large amount of data remains in the reception data storage memory of the peripheral device, it is necessary to stop the operation of the peripheral device by turning off the power supply. However, there is also a drawback that the contents of the peripheral device operation specifications previously set by a command or the like are reset. Alternatively, even if the abnormal operation can be stopped without turning off the power, the received data after the occurrence of the communication error may happen to coincide with the control code of the peripheral device. In this case, since the setting contents of the peripheral device operation specifications are changed in the peripheral device internal processing, there is also a drawback that the peripheral device may not always be able to be used in the same state as before the occurrence of the communication error when the communication error is recovered.

【0004】本発明はこのような欠点を解決するために
なされたものであり、周辺装置で通信エラーが発生した
際にホストコンピュータへ通信エラーの発生を知らせる
と共に、通信エラーデータを無効データとして処理する
こと、および各装置が接続先装置の通信エラーの回復確
認後に通常処理に復帰することにより正常データを保護
することを目的とする。
The present invention has been made to solve such a drawback, and when a communication error occurs in a peripheral device, the host computer is notified of the occurrence of the communication error and the communication error data is processed as invalid data. The purpose is to protect normal data by allowing each device to return to the normal process after confirming the recovery of the communication error of the connection destination device.

【0005】[0005]

【課題を解決するための手段】本発明の周辺装置および
該周辺装置を用いた情報処理システムは、周辺装置が通
信エラーを検出した時点で通常処理を中止し、エラー情
報メッセージおよび通信条件情報(転送速度、ビット
長、パリティ等)の出力により、通信エラーの発生と周
辺装置の通信条件をオペレータに知らせることを特徴と
する。また、本発明の周辺装置は、これと同時に周辺装
置から特定のデータをホストコンピュータに送信するこ
とを特徴とする。これによりホストコンピュータでも周
辺装置同様の通信エラーが発生し周辺装置で通信エラー
が発生していることが確認できる。この特定データの送
信処理によりホストコンピュータでは通信エラーが発生
しない場合でも受信データから周辺装置で通信エラーが
発生していることが確認できる。これによりホストコン
ピュータは通信エラー発生直後から適切なエラー処理の
実行が可能となる。更に、本発明の情報処理システムに
於いては、周辺装置は通信エラー発生以降の受信データ
に通信エラーを検出した場合は特定データを送信し、受
信データが正常の場合は受信データをそのまま送信する
というエラー処理を開始し、一方、ホストコンピュータ
は通信条件の変更を行った後にデータの送信処理と受信
処理を実行し、このとき送信データと受信データが一致
していれば通信エラーから回復したと判断し、周辺装置
に対し復帰コマンドを送信した後に通常処理に復帰し、
周辺装置は復帰コマンドの受信により周辺装置の動作設
定情報を出力後、通常処理に復帰することを特徴とす
る。
In the peripheral device of the present invention and the information processing system using the peripheral device, normal processing is stopped when the peripheral device detects a communication error, and an error information message and communication condition information ( It is characterized in that the operator is notified of the occurrence of a communication error and the communication conditions of the peripheral device by the output of the transfer rate, the bit length, the parity, etc.). Further, the peripheral device of the present invention is characterized in that at the same time, the peripheral device transmits specific data to the host computer. As a result, it can be confirmed that a communication error similar to that of the peripheral device has occurred in the host computer and a communication error has occurred in the peripheral device. By this transmission process of the specific data, even if the communication error does not occur in the host computer, it can be confirmed from the received data that the communication error has occurred in the peripheral device. As a result, the host computer can execute appropriate error processing immediately after the communication error occurs. Further, in the information processing system of the present invention, the peripheral device transmits the specific data when the communication error is detected in the received data after the occurrence of the communication error, and transmits the received data as it is when the received data is normal. On the other hand, the host computer executes the data transmission process and the data reception process after changing the communication conditions, and if the transmission data and the reception data match at this time, the communication error is recovered. Judge, send a return command to the peripheral device, and then return to normal processing,
The peripheral device is characterized by returning to the normal processing after outputting the operation setting information of the peripheral device upon receiving the return command.

【0006】[0006]

【実施例】本発明の構成を図1に基づいて説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The structure of the present invention will be described with reference to FIG.

【0007】ホストコンピュータ100はデータ転送速
度やデータ長やパリティ等の通信条件を設定する通信条
件設定手段101と、周辺装置110とのデータ送受信
を実行する通信手段102と、前記周辺装置110にコ
マンドあるいはデータを送信するコマンド/データ送信
手段103と、前記周辺装置110からのデータを受信
するデータ受信手段104と、前記受信データの通信エ
ラーを検出する通信エラー検出手段105と、前記通信
エラー検出手段105により通信エラーを検出した場合
にオペレータに通信エラーの発生を知らせる通信エラー
通知手段106および前記通信条件設定手段101の設
定内容を変更する通信条件変更手段107より構成され
る。
The host computer 100 has communication condition setting means 101 for setting communication conditions such as data transfer rate, data length and parity, communication means 102 for transmitting / receiving data to / from the peripheral device 110, and a command for the peripheral device 110. Alternatively, a command / data transmitting means 103 for transmitting data, a data receiving means 104 for receiving data from the peripheral device 110, a communication error detecting means 105 for detecting a communication error of the received data, and a communication error detecting means. A communication error notifying unit 106 for notifying an operator of the occurrence of a communication error when a communication error is detected by 105 and a communication condition changing unit 107 for changing the setting contents of the communication condition setting unit 101.

【0008】一方、周辺装置110はデータ転送速度や
データ長やパリティ等の通信条件を設定する通信条件設
定手段111と、データ送受信を実行する通信手段11
2の構成によりホストコンピュータ100との通信を行
う。コマンド/データ受信手段113により前記ホスト
コンピュータ100からのコマンドあるいはデータを受
信し、通信エラー検出手段114により前記受信データ
の通信エラーを検出する。前記通信エラー検出手段11
4において前記受信データに通信エラーが検出されない
場合は、データ処理手段120によるデータ処理および
コマンド処理手段121による動作設定やモード設定等
の各種コマンド処理を実行する。前記通信エラー検出手
段114において前記受信データに通信エラーが検出さ
れた場合は、通常処理中止手段117により通常処理の
中止に必要な処理を実行後、エラーメッセージ出力手段
118によりエラー情報メッセージを出力する。さらに
通信条件メッセージ出力手段119により前記通信条件
設定手段111の状態を出力する。また、前記通信エラ
ー検出手段114において前記受信データに通信エラー
が検出された場合は、データ変換手段116により前記
受信データを通信エラー発生通知データに変換してデー
タ送信手段115により前記ホストコンピュータ100
に送信する。前記通信エラー検出手段114において前
記受信データに通信エラーが検出されなかった場合は、
受信データをそのまま前記データ送信手段115により
前記ホストコンピュータ100に送信する。この通信エ
ラー発生通知データおよび受信データの送信処理を復帰
コマンドの受信まで続ける。その後、前記ホストコンピ
ュータ100からの復帰コマンドを受信した場合は、復
帰コマンド処理手段122による復帰処理と動作設定メ
ッセージ出力手段123による動作状態やモード等の動
作設定情報メッセージの出力処理を実行する。その後、
通常処理復帰処理124により通常処理への復帰に必要
な処理を実行後、通常処理へ復帰する。
On the other hand, the peripheral device 110 has a communication condition setting means 111 for setting communication conditions such as data transfer rate, data length and parity, and a communication means 11 for executing data transmission / reception.
Communication with the host computer 100 is performed by the configuration of 2. A command / data receiving means 113 receives a command or data from the host computer 100, and a communication error detecting means 114 detects a communication error in the received data. Communication error detecting means 11
When no communication error is detected in the received data in 4, the data processing by the data processing means 120 and the various command processing such as operation setting and mode setting by the command processing means 121 are executed. When the communication error detection unit 114 detects a communication error in the received data, the normal process canceling unit 117 executes a process required to cancel the normal process, and then the error message output unit 118 outputs an error information message. . Further, the communication condition message output means 119 outputs the state of the communication condition setting means 111. When the communication error detection means 114 detects a communication error in the received data, the data conversion means 116 converts the received data into communication error occurrence notification data and the data transmission means 115 causes the host computer 100.
Send to. If no communication error is detected in the received data by the communication error detecting means 114,
The received data is transmitted as it is to the host computer 100 by the data transmitting means 115. The process of transmitting the communication error occurrence notification data and the received data is continued until the return command is received. After that, when the return command from the host computer 100 is received, the return command processing means 122 executes the return processing and the operation setting message output means 123 executes the output processing of the operation setting information message such as the operation state and the mode. afterwards,
After the processing necessary for returning to the normal processing is executed by the normal processing returning processing 124, the processing is returned to the normal processing.

【0009】図2以降は本発明の一実施例としてプリン
タとホストコンピュータを接続した情報処理システムを
例に説明する。
From FIG. 2 onward, an information processing system in which a printer and a host computer are connected will be described as an example of the present invention.

【0010】図2はデータ通信が正常時に動作する構成
要素を示す図である。
FIG. 2 is a diagram showing components that operate when data communication is normal.

【0011】ホストコンピュータ200の通信手段20
2はコマンド送信手段203により準備したコマンドを
ディップスイッチやメモリスイッチ等の通信条件設定手
段201により設定されている通信条件に従ってプリン
タ300に送信する。前記プリンタ300の通信手段3
02は前記ホストコンピュータ200からのコマンドを
通信条件設定手段301の通信条件に従ってコマンド/
データ受信手段303にて受信する。通信エラー検出手
段304により前記受信コマンドに通信エラー発生がな
いことを確認後コマンド解析手段305によりコマンド
解析を実行しコマンド処理手段306によりフラグ設定
やメモリ操作等の各コマンド処理を実行する。前記コマ
ンド解析手段305および前記コマンド処理手段306
は、図1のコマンド処理手段121をプリンタの動作に
代入した例である。また、前記ホストコンピュータ20
0はデータ送信手段204により準備したデータを前記
コマンド送信処理時と同様の手段で前記プリンタ300
に送信する。前記プリンタ300は前記コマンド受信処
理と同様の手段でデータを受信し、前記受信データに通
信エラー発生がないことを確認後データ展開手段307
により前記受信データをメモリ展開しデータ印字手段3
08により印字を実行する。前記データ展開手段307
および前記データ印字手段308は、図1のデータ処理
手段120をプリンタの動作に代入した例である。
Communication means 20 of host computer 200
Reference numeral 2 transmits the command prepared by the command transmitting means 203 to the printer 300 according to the communication condition set by the communication condition setting means 201 such as a DIP switch or a memory switch. Communication means 3 of the printer 300
Reference numeral 02 denotes a command / command from the host computer 200 according to the communication condition of the communication condition setting means 301.
The data is received by the data receiving means 303. After it is confirmed by the communication error detection means 304 that no communication error occurs in the received command, the command analysis means 305 executes command analysis, and the command processing means 306 executes command processing such as flag setting and memory operation. The command analysis means 305 and the command processing means 306
Is an example in which the command processing means 121 of FIG. 1 is substituted for the operation of the printer. In addition, the host computer 20
0 indicates the data prepared by the data transmission means 204 by the same means as in the command transmission processing.
Send to. The printer 300 receives the data by the same means as the command receiving process, and after confirming that the received data has no communication error, the data expanding means 307.
The received data is expanded into a memory by the data printing means 3
Printing is executed according to 08. The data expansion means 307
The data printing means 308 is an example in which the data processing means 120 of FIG. 1 is substituted for the operation of the printer.

【0012】図3は通信エラー発生時に動作する構成要
素を示す図である。ここでは、ホストコンピュータへの
通信エラー発生通知データを<00H>とした例にて説
明する。
FIG. 3 is a diagram showing components operating when a communication error occurs. Here, an example will be described in which the communication error occurrence notification data to the host computer is <00H>.

【0013】プリンタ300はコマンド/データ受信手
段303および通信エラー検出手段304によりホスト
コンピュータ200からの受信データのエラー発生状態
を確認する。前記通信エラー検出手段304とは受信デ
ータのパリティエラーやフレーミングエラー等を検出す
る手段であり、通常はCPUが異常データを受信した時
点で通信エラーフラグを設定する等の方法により前記プ
リンタ300のソフトウェアに通知する。前記プリンタ
300のソフトウェアは前記CPUの通信エラーフラグ
の状態を確認することにより受信データに通信エラーが
発生しているか否かを知ることができる。このとき前記
受信データに通信エラーが発生していると判断した場
合、通常処理中止手段310により通常処理の実行に必
要なプリンタの設定フラグや未印字データ等の各種デー
タの退避処理を実行後、<00H>データ送信手段31
3により前記ホストコンピュータ200に対し通信エラ
ー発生通知データ<00H>を送信する。次に、エラー
メッセージ印字手段311によりオペレータが通信エラ
ー発生やエラー種類等を確認できるエラー情報メッセー
ジの印字処理を実行する。さらに通信条件メッセージ印
字手段312により、転送速度,データ長,パリティ等
の通信条件設定手段301の状態をオペレータが確認で
きる情報メッセージに変換し印字する。
The printer 300 confirms the error occurrence state of the data received from the host computer 200 by the command / data receiving means 303 and the communication error detecting means 304. The communication error detecting means 304 is means for detecting a parity error, a framing error, etc. of the received data, and usually the software of the printer 300 is set by a method such as setting a communication error flag when the CPU receives abnormal data. To notify. By checking the state of the communication error flag of the CPU, the software of the printer 300 can know whether a communication error has occurred in the received data. At this time, when it is determined that a communication error has occurred in the received data, after the saving processing of various data such as the printer setting flag and unprinted data necessary for executing the normal processing by the normal processing stopping unit 310, <00H> Data transmission means 31
3, the communication error occurrence notification data <00H> is transmitted to the host computer 200. Next, the error message printing unit 311 executes a printing process of an error information message that allows the operator to confirm the occurrence of a communication error, the type of error, and the like. Further, the communication condition message printing means 312 converts the state of the communication condition setting means 301 such as transfer rate, data length, parity, etc. into an information message which can be confirmed by the operator and prints it.

【0014】ホストコンピュータ200はデータ受信手
段210によりプリンタ300からのデータを受信す
る。次に通信エラー検出手段211により前記受信デー
タの通信エラー検出処理を実行する。通信エラーの発生
原因が両装置間の通信条件の不一致である場合は、前記
通信エラー検出手段211において前記受信データにも
前記プリンタ300同様の通信エラーが発生している可
能性が極めて高い。また、前記受信データに通信エラー
が発生していない場合でも前記受信データが通信エラー
発生通知データ<00H>であることを確認すれば、前
記プリンタ300で通信エラーが発生していることを前
記ホストコンピュータ200が検出できる。
The host computer 200 receives the data from the printer 300 by the data receiving means 210. Next, the communication error detection means 211 executes the communication error detection processing of the received data. If the cause of the communication error is a mismatch in the communication conditions between the two devices, it is highly possible that the communication error detection means 211 has a communication error similar to the printer 300 in the received data. Even if no communication error has occurred in the received data, if it is confirmed that the received data is the communication error occurrence notification data <00H>, the host 300 can confirm that the communication error has occurred in the printer 300. The computer 200 can detect it.

【0015】ホストコンピュータ200は通信エラー発
生を検出した時点でプリンタ300へのデータ送信を中
止し、通信エラー通知手段212により通信エラーの発
生と転送速度,データ長,パリティ等の通信条件設定手
段201の状態をオペレータが確認できる情報メッセー
ジに変換し表示する等の方法を用いてオペレータに対し
通信条件の変更を促す処理を実行する。
When the host computer 200 detects the occurrence of a communication error, it stops the data transmission to the printer 300, and the communication error notifying means 212 causes the communication error and the communication condition setting means 201 such as the transfer speed, the data length and the parity. The process of prompting the operator to change the communication condition is executed by using a method of converting the state of (1) into an information message that can be confirmed by the operator and displaying the information message.

【0016】図4は通信エラー処理時およびエラー復帰
処理時に動作する構成要素を示す図である。ここでは、
ホストコンピュータへの通信エラー発生通知データを<
00H>とした例にて説明する。
FIG. 4 is a diagram showing components operating during communication error processing and error recovery processing. here,
Communication error occurrence notification data to the host computer <
An example will be described where 00H>.

【0017】オペレータは通信エラー発生を確認した場
合、前記通信条件メッセージ印字手段312により印字
されたプリンタ300の情報メッセージと前記通信エラ
ー通知手段212により表示されたホストコンピュータ
200の情報メッセージを比較して双方の通信条件が一
致するようにホストコンピュータ200の通信条件に関
するディップスイッチやメモリスイッチの状態を変更す
る等して、通信条件変更手段220により通信条件を変
更する。前記ホストコンピュータ200は前記通信条件
変更手段220により変更した通信条件を通信条件設定
手段201により設定する。次に通信エラー回復を確認
するためにデータ送信手段204により準備したデータ
を前記通信条件設定手段201により設定した通信条件
に従ってプリンタ300へ送信する。
When the operator confirms that a communication error has occurred, the operator compares the information message of the printer 300 printed by the communication condition message printing means 312 with the information message of the host computer 200 displayed by the communication error notification means 212. The communication condition changing unit 220 changes the communication condition by changing the state of the DIP switch or the memory switch relating to the communication condition of the host computer 200 so that the communication conditions of both sides match. The host computer 200 sets the communication condition changed by the communication condition changing unit 220 by the communication condition setting unit 201. Next, the data prepared by the data transmitting means 204 for confirming the recovery of the communication error is transmitted to the printer 300 according to the communication condition set by the communication condition setting means 201.

【0018】プリンタ300は受信データの通信エラー
発生の有無を確認し、前記受信データに通信エラーが発
生していた場合は<00H>データ送信手段313によ
り通信エラー発生通知データ<00H>を前記ホストコ
ンピュータ200に送信する。一方、前記受信データに
通信エラーが発生していない場合は、復帰コマンド確認
手段321により復帰コマンドであるか否かを確認し、
前記受信データが復帰コマンドでなかった場合は受信デ
ータ送信手段320により前記受信データをそのまま前
記ホストコンピュータ200に送信する。
The printer 300 confirms whether or not a communication error has occurred in the received data, and if a communication error has occurred in the received data, the communication error occurrence notification data <00H> is sent to the host by the <00H> data transmission means 313. It is transmitted to the computer 200. On the other hand, if no communication error has occurred in the received data, it is confirmed by the return command confirmation means 321 whether or not it is a return command,
If the received data is not a return command, the received data transmitting means 320 transmits the received data as it is to the host computer 200.

【0019】ホストコンピュータ200は、プリンタ3
00からの受信データの通信エラーの有無を確認し、通
信エラーがなくなるまで通信条件の変更処理と設定処理
および通信エラー回復確認データの送信処理と受信処理
を繰り返す。前記ホストコンピュータ200は送信デー
タと受信データの完全一致を確認することで通信エラー
が回復したことがわかる。通信エラー回復の確認後、前
記プリンタ300の動作設定情報が必要な場合は要求付
き復帰コマンドを、前記動作設定情報が不要な場合は要
求なし復帰コマンドをそれぞれ復帰コマンド準備手段2
21により準備する。前記復帰コマンド準備手段221
により準備した復帰コマンドをコマンド送信手段203
にて前記プリンタ300に送信する。
The host computer 200 is the printer 3
The presence or absence of a communication error in the received data from 00 is repeated, and the communication condition change processing and setting processing and the communication error recovery confirmation data transmission processing and reception processing are repeated until the communication error disappears. The host computer 200 confirms that the communication error has been recovered by confirming the complete match between the transmitted data and the received data. After confirming the recovery of the communication error, a return command with a request is issued if the operation setting information of the printer 300 is required, and a return command without a request is issued if the operation setting information is not required.
21. The return command preparing means 221
The return command prepared by
Is transmitted to the printer 300.

【0020】プリンタ300は復帰コマンド確認手段3
21により受信コマンドが復帰コマンドであることを確
認した時点で通常処理への復帰処理の実行に移る。復帰
処理では最初に設定情報メッセージ印字手段322によ
り各種フラグ内容やメモリ状態などを印字する。設定情
報送信確認手段323により前記復帰コマンドの動作設
定情報要求の有無を確認し、動作設定情報要求があった
場合は、設定情報送信手段324により各種フラグ内容
やメモリ状態等の情報をホストコンピュータ200に送
信する。その後、通常処理復帰処理325では前記通常
処理中止手段310により退避したデータの復帰処理等
を実行し、前記プリンタ300は通常処理に復帰する。
The printer 300 has a return command confirmation means 3
When it is confirmed by 21 that the received command is the return command, the process returns to the normal process. In the restoration process, first, the setting information message printing unit 322 prints the contents of various flags and the memory status. The setting information transmission confirming unit 323 confirms the presence / absence of the operation setting information request of the return command. When the operation setting information request is made, the setting information transmitting unit 324 provides the host computer 200 with information such as various flag contents and memory states. Send to. After that, in the normal processing restoration processing 325, the restoration processing of the data saved by the normal processing canceling unit 310 is executed, and the printer 300 returns to the normal processing.

【0021】ホストコンピュータ200は設定情報受信
手段222によりプリンタ300からの動作設定情報を
受信し、通常処理に復帰する。
The host computer 200 receives the operation setting information from the printer 300 by the setting information receiving means 222 and returns to the normal processing.

【0022】図5はソフトウェアによる具体的なプリン
タの処理を示すフローチャートである。ここでは、ホス
トコンピュータへの通信エラー発生通知データを<00
H>とし、復帰コマンドを図7に示すように<ESC
A n>とした例にて説明する。
FIG. 5 is a flow chart showing a specific printer process by software. Here, the communication error occurrence notification data to the host computer is set to <00
H> and the return command as shown in Fig. 7 <ESC
An example of A n> will be described.

【0023】プリンタはホストコンピュータからのデー
タ受信処理(ステップ500)と前記受信データの通信
エラー検出処理(ステップ501)を実行する。前記通
信エラー検出処理(ステップ501)において前記受信
データが正常データであった場合は処理を終了する。一
方、前記通信エラー検出処理(ステップ501)におい
て前記受信データに通信エラーが発生していた場合、フ
ラグやポインタ等の通常処理に必要なデータの退避処理
(ステップ502)を実行後、通信エラー処理群510
を開始する。
The printer executes a data receiving process from the host computer (step 500) and a communication error detecting process of the received data (step 501). If the received data is normal data in the communication error detection process (step 501), the process is terminated. On the other hand, if a communication error has occurred in the received data in the communication error detection process (step 501), after performing a process of saving data (step 502) necessary for normal processing such as flags and pointers, a communication error process is executed. Group 510
To start.

【0024】通信エラー処理群510では最初に通信エ
ラーデータを受信したことをホストコンピュータに知ら
せるために通信エラー発生通知データ<00H>の送信
処理(ステップ511)を実行する。次にエラーメッセ
ージ印字処理(ステップ512)と通信条件情報メッセ
ージ印字処理(ステップ513)を実行する。前記通信
条件情報メッセージ印字処理(ステップ513)で印字
する通信条件情報とは通信速度、ビット長、パリティな
どの通信データ仕様に関する情報を示す。
In the communication error processing group 510, the communication error occurrence notification data <00H> is transmitted (step 511) in order to notify the host computer that the communication error data was first received. Next, an error message print process (step 512) and a communication condition information message print process (step 513) are executed. The communication condition information printed in the communication condition information message printing process (step 513) indicates information on communication data specifications such as communication speed, bit length and parity.

【0025】次にホストコンピュータからのデータ受信
処理(ステップ514)と前記受信データの通信エラー
検出処理(ステップ515)を実行する。前記通信エラ
ー検出処理(ステップ515)において前記受信データ
に通信エラーが発生していた場合、通信エラー発生通知
データ<00H>の送信処理(ステップ516)を実行
し、前記データ受信処理(ステップ514)に戻る。一
方、前記通信エラー検出処理(ステップ515)におい
て前記受信データが正常データであった場合、復帰コマ
ンド検出処理(ステップ517)を実行する。このとき
前記受信データが復帰コマンドでないと判断した場合、
前記受信データのホストコンピュータへの送信処理(ス
テップ518)を実行し、前記データ受信処理(ステッ
プ514)に戻る。一方、前記復帰コマンド検出処理
(ステップ517)において前記受信データが復帰コマ
ンドであると判断した場合、復帰処理群520に移る。
Next, a data receiving process from the host computer (step 514) and a communication error detecting process of the received data (step 515) are executed. If a communication error has occurred in the received data in the communication error detection process (step 515), a communication error occurrence notification data <00H> transmission process (step 516) is executed, and the data reception process (step 514). Return to. On the other hand, if the received data is normal data in the communication error detection process (step 515), the return command detection process (step 517) is executed. At this time, if it is determined that the received data is not a return command,
The process of transmitting the received data to the host computer (step 518) is executed, and the process returns to the data receiving process (step 514). On the other hand, when it is determined that the received data is a return command in the return command detection process (step 517), the process moves to the return process group 520.

【0026】復帰処理群520では最初に動作設定情報
印字処理(ステップ521)を実行する。前記動作設定
情報印字処理(ステップ521)において印字する動作
設定情報とは印字文字属性、文字種、メモリ設定内容な
どホストコンピュータからのコマンドにより設定された
プリンタの動作に関する情報を示す。次に動作設定情報
の送信要求有無の判断処理(ステップ522)を実行す
る。この送信要求の有無は図7に示すように復帰コマン
ドをコマンド部700と引数部701にわけ、前記引数
部701の数値により判断する方法がある。具体的には
n=0のとき送信要求無しと判断し、n=1のとき送信
要求有りと判断する方法である。前記送信要求有無の判
断処理(ステップ522)において要求有りと判断した
場合、ホストコンピュータへの動作設定情報の送信処理
(ステップ523)を実行する。前記動作設定情報送信
処理(ステップ523)終了時あるいは前記送信要求有
無の判断処理(ステップ522)において要求無しと判
断した時点で、前記データ退避処理(ステップ502)
で退避したデータの復帰処理(ステップ524)を実行
し通常処理に復帰する。
In the restoration processing group 520, the operation setting information printing processing (step 521) is first executed. The operation setting information to be printed in the operation setting information printing process (step 521) is information on the operation of the printer set by a command from the host computer such as print character attributes, character types, and memory setting contents. Next, a process of determining whether or not there is a request to send the operation setting information is executed (step 522). As shown in FIG. 7, there is a method of determining the presence or absence of this transmission request by dividing the return command into a command section 700 and an argument section 701 and judging it by the numerical value of the argument section 701. Specifically, it is a method of determining that there is no transmission request when n = 0 and determining that there is a transmission request when n = 1. When it is determined that there is a request in the transmission request presence / absence determination processing (step 522), the operation setting information transmission processing to the host computer (step 523) is executed. At the end of the operation setting information transmission process (step 523) or when it is determined that there is no request in the transmission request presence / absence determination process (step 522), the data saving process (step 502)
The process of restoring the data saved in step (524) is executed to return to the normal process.

【0027】図6はソフトウェアによる具体的なホスト
コンピュータの処理を示すフローチャートである。ここ
では、プリンタからの通信エラー発生通知データを<0
0H>とし、復帰コマンドを図7に示すように<ESC
A n>とし、通信エラー回復判断カウンタをaとし
連続10バイトのデータが正常であることを通信エラー
回復の条件とする例にて説明する。
FIG. 6 is a flow chart showing the concrete processing of the host computer by software. Here, the communication error occurrence notification data from the printer is set to <0.
0H> and the return command is <ESC as shown in FIG.
An example will be described in which A n>, the communication error recovery determination counter is a, and continuous 10-byte data is normal as a condition for communication error recovery.

【0028】ホストコンピュータはプリンタへのデータ
送信処理(ステップ600)を実行する。次にプリンタ
からの受信データ有無の確認処理(ステップ601)を
実行する。前記受信データ有無の確認処理(ステップ6
01)で受信データがない場合は処理を終了する。一
方、前記受信データ有無の確認処理(ステップ601)
において受信データがある場合はデータ受信処理(ステ
ップ602)と前記受信データの通信エラー検出処理
(ステップ603)を実行する。前記通信エラー検出処
理(ステップ603)において前記受信データに通信エ
ラーが発生していた場合、通信エラー処理群610を開
始する。一方、前記通信エラー検出処理(ステップ60
3)において前記受信データが正常データであった場合
は、通信エラー発生通知データ<00H>の検出処理
(ステップ604)を実行する。前記受信データが通信
エラー発生通知データ<00H>でなかった場合は処理
を終了する。一方、前記受信データが通信エラー発生通
知データ<00H>であった場合は通信エラー処理群6
10を開始する。
The host computer executes the data transmission process to the printer (step 600). Next, a process for checking the presence / absence of data received from the printer (step 601) is executed. Confirmation process for the presence or absence of the received data (step 6)
If there is no received data in 01), the process ends. On the other hand, confirmation processing of the presence or absence of the received data (step 601)
If there is received data, the data receiving process (step 602) and the communication error detecting process of the received data (step 603) are executed. If a communication error has occurred in the received data in the communication error detection processing (step 603), the communication error processing group 610 is started. On the other hand, the communication error detection process (step 60)
If the received data is normal data in 3), the communication error occurrence notification data <00H> is detected (step 604). If the received data is not the communication error occurrence notification data <00H>, the process is ended. On the other hand, when the received data is the communication error occurrence notification data <00H>, the communication error processing group 6
Start 10.

【0029】通信エラー処理群610では最初に通信条
件の確認および変更処理(ステップ611)を実行し、
前記通信条件メッセージ印字処理(ステップ512)に
て印字されたプリンタの通信条件と一致させる。次に通
信エラー回復判断カウンタの初期化処理(ステップ61
2)を実行する。このカウンタは正常データの数をカウ
ントするものであり、複数のデータに対し通信エラー回
復確認を実行することにより確実に通信エラーが回復し
たことを確認するものである。
In the communication error processing group 610, communication condition confirmation and change processing (step 611) is first executed,
The communication conditions of the printer printed in the communication condition message printing process (step 512) are matched. Next, initialization processing of the communication error recovery determination counter (step 61
Perform 2). This counter counts the number of normal data, and confirms that the communication error has been recovered by executing communication error recovery confirmation for a plurality of data.

【0030】次にプリンタへの通信エラー回復確認デー
タ送信処理(ステップ613)およびプリンタからのデ
ータ受信処理(ステップ614)と前記受信データの通
信エラー検出処理(ステップ615)を実行する。前記
通信エラー検出処理(ステップ615)において前記受
信データに通信エラーが発生していた場合は、前記通信
条件確認および変更処理(ステップ611)に戻る。一
方、前記通信エラー検出処理(ステップ615)におい
て前記受信データが正常データであった場合は前記受信
データの通信エラー発生通知データ<00H>検出処理
(ステップ616)を実行する。前記受信データが通信
エラー発生通知データ<00H>であった場合は前記通
信条件確認および変更処理(ステップ611)に戻る。
一方、前記受信データが通信エラー発生通知データ<0
0H>でなかった場合はカウンタの更新処理(ステップ
617)を実行する。前記の一連の通信エラー処理はカ
ウンタ終了検出処理(ステップ618)において前記カ
ウンタが終了するまで続けられる。一方、前記カウンタ
終了検出処理(ステップ618)においてカウンタ終了
を検出した時点で通信エラーが回復したと判断し、復帰
処理群620へ移る。
Next, a communication error recovery confirmation data transmission process to the printer (step 613), a data reception process from the printer (step 614) and a communication error detection process of the received data (step 615) are executed. If a communication error has occurred in the received data in the communication error detection process (step 615), the process returns to the communication condition confirmation and change process (step 611). On the other hand, if the received data is normal data in the communication error detection processing (step 615), the communication error occurrence notification data <00H> detection processing (step 616) of the received data is executed. If the received data is the communication error occurrence notification data <00H>, the process returns to the communication condition confirmation and change process (step 611).
On the other hand, the received data is communication error occurrence notification data <0.
If it is not 0H>, the counter update processing (step 617) is executed. The above series of communication error processing is continued until the counter ends in the counter end detection processing (step 618). On the other hand, when the counter end is detected in the counter end detection process (step 618), it is determined that the communication error is recovered, and the process proceeds to the recovery process group 620.

【0031】復帰処理群620では最初にプリンタの動
作設定情報要求の有無の判断処理(ステップ621)に
より復帰コマンドを決定する。前記判断処理(ステップ
621)により動作設定情報が不要となった場合は復帰
コマンドの引数部701をn=0とした要求なしの復帰
コマンド送信処理(ステップ622)の実行後、処理を
終了し通常処理に復帰する。一方、前記判断処理(ステ
ップ621)により動作設定情報が必要となった場合は
復帰コマンドの前記引数部701をn=1とした要求付
きの復帰コマンド送信処理(ステップ623)とプリン
タからの動作設定情報の受信処理(ステップ624)の
実行後、処理を終了し通常処理に復帰する。
In the restoration processing group 620, a restoration command is first determined by the processing for judging the presence / absence of a printer operation setting information request (step 621). When the operation setting information is not required by the determination process (step 621), the process is terminated after executing the unrequested return command transmission process (step 622) in which the argument part 701 of the return command is n = 0. Return to processing. On the other hand, if the operation setting information is required by the determination process (step 621), the return command transmission process with a request (step 623) in which the argument portion 701 of the return command is set to n = 1 and the operation setting from the printer After the information receiving process (step 624) is executed, the process is terminated and the process returns to the normal process.

【0032】本発明の実施例では周辺装置としてプリン
タを例に説明したが、ディスプレイなどの出力装置の場
合はプリンタでは印字している処理を画面表示処理に置
き換えることにより同様の制御が可能となる。
In the embodiment of the present invention, a printer has been described as an example of the peripheral device, but in the case of an output device such as a display, the same control can be performed by replacing the printing process in the printer with the screen display process. .

【0033】[0033]

【発明の効果】以上述べたように本発明によれば、周辺
装置が通信エラー発生時点でホストコンピュータに対し
通信エラー発生を通知し、ホストコンピュータがこの状
態を検出しデータ送信を中止する等の通信エラー対応処
理を実行することにより、通信過程において無効となる
データがなくなり、周辺装置の異常動作を防止し周辺装
置のメモリ内容および通信エラー発生以前に受信した正
常データの保護が可能になるという効果がある。また、
通信エラーの発生と通信条件をオペレータに対し出力す
ることによりオペレータは説明書や仕様書がなくても周
辺装置の状態が把握できるという効果もある。さらに
は、周辺装置がプリンタ等の出力装置の場合は、異常デ
ータによる連続誤印字動作がなくなるため用紙の節約も
できるという効果もある。
As described above, according to the present invention, the peripheral device notifies the host computer of the occurrence of the communication error when the communication error occurs, and the host computer detects this state and stops the data transmission. By executing the communication error handling process, there is no data that becomes invalid in the communication process, it is possible to prevent the abnormal operation of the peripheral device and protect the memory contents of the peripheral device and the normal data received before the communication error occurs. effective. Also,
By outputting the occurrence of a communication error and the communication condition to the operator, the operator can grasp the state of the peripheral device without a manual or specifications. Further, when the peripheral device is an output device such as a printer, there is an effect that the continuous erroneous printing operation due to the abnormal data is eliminated and the paper can be saved.

【0034】また、本発明によれば、ホストコンピュー
タは周辺装置への送信データと周辺装置からの受信デー
タの比較処理で両装置間の通信エラーの回復が確認でき
復帰コマンドにより周辺装置を通常処理に復帰させるこ
とにより、ホストコンピュータの管理下で周辺装置のデ
ータ保護が可能となり、通信エラーからの復帰ができる
という効果がある。さらには通信エラー回復時に周辺装
置の動作設定情報をオペレータに対し出力しホストコン
ピュータへ送信することにより、通信エラー復帰時の周
辺装置の状態を把握できるという効果もある。
Further, according to the present invention, the host computer can confirm the recovery of the communication error between the two devices by comparing the data transmitted to the peripheral device with the data received from the peripheral device, and normally process the peripheral device by the return command. By returning to the above, it is possible to protect the data of the peripheral device under the control of the host computer, and it is possible to recover from the communication error. Furthermore, by outputting the operation setting information of the peripheral device to the operator when the communication error is recovered and transmitting it to the host computer, the state of the peripheral device when the communication error is recovered can be grasped.

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

【図1】本発明の一実施例を示す構成図。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】本発明の一実施例であるホストコンピュータと
プリンタの情報処理システムを例としたデータ通信が正
常時に動作する構成要素を示す図。
FIG. 2 is a diagram showing components that operate when data communication is normal in an information processing system of a host computer and a printer as an example of the present invention.

【図3】本発明の一実施例であるホストコンピュータと
プリンタの情報処理システムを例としたデータ通信エラ
ー発生時に動作する構成要素を示す図。
FIG. 3 is a diagram showing components that operate when a data communication error occurs in an information processing system of a host computer and a printer, which is an embodiment of the present invention.

【図4】本発明の一実施例であるホストコンピュータと
プリンタの情報処理システムを例とした通信エラー処理
時およびエラー復帰処理時に動作する構成要素を示す
図。
FIG. 4 is a diagram showing components that operate during communication error processing and error recovery processing in an information processing system of a host computer and a printer that is an embodiment of the present invention.

【図5】本発明の一実施例であるプリンタの処理を示す
フローチャート。
FIG. 5 is a flowchart showing processing of a printer which is an embodiment of the present invention.

【図6】本発明の情報処理システムの一実施例で用いる
ホストコンピュータの動作を示すフローチャート。
FIG. 6 is a flowchart showing the operation of a host computer used in an embodiment of the information processing system of the present invention.

【図7】本発明の復帰コマンドの一実施例を示す図。FIG. 7 is a diagram showing an embodiment of a return command of the present invention.

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

100 ホストコンピュータ 101 ホストコンピュータの通信条件設定手段 102 ホストコンピュータの通信手段 103 ホストコンピュータのコマンド/データ送信手
段 104 ホストコンピュータのデータ受信手段 105 ホストコンピュータの通信エラー検出手段 106 ホストコンピュータの通信エラー通知手段 107 ホストコンピュータの通信条件変更手段 110 周辺装置 111 周辺装置の通信条件設定手段 112 周辺装置の通信手段 113 周辺装置のコマンド/データ受信手段 114 周辺装置の通信エラー検出手段 115 周辺装置のデータ送信手段 116 周辺装置の通信エラー発生通知データへのデー
タ変換手段 117 周辺装置の通常処理中止手段 118 周辺装置のエラーメッセージ出力手段 119 周辺装置の通信条件メッセージ出力手段 120 周辺装置のデータ処理手段 121 周辺装置のコマンド処理手段 122 周辺装置の復帰コマンド処理手段 123 周辺装置の動作設定メッセージ出力手段 124 周辺装置の通常処理復帰手段 200 ホストコンピュータ 201 ホストコンピュータの通信条件設定手段 202 ホストコンピュータの通信手段 203 ホストコンピュータのコマンド送信手段 204 ホストコンピュータのデータ送信手段 210 ホストコンピュータのデータ受信手段 211 ホストコンピュータの通信エラー検出手段 212 ホストコンピュータの通信エラー通知手段 220 ホストコンピュータの通信条件変更手段 221 ホストコンピュータの復帰コマンド準備手段 222 ホストコンピュータの設定情報受信手段 300 プリンタ 301 プリンタの通信条件設定手段 302 プリンタの通信手段 303 プリンタのコマンド/データ受信手段 304 プリンタの通信エラー検出手段 305 プリンタのコマンド解析手段 306 プリンタのコマンド処理手段 307 プリンタのデータ展開手段 308 プリンタのデータ印字手段 310 プリンタの通常処理中止手段 311 プリンタのエラーメッセージ印字手段 312 プリンタの通信条件メッセージ印字手段 313 プリンタの<00H>データ送信手段 320 プリンタの受信データ送信手段 321 プリンタの復帰コマンド確認手段 322 プリンタの設定情報メッセージ印字手段 323 プリンタの設定情報送信確認手段 324 プリンタの設定情報送信手段 701 復帰コマンド例のコマンド部 702 復帰コマンド例の引数部
Reference numeral 100 host computer 101 communication condition setting means for host computer 102 communication means for host computer 103 command / data transmitting means for host computer 104 data receiving means for host computer 105 communication error detecting means for host computer 106 communication error notifying means for host computer 107 Host computer communication condition changing unit 110 Peripheral device 111 Peripheral device communication condition setting unit 112 Peripheral device communication unit 113 Peripheral device command / data receiving unit 114 Peripheral device communication error detecting unit 115 Peripheral device data transmitting unit 116 Peripheral device Data conversion means for communication error occurrence notification data of device 117 Normal processing stopping means of peripheral device 118 Error message output means of peripheral device 119 Communication of peripheral device Condition message output unit 120 Peripheral device data processing unit 121 Peripheral device command processing unit 122 Peripheral device return command processing unit 123 Peripheral device operation setting message output unit 124 Peripheral device normal processing recovery unit 200 Host computer 201 Host computer 201 Communication condition setting means 202 Host computer communication means 203 Host computer command transmitting means 204 Host computer data transmitting means 210 Host computer data receiving means 211 Host computer communication error detecting means 212 Host computer communication error notifying means 220 Host computer Communication condition changing means 221 Host computer return command preparing means 222 Host computer setting information receiving means 300 301 printer communication condition setting means 302 printer communication means 303 printer command / data receiving means 304 printer communication error detecting means 305 printer command analyzing means 306 printer command processing means 307 printer data expanding means 308 printer data Printing means 310 Printer normal processing stopping means 311 Printer error message printing means 312 Printer communication condition message printing means 313 Printer <00H> data transmission means 320 Printer received data transmission means 321 Printer return command confirmation means 322 Printer Setting information message printing means 323 Setting information transmission confirmation means for printer 324 Setting information transmission means for printer 701 Command section of example of return command 702 Return command Examples of argument section

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータとの通信に関する条
件を設定する手段と、ホストコンピュータからのデータ
を受信する手段と、前記データの通信エラーを検出する
手段と、メッセージを出力する手段と、ホストコンピュ
ータへデータを送信する手段とを有する周辺装置におい
て、 通信エラーを検出した場合、予め決められたデータを送
信することによりホストコンピュータへ通知する手段を
有することを特徴とする周辺装置。
1. A means for setting conditions relating to communication with a host computer, a means for receiving data from the host computer, a means for detecting a communication error in the data, a means for outputting a message, and a means for outputting to the host computer. A peripheral device having a means for transmitting data, wherein when a communication error is detected, the peripheral device has means for notifying the host computer by transmitting predetermined data.
【請求項2】 請求項1の周辺装置において、通信エラ
ー発生後に受信したデータに通信エラーが検出されなか
った場合、前記通信エラー発生後に受信したデータをホ
ストコンピュータへ送信する手段を有することを特徴と
する周辺装置。
2. The peripheral device according to claim 1, further comprising means for transmitting the data received after the occurrence of the communication error to the host computer when the communication error is not detected in the data received after the occurrence of the communication error. And peripheral devices.
【請求項3】 請求項1又は2の周辺装置において、通
信エラー発生時に通常処理を中止し、通信エラー発生の
メッセージを出力する手段を有することを特徴とする周
辺装置。
3. The peripheral device according to claim 1, further comprising means for stopping normal processing when a communication error occurs and outputting a communication error occurrence message.
【請求項4】 請求項3の周辺装置において、前記通信
エラー発生のメッセージは当該周辺装置の通信条件に関
する設定情報を含んでなることを特徴とする周辺装置。
4. The peripheral device according to claim 3, wherein the message indicating that the communication error has occurred includes setting information regarding communication conditions of the peripheral device.
【請求項5】 請求項2乃至4の周辺装置において、通
信エラー発生後に復帰コマンドを受信した場合には、当
該周辺装置の現在の動作設定情報を出力し、通常処理へ
復帰する手段を有することを特徴とする周辺装置。
5. The peripheral device according to claim 2, further comprising means for outputting current operation setting information of the peripheral device and returning to normal processing when a return command is received after a communication error occurs. Peripheral device characterized by.
【請求項6】 すくなくとも1本以上のデータ受信線と
すくなくとも1本以上のデータ送信線によりホストコン
ピュータと周辺装置とを接続した情報処理システムにお
いて、周辺装置で通信エラーを検出した場合、周辺装置
に通信エラーが発生していることを予め決められたデー
タを送信することによりホストコンピュータに通知する
ことを特徴とする請求項1乃至5に記載の周辺装置を用
いた情報処理システム。
6. In an information processing system in which a host computer and a peripheral device are connected by at least one or more data receiving lines and at least one or more data transmitting lines, if the peripheral device detects a communication error, the peripheral device detects the communication error. 6. The information processing system using a peripheral device according to claim 1, wherein the host computer is notified by transmitting predetermined data that a communication error has occurred.
【請求項7】 請求項6の情報処理システムにおいて、
通信エラー発生後に受信したデータが正常データであっ
た場合、前記データをそのまま前記ホストコンピュータ
に送信することにより、前記周辺装置に於いて通信エラ
ーが発生していないことを前記ホストコンピュータに通
知することを特徴とする、請求項2乃至5に記載の周辺
装置を用いた情報処理システム。
7. The information processing system according to claim 6,
When the data received after the communication error occurs is normal data, the host computer is notified that the communication error does not occur in the peripheral device by directly transmitting the data to the host computer. An information processing system using the peripheral device according to any one of claims 2 to 5.
【請求項8】 請求項6又は7の情報処理システムにお
いて、前記ホストコンピュータが、通信エラー発生の検
出後に前記周辺装置への送信データと前記周辺装置から
の受信データとの比較処理により前記通信エラーの状態
が解消されたことを検出する手段を有してなることを特
徴とする、請求項2乃至5に記載の周辺装置を用いた情
報処理システム。
8. The information processing system according to claim 6 or 7, wherein the host computer compares the transmission data to the peripheral device with the reception data from the peripheral device after detecting the occurrence of the communication error. 6. An information processing system using the peripheral device according to claim 2, further comprising a means for detecting that the above state has been resolved.
【請求項9】 請求項6乃至8の情報処理システムにお
いて、通信エラー処理実行中に通信状態が正常に回復し
たことを確認後、周辺装置に対し復帰コマンドを送信す
ることにより、周辺装置を通常処理に復帰させることを
特徴とする請求項2乃至5に記載の周辺装置を用いた情
報処理システム。
9. The information processing system according to claim 6, wherein after confirming that the communication state has been restored to normal while the communication error process is being executed, the peripheral device is normally sent by sending a return command to the peripheral device. The information processing system using the peripheral device according to claim 2, wherein the processing is returned to the processing.
JP6081901A 1994-04-20 1994-04-20 Peripheral equipment and information processing system using same Pending JPH07295896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6081901A JPH07295896A (en) 1994-04-20 1994-04-20 Peripheral equipment and information processing system using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6081901A JPH07295896A (en) 1994-04-20 1994-04-20 Peripheral equipment and information processing system using same

Publications (1)

Publication Number Publication Date
JPH07295896A true JPH07295896A (en) 1995-11-10

Family

ID=13759354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6081901A Pending JPH07295896A (en) 1994-04-20 1994-04-20 Peripheral equipment and information processing system using same

Country Status (1)

Country Link
JP (1) JPH07295896A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186688A (en) * 2015-03-27 2016-10-27 日本電気株式会社 Information processing device, device, and recovery method; and computer program
JP2017156624A (en) * 2016-03-03 2017-09-07 キヤノン株式会社 Printer, control method thereof, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186688A (en) * 2015-03-27 2016-10-27 日本電気株式会社 Information processing device, device, and recovery method; and computer program
JP2017156624A (en) * 2016-03-03 2017-09-07 キヤノン株式会社 Printer, control method thereof, and program

Similar Documents

Publication Publication Date Title
US5341363A (en) Computer system capable of disconnecting itself from a lan
JP2007094706A (en) Data processor, system and method for coping with cable connection abnormality
JPH07295896A (en) Peripheral equipment and information processing system using same
JP3604008B2 (en) LAN control device, driver, switching hub, and LAN control device automatic switching system having them
JP3265716B2 (en) Facsimile machine and facsimile system
JP2891135B2 (en) Software failure detection device and software failure detection method
JP2000089921A (en) Method for controlling printing data spool
JPH11296022A (en) Printer
JPH10133524A (en) Copying machine operation monitoring system
JPS59188751A (en) System for detecting abnormality of peripheral device for electronic computer system
JP3424916B2 (en) General-purpose interface control device and general-purpose interface control method
JPH11277854A (en) Printer controller
JP2000013469A (en) Device and method for recovering communication equipment
JPS58225738A (en) Dispersion type transmission system
JPH06311568A (en) Power control system
JP2001290629A (en) Printer control method, printer and printer system
JP2003118206A (en) Printer with function for detecting missing of print page
JP3903298B2 (en) Fire alarm system
JPH10294839A (en) Image forming device
JPH02184948A (en) I/o control system
JP2005018638A (en) Parallel communication control device and method
JPH11184814A (en) Terminal switch device
JPH08205263A (en) Signal transmitter
JPH09319534A (en) Printer error managing method
JPH08241180A (en) Printer connection device for lan