JPH06326748A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH06326748A
JPH06326748A JP4262680A JP26268092A JPH06326748A JP H06326748 A JPH06326748 A JP H06326748A JP 4262680 A JP4262680 A JP 4262680A JP 26268092 A JP26268092 A JP 26268092A JP H06326748 A JPH06326748 A JP H06326748A
Authority
JP
Japan
Prior art keywords
data
transmission
capacity
signal
reception
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
JP4262680A
Other languages
Japanese (ja)
Other versions
JP2546218B2 (en
Inventor
Kazuyoshi Haruhara
一義 春原
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4262680A priority Critical patent/JP2546218B2/en
Publication of JPH06326748A publication Critical patent/JPH06326748A/en
Application granted granted Critical
Publication of JP2546218B2 publication Critical patent/JP2546218B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain efficient data transmission reception by counting the number of times of occurrence of a transmission tentative pause state and controlling a receiver side to be an optimum state depending on the result of count. CONSTITUTION:A clock with a predetermined frequency from a clock generating section 24 is fed to a terminal CK of a communication LSI 12. Moreover, a RAM 26 is a RAM reading/writing reception data or the like under the control of a CPU 11 and made up of a communication buffer and an FDD or the like. The communication buffer is a reception buffer and its capacity is selected so that a free area is in existence by taking the capacity of a sent data file into account. Then the capacity of the communication buffer is controlled variably by the CPU 11 in response to an occurrence rate of a transfer OFF signal indicating a tentative pause signal for data transmission.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ通信装置に関す
る。
FIELD OF THE INVENTION The present invention relates to a data communication device.

【0002】[0002]

【発明の概要】本発明は、受信側でのデータ処理の遅れ
によって発生する送信データの送信一時休止状態の発生
をカウントしてそのカウント結果に応じ、受信側のバッ
ファの容量を可変制御することにより、効率よくデータ
通信の送受信が行えるデータ通信装置である。
SUMMARY OF THE INVENTION The present invention counts the occurrence of a transmission suspension state of transmission data caused by a delay in data processing on the receiving side, and variably controls the capacity of a buffer on the receiving side according to the count result. The data communication device is capable of efficiently transmitting and receiving data communication.

【0003】[0003]

【従来の技術】従来、データ通信装置においては、デー
タの送受信の開始に際し、受信側が先ず、スタートコー
ドを送信側に送信し、次いでこれに応じて送信側がデー
タの送信を開始するようになっている。そしてデータの
送信中に、受信側でのデータ処理(データのキャラクタ
変換やエラーチェック、FDD等の外部記憶装置への書
込み等の処理)時間がデータ送信スピードより遅くな
り、受信側のバッファが容量不足になったときには、受
信側は送信側に転送オフ信号を送信してデータ送信を一
時休止させ、またその後データ処理によってバッファに
余裕ができると、受信側は転送オン信号を送信してデー
タ送信を開始させるようになっている。
2. Description of the Related Art Conventionally, in a data communication device, when starting transmission / reception of data, the receiving side first transmits a start code to the transmitting side, and in response to this, the transmitting side starts transmitting data. There is. During data transmission, the data processing time on the receiving side (processing such as data character conversion, error checking, writing to external storage such as FDD) becomes slower than the data transmission speed, and the buffer on the receiving side has a large capacity. When there is a shortage, the receiving side sends a transfer off signal to the sending side to pause the data transmission, and when the buffer becomes available for data processing thereafter, the receiving side sends a transfer on signal and sends the data. Is designed to start.

【0004】[0004]

【発明が解決しようとする課題】この場合、データの送
受信に際して、送受信機のボーレートをユーザが経験的
に設定しているが、受信側でのデータ処理が遅い場合に
は、速いボーレートでデータを送信しているにもかかわ
らず、しばしば転送オフ信号が発生して、結果的に遅い
ボーレートによって送信の一時休止を少なくデータを送
信している場合より、却ってデータ送信に時間がかかっ
てしまうという問題があった。本発明の課題は、送信一
時休止状態の発生をカウントしてそのカウント結果に応
じ受信側を最適な状態に制御することにより、効率よく
データ送受信が行えるようにすることである。
In this case, the user empirically sets the baud rate of the transmitter / receiver when transmitting / receiving the data. However, when the data processing on the receiving side is slow, the data is transmitted at the high baud rate. The problem that the transfer off signal often occurs even though the data is being transmitted, and as a result, the data transmission takes a longer time than when the data is being transmitted with less transmission pause due to the slow baud rate. was there. An object of the present invention is to enable efficient data transmission / reception by counting the occurrence of a transmission pause state and controlling the receiving side to an optimum state according to the count result.

【0005】[0005]

【課題を解決するための手段】本発明の手段は以下の通
りである。図1は本発明の機能ブロック図である。同図
において、1は送信機等を備えた送信手段で、2は受信
機等を備えて送信手段1との間でデータ通信が行なわれ
る受信手段である。3はカウント手段で、受信手段2の
処理スピードの遅れに伴って生じるデータ送信の一時休
止状態の発生をカウントする。4はこのカウント手段3
のカウント結果に応じて、受信手段1に対し、そのバッ
ファの容量を変化させる制御手段である。
The means of the present invention are as follows. FIG. 1 is a functional block diagram of the present invention. In FIG. 1, reference numeral 1 is a transmitting means including a transmitter and the like, and 2 is a receiving means including a receiver and the like, for performing data communication with the transmitting means 1. A counting unit 3 counts the occurrence of a pause state of data transmission that occurs due to a delay in the processing speed of the receiving unit 2. 4 is this counting means 3
It is a control means for changing the capacity of the buffer for the receiving means 1 according to the counting result of.

【0006】[0006]

【作 用】本発明の手段の作用は以下の通りである。送
信手段1が、この送信手段1との間でデータ通信が行な
われる受信手段2にデータを送信している際、受信手段
2のデータ処理の遅れ等から、受信手段2が送信手段1
に対し送信の一時休止信号を送信すると、この信号はカ
ウント手段3によってカウントされる。そしてデータの
一時休止は、次に受信手段2が送信手段1に対し解除信
号を送信するまで続行する。カウント手段3のカウント
結果は制御手段4に与えられ、而して制御手段4はその
カウント結果を判断して、受信手段2に対し、バッファ
の容量を変化させる制御を行い、最適なスピードで効率
よくデータの送受信が行われる。
[Operation] The operation of the means of the present invention is as follows. When the transmitting means 1 is transmitting data to the receiving means 2 that performs data communication with the transmitting means 1, the receiving means 2 causes the transmitting means 1 to operate due to a delay in data processing of the receiving means 2.
When a temporary stop signal for transmission is transmitted to, the signal is counted by the counting means 3. Then, the temporary suspension of data continues until the receiving means 2 transmits a release signal to the transmitting means 1. The count result of the count means 3 is given to the control means 4, and the control means 4 judges the count result and controls the receiving means 2 to change the capacity of the buffer, thereby achieving efficiency at an optimum speed. Data is often sent and received.

【0007】[0007]

【第1実施例】以下、図2ないし図4を参照して本発明
の第1実施例を説明する。
[First Embodiment] A first embodiment of the present invention will be described below with reference to FIGS.

【0008】構 成 図2は、送信装置および受信装置の要部の回路構成図で
ある。この場合、この要部の回路構成は、送信装置と受
信装置で同一である。いま、図2の回路を送信装置とす
ると、CPU11はこの送信装置の全動作を制御する制
御プログラム、演算回路等から成り、装置内の各回路に
各制御信号やデータを供給する。
Configuration FIG. 2 is a circuit configuration diagram of essential parts of the transmission device and the reception device. In this case, the circuit configuration of the main part is the same in the transmitter and the receiver. Now, assuming that the circuit of FIG. 2 is a transmitting device, the CPU 11 comprises a control program for controlling all operations of the transmitting device, an arithmetic circuit, etc., and supplies respective control signals and data to each circuit in the device.

【0009】通信LSI12はCPU11の制御下に、
受信装置へデータを送信し、また受信装置からのXOF
F信号(一時休止信号を意味する転送OFF信号)、X
ON信号(データ送信の一時休止の解除信号)を受信す
る回路である。この場合、前記データや信号は、インタ
ーフェース13を介し受信装置間で送受信される。そし
て通信LSI12は、CPU11からデータバス14を
介しデータを供給され、またCPU11からR/W(リ
ード/ライト)制御信号を供給される。
The communication LSI 12 is under the control of the CPU 11.
Sends data to the receiver and also XOF from the receiver
F signal (transfer OFF signal meaning a pause signal), X
It is a circuit that receives an ON signal (a signal for canceling a pause of data transmission). In this case, the data and signals are transmitted and received between the receiving devices via the interface 13. Then, the communication LSI 12 is supplied with data from the CPU 11 via the data bus 14, and is also supplied with an R / W (read / write) control signal from the CPU 11.

【0010】アドレスデコーダ15はCPU11からの
アドレスデータを解読するデコーダであり、その出力信
号の1つは通信LSI12のCE端子にチップイネーブ
ル信号として供給され、また他の信号はラッチ16のC
K端子にクロックとして供給される。このラッチ16に
は、CPU11からのデータがデータバス14を介し供
給される。そしてラッチ16は供給されたデータの内容
に応じ、何れかが“1”信号となる信号A、B、C、D
を出力する。
The address decoder 15 is a decoder for decoding address data from the CPU 11, one of its output signals is supplied to the CE terminal of the communication LSI 12 as a chip enable signal, and the other signals are C of the latch 16.
It is supplied to the K terminal as a clock. Data from the CPU 11 is supplied to the latch 16 via the data bus 14. Then, the latch 16 outputs signals A, B, C, and D, each of which becomes a "1" signal in accordance with the content of the supplied data.
Is output.

【0011】信号A、B、C、Dは夫々、対応するアン
ドゲート17、18、19、20の各一端に入力する。
アンドゲート17、18、19、20の各他端には、水
晶発振器25を備えたクロックジェネレータ24が出力
する9600ボー、4800ボー、2400ボー、12
00ボーの各周波数をもったクロックが入力する。そし
てアンドゲート17、18の各出力信号はオアゲート2
1を介しオアゲート23に入力し、またアンドゲート1
9、20の各出力はオアゲート22を介しオアゲート2
3に入力し、またオアゲート23からの出力クロックは
通信LSI12の端子TXCK、RXCKに送信用クロ
ックおよび受信用クロックとして与えられている。
The signals A, B, C and D are input to the respective one ends of the corresponding AND gates 17, 18, 19 and 20, respectively.
The other ends of the AND gates 17, 18, 19 and 20 are 9600 baud, 4800 baud, 2400 baud and 12 output from a clock generator 24 having a crystal oscillator 25.
A clock with each frequency of 00 baud is input. The output signals of the AND gates 17 and 18 are the OR gate 2
Input to OR gate 23 via 1 and AND gate 1
The outputs of 9 and 20 are supplied to the OR gate 2 via the OR gate 22.
3 and the output clock from the OR gate 23 is given to the terminals TXCK and RXCK of the communication LSI 12 as a transmission clock and a reception clock.

【0012】動 作 次に、図3のフローチャートおよび図4のタイムチャー
トを参照し、動作を説明する。
[0012] Operation Next, with reference to the flowchart and time charts of FIG. 4 in FIG. 3, the operation will be described.

【0013】先ず、送信装置側の動作から説明すると、
装置は受信装置からの送信開始時のスタートコードとボ
ーレートメッセージとの受信待ち状態にあり(ステップ
S1)、そして受信装置からスタートコードとボーレー
トメッセージとが送られてくると送信装置内のCPU1
1は、ボーレートメッセージに応じた、例えば信号Aだ
けを“1”とするデータをデータバス14に出力してラ
ッチ16にラッチさせる。そのためアンドゲート17〜
20のうちアンドゲート17だけが閉成し、クロックジ
ェネレータ24からの9600ボーのクロックがアンド
ゲート17、オアゲート21、23を介し通信LSI1
2の端子TXCK、RXCKに印加される(ステップS
2)。なお、このステップS2の通信LSI12の初期
設定動作は、受信装置側においても同様である。
First, the operation of the transmitter will be described.
The device is in a waiting state for receiving the start code and the baud rate message at the start of transmission from the receiving device (step S1), and when the start code and the baud rate message are sent from the receiving device, the CPU 1 in the transmitting device
1 outputs the data corresponding to the baud rate message, for example, only the signal A is "1" to the data bus 14 and causes the latch 16 to latch it. Therefore AND gate 17〜
Only the AND gate 17 of 20 is closed, and the 9600 baud clock from the clock generator 24 is passed through the AND gate 17, OR gates 21 and 23 to the communication LSI 1
2 is applied to the terminals TXCK and RXCK (step S
2). The initial setting operation of the communication LSI 12 in step S2 is the same on the receiving device side.

【0014】次に、送信装置はデータの送信を開始す
る。この場合、データは通信LSI12、インターフェ
ース13を介し受信装置側へ送信される。そしてその送
信中、送信しているデータファイルが終了したか否かを
ステップS3にて判断し(END OF FILE)、
NOであれば1キャラクタ分送信し(ステップS4)、
CPU11が有する送信カウンタ(TXCT)をインク
リメントする(ステップS5)。そしてデータファイル
の1ブロック分のデータ送信の終了か否かを判断する
(ステップS6)。また1ブロック分の送信終了まで、
ステップS3〜S6を繰返し、1キャラクタ分づつのデ
ータ送信を行う。
Next, the transmitter starts transmitting data. In this case, the data is transmitted to the receiving device side via the communication LSI 12 and the interface 13. Then, during the transmission, it is judged in step S3 whether or not the data file being transmitted is completed (END OF FILE),
If NO, one character is transmitted (step S4),
The transmission counter (TXCT) of the CPU 11 is incremented (step S5). Then, it is determined whether or not the data transmission for one block of the data file is completed (step S6). Also, until the transmission of one block is completed,
Steps S3 to S6 are repeated to transmit data for each character.

【0015】1ブロック分のデータ送信が終ると、ステ
ップS6からS7に進み、1ブロック送信終了コードE
OB(END OF BLOCKまたはCR)を送信し
(ステップS7)、次いでXOFF信号(転送OFF信
号)の発生率が指定値以上か否かの判断処理を行う(ス
テップS8)。そして指定値以下であればステップS3
に戻って次のブロックのデータ送信を再開し、他方、指
定値以上であるとボーレートの変更を行い、そのメッセ
ージを受信装置側へ送信する(ステップS9)。そして
ステップS2に戻る。
When the data transmission for one block is completed, the process proceeds from step S6 to S7 and the one-block transmission end code E
OB (END OF BLOCK or CR) is transmitted (step S7), and then it is determined whether or not the occurrence rate of the XOFF signal (transfer OFF signal) is equal to or higher than a specified value (step S8). If it is less than the specified value, step S3
Then, the data transmission of the next block is restarted, and if it is the specified value or more, the baud rate is changed and the message is transmitted to the receiving device side (step S9). Then, the process returns to step S2.

【0016】この場合、前記ステップS8のXOFF信
号の発生率の判断は次式によって行う。
In this case, the determination of the generation rate of the XOFF signal in step S8 is performed by the following equation.

【数1】 但し、 XOFFC:XOFF信号受信回数 XONC:XON信号受信回数 VC:1キャラクタの送信スピード WOFF:XOFF〜XON間の時間 TXCT:送信トータルキャラクタ数 したがって前記指定とは50%となる。そして50%以
上となったときには、それまで送信していたボーレート
よりスピードの遅いボーレートのメッセージを受信装置
側へ送信し、例えば、いまの例では9600ボーであっ
たから、4800ボーのボーレートを送信し、そのため
CPU11は信号Bのみを“1”とするデータをラッチ
16に与えてアンドゲート18から4800ボーのクロ
ックを出力させ、送信LSI12に与える処理を送信装
置、受信装置とも同時に行う。
[Equation 1] However, XOFFC: Number of XOFF signal receptions XONC: Number of XON signal receptions VC: Transmission speed of one character WOFF: Time between XOFF and XON TXCT: Total number of transmission characters Therefore, the above designation is 50%. When it reaches 50% or more, a message with a baud rate that is slower than the baud rate that has been transmitted until then is transmitted to the receiving device side. For example, in the present example, it was 9600 baud, so a baud rate of 4800 baud is transmitted. Therefore, the CPU 11 applies the data for setting only the signal B to "1" to the latch 16 and causes the AND gate 18 to output the clock of 4800 baud, and simultaneously performs the processing of supplying the transmission LSI 12 to the transmission device and the reception device.

【0017】1ファイル分のデータ送信が終了するとス
テップS3からステップS10に進み、信号EOF(E
ND OF FILE)を送信する。
When the data transmission for one file is completed, the process proceeds from step S3 to step S10, and the signal EOF (E
ND OF FILE).

【0018】前記ステップS3〜S8の処理中に、受信
装置側から受信データの処理遅れに伴うXOFF信号が
送信されてきた場合、送信装置側はその信号を受信し
(ステップS11)、CPU11内のXOFFC(XO
FFカウンタ)をインクリメントする(ステップS1
2)。そしてこのデータ送信の一時休止を解除する信号
XONの送信待ちとなる(ステップS13)。而してこ
の間、信号XOFFとXON間の時間WOFFをCPU
11内のカウンタによりカウントする。
During the processing of steps S3 to S8, if an XOFF signal is transmitted from the receiving device side due to the processing delay of the received data, the transmitting device side receives the signal (step S11), and the CPU 11 in the CPU 11 receives the signal. XOFFC (XO
The FF counter) is incremented (step S1)
2). Then, the system waits for the transmission of the signal XON for canceling the suspension of the data transmission (step S13). Therefore, during this time, the time WOFF between the signals XOFF and XON is set to the CPU.
The counter in 11 counts.

【0019】次に、受信装置側の動作を説明すると、デ
ータ受信の開始に先だち、先ず、所定のボーレートをそ
の設定ファイルから読取り(ステップS14)、ボーレ
ートメッセージとスタートコードとを送信装置へ送信す
る(ステップS15)。そして自身の通信LSI12に
もそのボーレートのクロックを供給開始する(ステップ
S16)。そして送信データの受信待ちとなる(ステッ
プS17)。次に、ボーレートの切換メッセージの受信
の有無を判断し(ステップS18)、而して最初はNO
となるからステップS20に進み、送信データの1キャ
ラクタ分を受信バッファから読取ってキャラクタ変換、
エラーチェック等の処理を行う。そして受信バッファの
容量をダウンカウントするBFセットカウンタをデクリ
メントし(ステップS21)、次いでそのカウント値が
受信バッファの有効容量以下となり、且つXOFF信号
の送信直後か否かを判断する(ステップS22)。而し
てNOであればステップS23によりXON信号を送信
し、他方、YESであれば直ちにステップS24に進
み、EOL(1ブロックのデータ送信の終了)か、或い
はまたEOF(1ファイル分のデータ送信の終了)か否
かを判断する。そしてYESのときには、ステップS2
5に進み、NOのときにはステップS26に進む。
Next, the operation of the receiving device will be described. Before the start of data reception, first, a predetermined baud rate is read from its setting file (step S14), and a baud rate message and a start code are transmitted to the transmitting device. (Step S15). Then, the clock of the baud rate is also started to be supplied to the own communication LSI 12 (step S16). Then, it waits for reception of the transmission data (step S17). Next, it is judged whether or not the baud rate switching message has been received (step S18), and it is initially NO.
Therefore, the process proceeds to step S20, where one character of transmission data is read from the reception buffer and character conversion is performed.
Perform processing such as error checking. Then, the BF set counter for down-counting the capacity of the reception buffer is decremented (step S21), and then it is determined whether or not the count value becomes equal to or less than the effective capacity of the reception buffer and immediately after the transmission of the XOFF signal (step S22). If NO, then the XON signal is transmitted in step S23, while if YES, the process immediately proceeds to step S24, where EOL (end of data transmission for one block) or EOF (data transmission for one file). End)) or not. If YES, step S2
5, the process proceeds to step S26 if NO.

【0020】尚、前記受信バッファの有効容量は、その
有効長に更に数キャラクタ分の余分の容量をもってい
る。ステップS25では、FDDへの受信データの書込
み処理を行い、またステップS26では、1ファイル分
の受信終了か否かを判断する。そしてNOのときにはス
テップS17に戻り、他方、YESのときにはデータ受
信が終了する。
The effective capacity of the reception buffer has an extra capacity of several characters in its effective length. In step S25, the process of writing the received data to the FDD is performed, and in step S26, it is determined whether the reception of one file is completed. If NO, the process returns to step S17, and if YES, the data reception ends.

【0021】ステップS18において、ボーレート切換
メッセージの受信を判断したときには、あらたなボーレ
ートを設定ファイルへ書込み、またラッチ16に他のデ
ータをラッチさせて通信LSI12への供給クロックを
替える(ステップS19)。
When it is determined in step S18 that the baud rate switching message has been received, the new baud rate is written in the setting file, and other data is latched in the latch 16 to change the clock supplied to the communication LSI 12 (step S19).

【0022】また、データの受信動作は、送信データを
1キャラクタ分受信バッファへセットし(ステップS2
7)、またBFセットカウンタをインクリメントし(ス
テップS28)、次いでそのカウント値が受信バッファ
の有効容量以上になったか否かを判断する(ステップS
29)。そしてNOのときには次の1キャラクタ分のデ
ータ受信動作に入る一方、YESのときには、XOFF
信号を送信装置へ送信して、データ送信の一時休止を要
求する。
In the data receiving operation, the transmission data for one character is set in the reception buffer (step S2).
7) Also, the BF set counter is incremented (step S28), and then it is determined whether or not the count value is equal to or larger than the effective capacity of the reception buffer (step S28).
29). When NO, the next data receiving operation for one character is started, and when YES, XOFF is performed.
Send a signal to the transmitter to request a pause in data transmission.

【0023】[0023]

【第2実施例】次に、図5および図6を参照して第2実
施例を説明する。この第2実施例は、前記第1実施例が
XOFF信号が指定回数より多く発生したときボーレー
トを変化させたことに対し、受信バッファの容量を変化
させようとするものである。
Second Embodiment Next, a second embodiment will be described with reference to FIGS. In the second embodiment, the baud rate is changed when the XOFF signal is generated more than the specified number of times in the first embodiment, but the capacity of the receiving buffer is changed.

【0024】構 成 図5は受信装置側の要部回路構成図を示す。而して送信
装置側の要部回路構成は図2と同一である。そして図5
と図2の同一構成部には同一番号を付してその説明を省
略する。
Configuration FIG. 5 shows a circuit configuration diagram of a main part on the receiving device side. The circuit configuration of the main part on the transmitter side is the same as in FIG. And FIG.
2 are denoted by the same reference numerals, and the description thereof will be omitted.

【0025】図5において、クロックジェネレータ24
からの一定周波数のクロック、例えば9600ボーのク
ロックが通信LSI12のCK端子に供給されている。
またRAM26はCPU11によって受信データ等をリ
ード/ライトされるRAMであり、その詳細構成は図6
に示すように、通信用バッファ26A、FDD26B等
から成る。通信用バッファ26Aは、前記受信バッファ
であり、送信されてくるデータファイルの容量に対し空
きエリアが存在するようにその容量を設定されている。
そしてこの通信用バッファ26Aの容量はXOFF信号
の発生率に応じてCPU11により可変制御される。
In FIG. 5, the clock generator 24
A clock having a constant frequency from, for example, a 9600 baud clock is supplied to the CK terminal of the communication LSI 12.
The RAM 26 is a RAM to / from which received data and the like are read / written by the CPU 11, and its detailed configuration is shown in FIG.
As shown in FIG. 5, it comprises a communication buffer 26A, an FDD 26B and the like. The communication buffer 26A is the reception buffer, and its capacity is set so that there is an empty area with respect to the capacity of the transmitted data file.
The capacity of the communication buffer 26A is variably controlled by the CPU 11 according to the generation rate of the XOFF signal.

【0026】動 作 上記構成により、受信装置のCPU11は、送信装置の
11同様に、第1実施例で説明した(1)式の計算をデ
ータ受信の際に実行する。そして、XOFF信号の発生
率が指定値以上なら受信装置側のCPU11が、その発
生率に応じて通信用バッファ26Aの容量の変更を実行
する。これにより、常に、そのときのボーレートに対応
した容量の通信用バッファ26Aが用意され、データ受
信の効率の向上がはかられる。
[0026] By operating the above configuration, CPU 11 of the receiving device 11 likewise the transmission apparatus, performing calculations of the equation (1) described in the first embodiment at the time of data reception. If the generation rate of the XOFF signal is equal to or higher than the specified value, the CPU 11 on the receiving device side changes the capacity of the communication buffer 26A according to the generation rate. As a result, the communication buffer 26A having a capacity corresponding to the baud rate at that time is always prepared, and the efficiency of data reception can be improved.

【0027】[0027]

【発明の効果】以上説明したように、本発明は、例えば
受信側でのデータ処理の遅れ等によって発生する送信デ
ータの送信一時休止状態の発生をカウントしてそのカウ
ント結果に応じ、受信側のバッファの容量を可変制御す
るようにしたデータ通信装置であるから、最適な送信ス
ピードでデータの送信が行われ、また受信側でも無駄な
休止状態もなく受信を行うことができ、したがって効率
よくデータ通信の送受信が行える利点がある。
As described above, according to the present invention, the occurrence of the transmission suspension state of the transmission data caused by the delay of the data processing on the receiving side is counted, and the receiving side of the receiving side is detected according to the count result. Since it is a data communication device that variably controls the capacity of the buffer, data can be transmitted at the optimum transmission speed, and the receiving side can also receive without wasteful idle state. There is an advantage that communication can be sent and received.

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

【図1】本発明の機能ブロック図。FIG. 1 is a functional block diagram of the present invention.

【図2】要部の回路構成図。FIG. 2 is a circuit configuration diagram of a main part.

【図3】フローチャート。FIG. 3 is a flowchart.

【図4】タイムチャート。FIG. 4 is a time chart.

【図5】要部の回路構成図。FIG. 5 is a circuit configuration diagram of a main part.

【図6】RAM26の具体的構成図。FIG. 6 is a specific configuration diagram of a RAM 26.

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

11 CPU 12 通信LSI 15 アドレスデコーダ 16 ラッチ 24 クロックジェネレータ 26A 通信用バッファ 26B FDD 11 CPU 12 Communication LSI 15 Address Decoder 16 Latch 24 Clock Generator 26A Communication Buffer 26B FDD

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 送信手段と、 この送信手段との間でデータ通信が行なわれる受信手段
と、 この受信手段で生じる送信データの送信一時休止状態の
発生をカウントするカウント手段と、 前記受信手段において、前記カウント手段のカウント結
果に応じバッファの容量を可変制御する制御手段とを備
えてなるデータ通信装置。
1. A transmitting means, a receiving means for performing data communication with the transmitting means, a counting means for counting the occurrence of a transmission suspension state of transmission data occurring in the receiving means, and the receiving means. A data communication device comprising: a control unit that variably controls the capacity of the buffer according to the count result of the counting unit.
JP4262680A 1992-09-07 1992-09-07 Data communication device Expired - Lifetime JP2546218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4262680A JP2546218B2 (en) 1992-09-07 1992-09-07 Data communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4262680A JP2546218B2 (en) 1992-09-07 1992-09-07 Data communication device

Publications (2)

Publication Number Publication Date
JPH06326748A true JPH06326748A (en) 1994-11-25
JP2546218B2 JP2546218B2 (en) 1996-10-23

Family

ID=17379101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4262680A Expired - Lifetime JP2546218B2 (en) 1992-09-07 1992-09-07 Data communication device

Country Status (1)

Country Link
JP (1) JP2546218B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE40497E1 (en) 1996-04-16 2008-09-09 Silicon Laboratories Inc. Communication system which dynamically switches sizes of sample buffer between first size for quick response time and second size for robustness to interrupt latency
JP2014110526A (en) * 2012-11-30 2014-06-12 Yamaha Corp Buffer size determination method and device for network reception buffer, and network session system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5199422A (en) * 1975-02-28 1976-09-02 Oki Electric Ind Co Ltd

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5199422A (en) * 1975-02-28 1976-09-02 Oki Electric Ind Co Ltd

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE40497E1 (en) 1996-04-16 2008-09-09 Silicon Laboratories Inc. Communication system which dynamically switches sizes of sample buffer between first size for quick response time and second size for robustness to interrupt latency
JP2014110526A (en) * 2012-11-30 2014-06-12 Yamaha Corp Buffer size determination method and device for network reception buffer, and network session system

Also Published As

Publication number Publication date
JP2546218B2 (en) 1996-10-23

Similar Documents

Publication Publication Date Title
JP3860215B2 (en) Half-duplex UART control for single-channel bidirectional wireless communication
JPH04142642A (en) Information processor having communication function
KR100225320B1 (en) Packet output device and method thereof
JPS609292B2 (en) Time interval length control method between data blocks
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JP2546218B2 (en) Data communication device
EP0893019A1 (en) Multiplex communication interface circuit and method
JPH0510437Y2 (en)
CN110727619B (en) Communication system based on SDIO interface and data transmission method
JPH09331370A (en) Data communication equipment
EP0285335B1 (en) Data communication system and method
JPH09128015A (en) Remote i/o system for plc
JP3230339B2 (en) Communication control device
JPH0234518B2 (en)
KR100703450B1 (en) Common i/o part controll apparatus and method capable of decreasing load of cpu in a radio communication terminal
KR950003659B1 (en) Asynchronous transmission device fitting for small computer system interface
JP2573210B2 (en) Communications system
JPH11122418A (en) Facsimile/printer composite equipment
JP2615621B2 (en) Output control device for facsimile terminal
JPH06244901A (en) Communication information transmission controller
JPH084276B2 (en) Full-duplex data transfer device
JPS62193440A (en) Transmission buffer control system
JPH0530367A (en) Communication controller
JPH03108930A (en) Asynchronous communication system
JPS62104249A (en) Break signal transmission system