JPH03192930A - Information processor - Google Patents

Information processor

Info

Publication number
JPH03192930A
JPH03192930A JP1333642A JP33364289A JPH03192930A JP H03192930 A JPH03192930 A JP H03192930A JP 1333642 A JP1333642 A JP 1333642A JP 33364289 A JP33364289 A JP 33364289A JP H03192930 A JPH03192930 A JP H03192930A
Authority
JP
Japan
Prior art keywords
data
serial data
reception
transfer
error
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
Application number
JP1333642A
Other languages
Japanese (ja)
Other versions
JP2520178B2 (en
Inventor
Nobuyoshi Ishino
伸佳 石野
Yuji Hojo
北条 裕司
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 JP1333642A priority Critical patent/JP2520178B2/en
Publication of JPH03192930A publication Critical patent/JPH03192930A/en
Application granted granted Critical
Publication of JP2520178B2 publication Critical patent/JP2520178B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To prevent missing of a data by informing generation of an error to a sender side when a reception error takes place at the time of transferring data in the serial data transfer of 2-wire type start-stop synchronism type, and allowing the sender side receiving the information to transfer the data having an error again. CONSTITUTION:The processor consists of a switching means 1, a data retransfer command means 2 and a data retransfer means 3. When an error takes place during the transfer of a serial data, the switching means 1 switches a reception enable signal into a reception disable signal, the data retransfer command means 2 issues the retransmission command of a serial data to the sender side equipment and the sender side equipment receives the command and transfers the serial data again to the receiver side. Thus, missing of data at serial data transfer is prevented.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 この発明は2線式の調歩同期式シリアルデータ転送を行
う情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application This invention relates to an information processing device that performs two-wire asynchronous serial data transfer.

(ロ)従来の技術 従来、この種の情報処理装置におけるデータ転送の信号
としては、送信側装置が出力するシリアルデータ出力T
xDと、受信側装置が出力する送信許可出力RRとがあ
る。シリアルデータの形式は第7図に示すように、8ビ
ツトのデータに対してスタートビットとストップビット
をそれぞれ先行および後行させるような同期形式をとっ
ており、スタートビットは常に“0“であり、また、ス
トップビットは常に“1”である。第8図は従来の転送
処理を説明する図である。同図において受信側は、受信
可能状態であればRRを“High”にし、受信許可信
号であればRRを“Low’にする。−数的には受信中
、または受信完了後は受信データの処理のためにRRを
“Low”にする。これに対し送信側は、送信を行う場
合、RRを参照して送信可能であるかどうかをチエツク
する。そしてRRが“Hlgh”であれば送信可能と判
断し、シリアルデータを受信側に出力する。転送処理は
以下の通りである。すなわち、送信側の処理として、O
印の時点でRRが“High”ならばシリアルデータを
出力する。ΔAにて示すように受信側の処理として、続
けてデータか送信されないよう受信中にRRを“Low
”にする。ΔBにて示すように受信側の処理として、受
信が終了し、次のデータが受信できる状態になると、R
Rを“High”にする。
(B) Conventional technology Conventionally, as a signal for data transfer in this type of information processing device, the serial data output T output by the transmitting device is
xD, and a transmission permission output RR output by the receiving device. As shown in Figure 7, the format of serial data is a synchronous format in which a start bit and a stop bit are placed before and after the 8-bit data, respectively, and the start bit is always "0". , and the stop bit is always "1". FIG. 8 is a diagram illustrating conventional transfer processing. In the figure, the receiving side sets RR to "High" if it is in a state where it can receive data, and sets RR to "Low" if it is a reception permission signal. The RR is set to "Low" for processing. On the other hand, when transmitting, the transmitting side refers to the RR and checks whether it is possible to transmit. If the RR is "High", it is possible to transmit. The serial data is output to the receiving side.The transfer process is as follows.In other words, as the processing on the sending side, O
If RR is "High" at the time marked, serial data is output. As shown by ΔA, as a process on the receiving side, RR is set to “Low” during reception to prevent data from being sent continuously.
”.As shown by ΔB, as a process on the receiving side, when reception is completed and the next data can be received, R
Set R to “High”.

(ハ)発明が解決しようとする課題 しかし上記した2線式の調歩同期式のシリアルデータ転
送では、受信側で送信のエラーを検出した場合、エラー
が発生したことを送信側に知らせることができない。し
たがって、従来の情報処理装置におけるデータ転送にお
いては、受信エラーの発生したデータは無効となり、い
わゆるデータ抜けが発生していた。受信エラーの種類に
は、シリアルデータ形式が規定どおりでないフレーミン
グエラー、受信したデータが規定されたデータではない
データエラー、シリアルデータの各ビットを2回以上サ
ンプリングしている場合に、サンプリング結果が一致し
ないサンプリングエラーなどかある。
(c) Problems to be solved by the invention However, in the two-wire asynchronous serial data transfer described above, if a transmission error is detected on the receiving side, it is not possible to notify the transmitting side that an error has occurred. . Therefore, in data transfer in a conventional information processing apparatus, data in which a reception error has occurred becomes invalid, resulting in so-called data dropout. Types of reception errors include framing errors where the serial data format is not as specified, data errors where the received data is not the specified data, and sampling results that do not match if each bit of the serial data is sampled more than once. There may be a sampling error or something like that.

この発明は以上の事情を考慮してなされたもので、シリ
アルデータ転送時におけるデータの抜けを防止すること
のできる情報処理装置を提供する。
The present invention has been made in consideration of the above circumstances, and provides an information processing device that can prevent data from being dropped during serial data transfer.

(ニ)課−を解決するための手段 第1図はこの発明の基本構成を明示するブロック図であ
る。同図においてこの発明は、送信側装置と受信側装置
とを、データ転送ラインおよび制御信号転送ラインから
なる2本の信号ラインで接続し、調歩同期形式にてシリ
アルデータの転送を行うよう構成した情報処理装置にお
いて、シリアルデータの転送エラーを検出して制御信号
ラインの受信許可信号を受信不可信号に切換えろ切換手
段1と、切換手段!により受信不可信号に切換えられた
際に、シリアルデータの再転送指示を送信側装置に与え
るデータ再転送指示手段2と、データ再転送指示を受け
て再度シリアルデータの転送を行うデータ再転送手段3
とを具備してなる情報処理装置である。
(iv) Means for Solving Problems FIG. 1 is a block diagram showing the basic configuration of the present invention. In the figure, the present invention is configured to connect a transmitting side device and a receiving side device with two signal lines consisting of a data transfer line and a control signal transfer line, and to transfer serial data in an asynchronous format. In an information processing device, a switching means 1 for detecting a serial data transfer error and switching a reception permission signal on a control signal line to a reception disable signal, and a switching means! data retransfer instructing means 2 which gives a serial data retransfer instruction to the transmitting device when the signal is switched to a reception-disabled signal; and data retransfer means 3 which receives the data retransfer instruction and transfers the serial data again.
An information processing device comprising:

この発明における情報処理装置とは、少なくとも送信側
装置と受信側装置とを有するものであればよく、送信側
装置は具体的にはキーボードから構成されていることが
好ましく、また受信側装置は具体的にはオフィスコンピ
ュータ本体、ワードプロセッサ本体等で構成されている
ことが好ましい。また、受信側装置の本体はさらに表示
装置や印字装置等の出力装置を接続していてもよい。
The information processing device in this invention may be any device that has at least a transmitting device and a receiving device, and the transmitting device preferably includes a keyboard, and the receiving device specifically includes a keyboard. Specifically, it is preferable that the computer be configured with an office computer main body, a word processor main body, etc. Further, the main body of the receiving device may further be connected to an output device such as a display device or a printing device.

(ホ)作用 この発明によれば、シリアルデータの転送においてエラ
ーが発生すると、切換手段は受信許可信号を受信不可信
号に切換え、データ再送指示手段は送信側装置に対しシ
リアルデータの再送指示を与え、送信側装置はこれを受
けて再度シリアルデータを受信側に転送するよう作用す
る。
(E) Effect According to the present invention, when an error occurs in the transfer of serial data, the switching means switches the reception permission signal to the reception disable signal, and the data retransmission instruction means instructs the transmitting device to retransmit the serial data. In response to this, the transmitting side device acts to transfer the serial data to the receiving side again.

(へ)実施例 以下図に示す実施例に基づいてこの発明を詳述する。な
お、これによってこの発明は限定されるものではない。
(F) EXAMPLES The present invention will be described in detail below based on examples shown in the figures. Note that this invention is not limited by this.

第2図はこの発明の一実施例である情報処理装置の構成
を示すブロック図である。同図において4は送信側装置
としてのキーボード、5は受信側装置としての情報処理
装置本体(以下本体と呼ぶ)であり、両者はデータ転送
ライン(TxD)6および制御信号転送ライン(RR)
7からなる2本の信号ラインで接続され、キーボード4
から入力されたシリアルデータは調歩同期形式にて本体
5に転送される。
FIG. 2 is a block diagram showing the configuration of an information processing device that is an embodiment of the present invention. In the figure, 4 is a keyboard as a transmitting side device, 5 is an information processing device main body (hereinafter referred to as the main body) as a receiving side device, and both are connected to a data transfer line (TxD) 6 and a control signal transfer line (RR).
Connected by two signal lines consisting of 7, the keyboard 4
The serial data input from the main unit 5 is transferred to the main body 5 in an asynchronous format.

本体5に内蔵されたマイクロコンピュータは、制御ライ
ンRRの出力を制御する。すなわち、シリアルデータの
転送エラーを検出して制御信号ラインRRの受信許可信
号を受信不可信号に切換え、受信不可信号に切換えた際
に、シリアルデータの再転送指示をキーボード4に与え
ろ制御を行う。
A microcomputer built into the main body 5 controls the output of the control line RR. That is, when a serial data transfer error is detected, the reception permission signal on the control signal line RR is changed to a reception disable signal, and when the reception permission signal is switched to the reception disable signal, control is performed to issue a serial data retransfer instruction to the keyboard 4.

また、キーボード4は、本体5からのデータ再転送指示
を受けて再度シリアルデータの転送を行う。
Further, the keyboard 4 receives a data retransfer instruction from the main body 5 and transfers the serial data again.

第3図および第4図は上記情報処理装置のデータ転送処
理を説明する図であり、第3図は正常時、第4図は受信
エラー発生時のデータ転送処理を示す。
3 and 4 are diagrams for explaining the data transfer process of the information processing apparatus, with FIG. 3 showing the data transfer process during normal operation, and FIG. 4 showing the data transfer process when a reception error occurs.

第3図において、正常な場合は、キーボード4側は、R
RがHigh”であれば(O印A)シリアルデータを本
体5に転送し、本体5は受信を開始すると受信を終了す
るまでRRを“Low”にする。
In Fig. 3, in normal case, the keyboard 4 side is R
If R is High (O mark A), the serial data is transferred to the main body 5, and once the main body 5 starts receiving, it keeps RR "Low" until the reception is completed.

そしてキーボード4側は、ストップビット出力終了前に
RRを参照し、“Low”ならば転送が正常に終了した
と判断して転送を終了する。
Then, the keyboard 4 side refers to RR before the stop bit output ends, and if it is "Low", it determines that the transfer has ended normally and ends the transfer.

第4図において、受信エラーが発生した場合、受信エラ
ーを検出すると、ストップビット終了までにRRを“H
igh”にして(ΔC)キーボード4側にエラーを知ら
仕る。キーボード4側はストップビット出力終了前にR
Rを参照することにより転送エラーであると判断する(
○印C)。転送エラーが判断されると、キーボード4側
は再度シリアルデータを転送する。そしてストップビッ
ト出力終了前にRRを参照しくO印B)、“Low”で
あれば転送が正常に終了したと判断して転送を終了する
In Fig. 4, when a reception error occurs, when the reception error is detected, the RR is set to “H” by the end of the stop bit.
(ΔC) to notify the keyboard 4 of the error.The keyboard 4 side presses R before the stop bit output ends.
Determine that there is a transfer error by referring to R (
○ mark C). If a transfer error is determined, the keyboard 4 side transfers the serial data again. Then, before the stop bit output ends, refer to the RR (O mark B), and if it is "Low", it is determined that the transfer has ended normally, and the transfer is ended.

第5図はこの実施例の本体5側の処理を示すフローチャ
ート、第6図は同じくキーボード4側の処理を示すフロ
ーチャートである。
FIG. 5 is a flowchart showing the processing on the main body 5 side of this embodiment, and FIG. 6 is a flowchart showing the processing on the keyboard 4 side.

第5図において、まず受信可能の場合RRをHigh”
にしくステップto−11)、受信不可の場合はRRを
“Low”にする(ステップlO→12)。
In Fig. 5, first, if reception is possible, set RR to High.
Next, step to-11), and if reception is not possible, set RR to "Low" (step IO→12).

ステップ11に次いでデータの受信が開始されると(ス
テップ13)、RRは“Low”にされ(ステップ14
)、次いで受信エラーがあるかどうかを判断する(ステ
ップ15)。ここで受信エラーがなければ次いで受信を
終了したかどうかを判断しくステップ16)、受信が終
了すると受信データの処理を行い(ステップ17)ステ
ップ10に戻る。また、ステップ15において受信エラ
ーが発生したと判断すると、RRを“High”にして
受信エラーをキーボード4側に知らせ(ステップ18)
るとともにステップ13に戻る。
When data reception starts after step 11 (step 13), RR is set to "Low" (step 14).
), then it is determined whether there is a reception error (step 15). If there is no reception error, it is then determined in step 16) whether reception has ended, and when reception is completed, the received data is processed (step 17) and the process returns to step 10. If it is determined that a reception error has occurred in step 15, the RR is set to "High" to notify the keyboard 4 of the reception error (step 18).
At the same time, the process returns to step 13.

第6図において、送信データがあるかどうかを判断しく
ステップ20)、YESの場合、RRが“High”で
あるかどうかを判断しくステップ21)、RRが“Hi
gh“であればシリアルデータを出力しくステップ22
)、次いでストップビット出力終了前にRRが“Low
”であるかどうかを判断し、すなわち受信エラーが発生
していないかを確認しくステップ23)、YESであれ
ばステップ20に戻る。また、ステップ23においてN
Olすなわち受信エラーが発生しているとステップ21
に戻り、シリアルデータの再送を行う。
In FIG. 6, it is determined whether there is transmission data or not (Step 20), and if YES, it is determined whether RR is "High" or not (Step 21).
gh", output serial data. Step 22
), then RR goes “Low” before the stop bit output ends.
”, that is, check whether a reception error has occurred (step 23); if YES, return to step 20.
In other words, if a reception error has occurred, step 21
Return to , and resend the serial data.

(ト)発明の効果 この発明によれば、2線式の調歩同期式のシリアルデー
タ転送において、データ転送時に受信エラーが発生した
場合、送信側にエラーが発生したことを知ら仕、これを
受けて送信側はエラーの発生したデータを再度転送する
ので、データの抜けを防止することができる。
(G) Effects of the Invention According to the present invention, in two-wire asynchronous serial data transfer, if a reception error occurs during data transfer, the transmitting side is notified that an error has occurred, and the transmitter receives the notification. Since the sending side retransmits the data in which the error occurred, it is possible to prevent data from being omitted.

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

第1図はこの発明の基本構成を示すブロック図、第2図
はこの発明の一実施例の構成を示すブロック図、第3図
および第4図は実施例のデータ転送処理を説明するため
の説明図、第5図および第6図は実施例の動作を説明す
るフローチャート、第7図および第8図は従来例のデー
タ転送処理を説明するための説明図である。 l・・・・・・切換手段、 2・・・・・・データ再転送指示手段、3・・・・・・
データ再転送手段。 第 1 図 クギ 区 第 図 正4$時のタイミン7 第 図 第 図 第 図 シリアルデータ形式
FIG. 1 is a block diagram showing the basic configuration of this invention, FIG. 2 is a block diagram showing the configuration of an embodiment of this invention, and FIGS. 3 and 4 are diagrams for explaining the data transfer process of the embodiment. FIGS. 5 and 6 are flowcharts for explaining the operation of the embodiment, and FIGS. 7 and 8 are explanatory diagrams for explaining the data transfer process of the conventional example. l...Switching means, 2...Data retransfer instruction means, 3...
Data retransmission means. Figure 1 Timing 7 at 4-dollar mark Figure Serial data format

Claims (1)

【特許請求の範囲】 1、送信側装置と受信側装置とを、データ転送ラインお
よび制御信号転送ラインからなる2本の信号ラインで接
続し、調歩同期形式にてシリアルデータの転送を行うよ
う構成した情報処理装置において、 シリアルデータの転送エラーを検出して制御信号ライン
の受信許可信号を受信不可信号に切換える切換手段と、
切換手段により受信不可信号に切換えられた際に、シリ
アルデータの再転送指示を送信側装置に与えるデータ再
転送指示手段と、データ再転送指示を受けて再度シリア
ルデータの転送を行うデータ再転送手段とを具備してな
る情報処理装置。
[Claims] 1. The transmitting side device and the receiving side device are connected by two signal lines consisting of a data transfer line and a control signal transfer line, and configured to transfer serial data in a start-stop synchronization format. In the information processing device, the switching means detects a serial data transfer error and switches a reception permission signal on a control signal line to a reception disable signal;
data retransfer instruction means for giving a serial data retransfer instruction to the transmitting device when the switching means switches to a reception-disabled signal; and data retransfer means for receiving the data retransfer instruction and transmitting the serial data again. An information processing device comprising:
JP1333642A 1989-12-22 1989-12-22 Information processing device Expired - Lifetime JP2520178B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1333642A JP2520178B2 (en) 1989-12-22 1989-12-22 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1333642A JP2520178B2 (en) 1989-12-22 1989-12-22 Information processing device

Publications (2)

Publication Number Publication Date
JPH03192930A true JPH03192930A (en) 1991-08-22
JP2520178B2 JP2520178B2 (en) 1996-07-31

Family

ID=18268339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1333642A Expired - Lifetime JP2520178B2 (en) 1989-12-22 1989-12-22 Information processing device

Country Status (1)

Country Link
JP (1) JP2520178B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60153047U (en) * 1984-03-22 1985-10-12 沖電気工業株式会社 data communication equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60153047U (en) * 1984-03-22 1985-10-12 沖電気工業株式会社 data communication equipment

Also Published As

Publication number Publication date
JP2520178B2 (en) 1996-07-31

Similar Documents

Publication Publication Date Title
JPH069361B2 (en) Message transmission method
JPH03192930A (en) Information processor
JP3190869B2 (en) Data transmission method
JPS58164346A (en) Data communication system provided with shifting-down function
JP2735078B2 (en) Communication control method
JP3219070B2 (en) Line restoration method
JP3008689B2 (en) Incorrect cable connection detection method between devices
JP3353759B2 (en) Serial communication method by ATM method
JPH0438618Y2 (en)
JPH01191539A (en) Variable synchronizing character number transmission system
JPS59178832A (en) Simple high-speed transmission system
JPS63267039A (en) Network system
JPH05260125A (en) Data transfer control system
JPH04112534U (en) data transmission equipment
JPS58164371A (en) Picture information transmission system
JPS60226251A (en) Data retransmitting system
JPH02270444A (en) 2-wire full duplex/half-duplex switching device
JPS62118654A (en) Power supply control system
JPH04148259A (en) Communication processing system
JPH01138839A (en) Data terminal adaptor device
JPH0583281A (en) Data transmitting/receiving circuit
JPH0722284B2 (en) Communication control device
JPS6318450A (en) Abnormal operation detector for terminal equipment
JPH04299635A (en) Data transmitter-receiver
JPS61231648A (en) Serial interface system