JPS6264152A - Communication device - Google Patents
Communication deviceInfo
- Publication number
- JPS6264152A JPS6264152A JP60203794A JP20379485A JPS6264152A JP S6264152 A JPS6264152 A JP S6264152A JP 60203794 A JP60203794 A JP 60203794A JP 20379485 A JP20379485 A JP 20379485A JP S6264152 A JPS6264152 A JP S6264152A
- Authority
- JP
- Japan
- Prior art keywords
- code
- xoff
- transmitting
- xon
- transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明は通信装置に係り、特にXON、XOFFコード
によってデータの送受信を制御するXON、XOFFコ
ード送受信装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a communication device, and more particularly to an XON/XOFF code transmitting/receiving device that controls data transmission/reception using XON/XOFF codes.
コンピュータ間の通信は各種開発され、各方面で使用さ
れている。従来、パーソナルコンピュータにおいては、
XOFF/XONを送受信することによって送信データ
等の送信開始あるいは終了等を制御するXOFF/XO
Nコ一ド送受信方式%式%
第4図はXOFF/XONコ一ド送受信方式の従来の回
路構成図である。コンピュータシステム1は通信用LS
I2.通信制御用サブコンピュータ3.受信バッファ4
.送信バッファ5.メインコンピュータ6より成る。通
信回線7には表示装置9を有する端末装置8やコンピュ
ータシステム1の通信用LS12が接続されている。尚
1通信回線7はそれぞれ点Aにおいて接続−している。Various types of communication between computers have been developed and are used in various fields. Conventionally, in personal computers,
XOFF/XO controls the start or end of transmission of transmission data, etc. by transmitting and receiving XOFF/XON.
N-code transmission/reception system % formula % Figure 4 is a conventional circuit configuration diagram of the XOFF/XON code transmission/reception system. Computer system 1 is a communication LS
I2. Communication control subcomputer 3. Receive buffer 4
.. Transmission buffer 5. It consists of a main computer 6. A terminal device 8 having a display device 9 and a communication LS 12 of the computer system 1 are connected to the communication line 7 . Note that each communication line 7 is connected at point A.
端末装置8より何らかのデータがコンピュータシステム
1゛に送信される場合には、先ず、端末装置8へXON
コードが通信用LSI2と通信回線7を介して加わる。When some data is to be sent from the terminal device 8 to the computer system 1, first the XON is sent to the terminal device 8.
A code is applied via the communication LSI 2 and the communication line 7.
XONコードは受信側の装置(この場合にはコンピュー
タシステム)が受信状態であることを端末装置に通知す
るためのコードである。このコードを端末装置8が受信
することによって、前述したように受信側装置が受信状
態であることを端末装置は認識し2通信回線7を介して
コンピュータシステム1ヘデータ等を送信する。The XON code is a code for notifying the terminal device that the receiving device (computer system in this case) is in the receiving state. When the terminal device 8 receives this code, the terminal device recognizes that the receiving side device is in the receiving state as described above, and transmits data etc. to the computer system 1 via the communication line 7.
XOFFコードがコンピュータシステム1より端末装置
8へ送出されるまで、あるいは送出データが無くなるま
で端末装置8はコンピュータシステム1にデータを送出
する。この時1通信用LSI2によって通信回線7より
入力したデータが受信バッファに格納されるので、コン
ピュータシステム1は受信バッファに格納されているデ
ータを取り込む。この動作によって端末装置8のデータ
がコンピュータシステム1に伝送される。尚、コンピュ
ータシステム1が他の処理等によって送信バッファ5に
格納されたデータを取り込むことが一時的にできない場
合にはXOFFコードを送信バッファ5に格納し9通信
用LSI2でそのデータを読出して通信回線7を介して
端末装置8に送信することにより、端末装置8よりのデ
ータの送信を停止させる。The terminal device 8 sends data to the computer system 1 until the XOFF code is sent from the computer system 1 to the terminal device 8 or until there is no more data to send. At this time, the data input from the communication line 7 by the communication LSI 2 is stored in the reception buffer, so the computer system 1 takes in the data stored in the reception buffer. Through this operation, data from the terminal device 8 is transmitted to the computer system 1. Note that if the computer system 1 is temporarily unable to take in the data stored in the transmission buffer 5 due to other processing, etc., the XOFF code is stored in the transmission buffer 5 and the data is read out by the communication LSI 2 and communicated. By transmitting the data to the terminal device 8 via the line 7, the data transmission from the terminal device 8 is stopped.
一方、前述とは逆に端末装置8よりデータの送出要求が
コンピュータシステム1に送出され、指定されたデータ
等をコンピュータシステム1より通信回線7を介して端
末装置8に送る場合には。On the other hand, in contrast to the above, when a data sending request is sent from the terminal device 8 to the computer system 1 and the specified data etc. are sent from the computer system 1 to the terminal device 8 via the communication line 7.
メインコンピュータ6よりまず送信バッファ5に送信す
べきデータが格納される。尚、送信バッファ5に格納さ
れるデータは例えば1バイト単位や1ワード(2バイト
)単位である。そして、送信バッファ5に格納されたデ
ータは通fi用LsI2によって読取られ1通f8回線
7を介して端末装置8に送られる。The data to be transmitted is first stored in the transmission buffer 5 from the main computer 6. Note that the data stored in the transmission buffer 5 is, for example, in units of 1 byte or 1 word (2 bytes). The data stored in the transmission buffer 5 is read by the communication LsI 2 and sent one copy to the terminal device 8 via the f8 line 7.
前述したように従来のXOFF/XONコ一ド送受信方
式においては、コンピュータシステム1は端末装置8か
らのXOFFコードを受信バッファ4を経由してメイン
コンピュータ6に加えるように構成されている。このX
OFFコードが加わったことによってメインコンピュー
タ6から図示しないが通信制御用サブコンピュータ3に
ストップ命令が出力され9通信が停止あるいは終了する
。As described above, in the conventional XOFF/XON code transmission/reception method, the computer system 1 is configured to apply the XOFF code from the terminal device 8 to the main computer 6 via the reception buffer 4. This X
With the addition of the OFF code, a stop command is output from the main computer 6 to the communication control subcomputer 3 (not shown), and 9 communication is stopped or terminated.
このため、端末装置8がコンピュータシステム1に対し
送信を一時的に中断する要求が発生しても。Therefore, even if the terminal device 8 issues a request to the computer system 1 to temporarily suspend transmission.
XOFFコードは受信バッファ4を経由してメインコン
ピュータ6に加わるので、送信データの送出停止には特
定の時間を必要とした。例えば、端末装置8における受
信バッファ4がフルとなった時におけるXOFFコード
の送信であった場合には、前述の特定時間における送出
データが端末装置8では受信できず、データを失ってし
まう。Since the XOFF code is applied to the main computer 6 via the reception buffer 4, a certain amount of time is required to stop sending the transmission data. For example, if the XOFF code is transmitted when the reception buffer 4 in the terminal device 8 is full, the terminal device 8 will not be able to receive the transmitted data at the aforementioned specific time, and the data will be lost.
また、コンピュータシステム1が端末装置8からのデー
タの送出を停止するためにXOFFコードを送出した場
合にも送信バッファ5を介して端末に送出される間受信
が進んでしまい、前述したと同様の受信エラーを発生す
る事がある。Furthermore, even if the computer system 1 sends an XOFF code to stop sending data from the terminal device 8, reception proceeds while data is sent to the terminal via the sending buffer 5, resulting in the same problem as described above. A reception error may occur.
さ゛らにJ例えば受信再開のためにXONコードをコン
ピュータシステム1が端末装置に送出する場合には、送
信バッファ5を経由している分通信が滞るという問題を
有している。Furthermore, when the computer system 1 sends an XON code to a terminal device in order to resume reception, for example, there is a problem in that communication is delayed due to the transmission buffer 5 being passed through.
本発明は前記従来の欠点に鑑み、送受信の開始あるいは
終了さらには中断するためのXOFF/XONコードに
よる制御が正しく行われ、送信あるいは受信するデータ
を正しく伝送するXON。In view of the above-mentioned drawbacks of the conventional technology, the present invention provides an XON in which control using an XOFF/XON code for starting, ending, or interrupting transmission/reception is performed correctly, and data to be sent or received is correctly transmitted.
XOFFコード送受信装置を提供することを目的とした
。The purpose of this invention is to provide an XOFF code transmitting/receiving device.
本発明は上記目的を達成するために、送信バッファに格
納されているデータを通信回線に送出する送信手段と、
前記通信回線より加わるデータを受信バッファに格納す
る受信手段とを有する通信装置において、外部接続機器
よりのXON送出要求信号によってXONコードを発生
し前記通信回線に送出する第1のコード発生手段と、外
部接続機器よりのXOFF送出要求信号によってXOF
Fコードを発生し、前記通信回線に送出する第2のコー
ド発生手段とを設けたことを特徴とした。In order to achieve the above object, the present invention includes a transmitting means for transmitting data stored in a transmitting buffer to a communication line;
A communication device having a receiving means for storing data received from the communication line in a reception buffer, a first code generating means for generating an XON code in response to an XON sending request signal from an externally connected device and sending it to the communication line; XOF is triggered by an XOFF transmission request signal from an externally connected device.
A second code generating means for generating an F code and transmitting it to the communication line is provided.
そして、その作用は以下の如(である。And its effect is as follows.
外部接続機器よりのXON送出要求信号あるいはXOF
F送出要求信号によって前記第1.第2のコード発生手
段で直接XONコードあるいはXOFFコードを発生し
、前記送信バッファを介さずに通信回線にXONコード
あるいはXOFFコードを送出する。また0通信回線よ
り加わるデータがXOFFあるいはXONコードである
かを前記受信バッファを介さずに前記判別手段によって
直接判別し、その結果によって前記送信手段を動作させ
る。XON transmission request signal or XOF from externally connected equipment
F transmission request signal causes the first. The second code generating means directly generates an XON code or an XOFF code, and transmits the XON code or XOFF code to the communication line without going through the transmission buffer. Further, whether the data added from the 0 communication line is an XOFF or XON code is directly determined by the determining means without going through the receiving buffer, and the transmitting means is operated according to the result.
以下1図面を用いて本発明の詳細な説明する。 The present invention will be described in detail below using one drawing.
第1図は本発明の第1の実施例の回路構成図である。尚
9図中において第4図の従来の回路と同等のものは同一
番号を付して説明を省略する。FIG. 1 is a circuit diagram of a first embodiment of the present invention. In FIG. 9, parts equivalent to the conventional circuit shown in FIG. 4 are given the same reference numerals and their explanation will be omitted.
端末装置8より出力された送信データは通信回線7を介
して通信用LSIl0に加わる。通信用LSIl0はた
とえば通信回線7より加わるシリアルデータをパラレル
データに変換して受信バッファや通信制御用サブコンピ
ュータ12に加え。Transmission data output from the terminal device 8 is applied to the communication LSI 10 via the communication line 7. The communication LSI 10 converts serial data input from the communication line 7 into parallel data and adds it to the reception buffer and the communication control subcomputer 12.
また送信バッファ13や通信用サブコンピュータ12よ
り加わるデータをシリアルデータに変換して通信回線7
に出力する回路である。通信用LS110に加わったた
とえばシリアルデータはこの通信用LSIl0でパラレ
ルデータに変換され受信バッファ11と通信制御用サブ
コンピュータ12に出力される。受信バッファ11は通
信用LSI toより加わったデータを一時的に記憶す
る記憶回路であり、メインコンピュータ14に出力され
る。これにより、端末装置8より出力されたデータがメ
インコンピュータ14に伝送される。It also converts the data added from the transmission buffer 13 and communication subcomputer 12 into serial data and connects it to the communication line 7.
This is a circuit that outputs to. For example, serial data applied to the communication LS 110 is converted into parallel data by the communication LS I10 and output to the reception buffer 11 and the communication control subcomputer 12. The reception buffer 11 is a storage circuit that temporarily stores data added from the communication LSI to, and is output to the main computer 14. Thereby, the data output from the terminal device 8 is transmitted to the main computer 14.
また、メインコンピュータ14より送信バッファ13に
出力されたデータは一時的に送信バッファ13に記憶さ
れるとともに通信用LSIl0に出力され、たとえばシ
リアルデータに変換される。Further, data outputted from the main computer 14 to the transmission buffer 13 is temporarily stored in the transmission buffer 13 and outputted to the communication LSI 10, where it is converted into, for example, serial data.
そして通信回線7に通信用LSIl0によって出力され
端末装置8に加わる。前述した基本動作によってメイン
コンピュータ14と端末装置8間におけるデータの伝送
がなされる。The signal is then outputted to the communication line 7 by the communication LSI 10 and added to the terminal device 8. Data is transmitted between the main computer 14 and the terminal device 8 through the basic operations described above.
一方、第1図の本発明の実施例においては通信用LSI
l0を通信制御用サブコンピュータ12が制御する他に
1通信制御用サブコンピュータ12はXONコード、X
OFFコードを発生する機能を有しており端末装置8よ
りデータを受信する時に通信用LSIl0にそのコード
で出力する。On the other hand, in the embodiment of the present invention shown in FIG.
In addition to the communication control subcomputer 12 controlling l0, the communication control subcomputer 12 also controls the XON code,
It has a function of generating an OFF code, and when receiving data from the terminal device 8, outputs the code to the communication LSI 10.
これによってXONコードとXOFFコ一ド間にデータ
が端末装置8より出力され、メインコンピュータ14に
取込まれる。また、受信時における端末装置8へのXO
FFコードすなわち送信中断命令として同様にXOFF
コードが送出される。As a result, data between the XON code and the XOFF code is outputted from the terminal device 8 and taken into the main computer 14. Also, XO to the terminal device 8 at the time of reception
Similarly, XOFF is used as an FF code, that is, a transmission interruption command.
Code is sent.
尚、この動作はメインコンピュータ14より発生するX
OFF送出要求によってなされる。Note that this operation is performed by X generated from the main computer 14.
This is done by an OFF sending request.
前述した動作の他の通信制御用サブコンピュータは1通
信回線7より通信用LSIl0に加わったデータがパラ
レルデータとして変換されて出力された時、そのデータ
がたとえばx o l: Fコードであることを検出す
るXOFFコ一ド険出回路23−を有している。例えば
メインコンピュータ14よりデータを送出中に何らかの
条件(端末装置の受信バッファがフル等)によっ′C端
末装置8.よりXOFFコード(送出中断)が送出され
た時には。Another communication control subcomputer operating as described above recognizes that when the data applied to the communication LSI 10 from the communication line 7 is converted and output as parallel data, the data is, for example, an x o l: F code. It has an XOFF code detection circuit 23-. For example, while data is being sent from the main computer 14, due to some condition (such as the receiving buffer of the terminal device being full), 'C' terminal device 8. When an XOFF code (transmission interruption) is sent.
前述したXOFFコ一ド検出回路23はそのコードを検
出するとともに2通信用LSIに対U7送出を停止する
停止命令を出力する。この中断の指示はメインコンピュ
ータにも加わるが1通信用LS■10に対して通信制御
用サブコンピュータが直接制御するので1例えば送出バ
ッファ13にデータが一時的に格納されていてもそれを
送出する。ことはない。このXOFFコードの検出によ
って直ちに送出が停止するので、端末装置におけるバッ
ファフル時の受信エラーの発生は防止される。The aforementioned XOFF code detection circuit 23 detects the code and outputs a stop command to the 2 communication LSI to stop sending out data to U7. This interruption instruction is also applied to the main computer, but since the communication control subcomputer directly controls the communication LS 10, for example, even if data is temporarily stored in the sending buffer 13, it is sent out. . Never. Since transmission is immediately stopped upon detection of this XOFF code, reception errors are prevented from occurring when the terminal device's buffer is full.
第2図は本発明の第2の実施例の詳細な回路構成図であ
る。FIG. 2 is a detailed circuit diagram of a second embodiment of the present invention.
通信用制御サブコンピュータ12のサブコンピュータ1
5にメインコンピュータ14よりXOFFコードあるい
はXONコードの送出要求信号が加わると、サブコンピ
ュータ15はその送出すべき要求を判別して対応する信
号すなわちX0NR信号あるいはXOFFR信号をタイ
ミング回路16に出力する。タイミング回路16に加わ
るX0NR信号あるいはXOFFR信号は送信における
タイミングと非同期たとえば他の1バイトのデータを送
出中に加わるので、タイミング回路16は送信タイミン
グをとって送出タイミングクロックをXOFFコ一ド発
生回路17あるいはXONコード発生回路18に出力す
る。このタイミングクロックが加わったXOFFコ一ド
発生回路17あるいはXONコード発生回路18は対応
するコードすなわちXOFFコードあるいはXONコー
ドを発生し、データセレクタ19に出力する。一方、X
OFFコ一ド発生回路17やXONコード発生回路18
に加わるタイミング信号はオア回路20にも加わってお
り、どちらか一方の発生タイミングクロックがタイミン
グ回路工6より出力された時にオア回路20より、出力
される様に構成されている。オア回路20の出力はデー
タセレクタ19とオア回路25を介して送信バッファ2
1に加わっており、XOFFコードあるいはXONコー
ドが送出される時には送信バッファ21に格納されてい
るデータをデータセレクタ19に出力しない様にし、さ
らにデータセレクタ19はXOFFコ一ド発生回路17
あるいはXONコーF発生回路18の出力を選択して通
信用LSIl0に加わる様に切換わる。そして通信用り
、 S I 10は加わったコードすなわちXOFFコ
ードあるいはXONコードを要求しない通信回線10に
出力する。尚9通常の送信においては、■、Sl制御回
路24よりオア回路25を介して加わる信号によって送
信バッファ21は格納しているデータをデータセレクタ
に出力する様に構成されている。Subcomputer 1 of communication control subcomputer 12
When a request signal for sending an XOFF code or an XON code is added to the main computer 14 to the subcomputer 15, the subcomputer 15 determines the request to be sent and outputs the corresponding signal, that is, the X0NR signal or the XOFFR signal to the timing circuit 16. The X0NR signal or the XOFFR signal applied to the timing circuit 16 is asynchronous with the timing of transmission, for example, it is applied while another 1 byte of data is being sent, so the timing circuit 16 takes the transmission timing and converts the sending timing clock to the XOFF code generation circuit 17. Alternatively, it is output to the XON code generation circuit 18. The XOFF code generation circuit 17 or XON code generation circuit 18 to which this timing clock is applied generates a corresponding code, that is, an XOFF code or an XON code, and outputs it to the data selector 19. On the other hand,
OFF code generation circuit 17 and XON code generation circuit 18
The timing signal applied to is also applied to the OR circuit 20, and is configured to be output from the OR circuit 20 when either one of the generated timing clocks is output from the timing circuit 6. The output of the OR circuit 20 is sent to the transmission buffer 2 via the data selector 19 and the OR circuit 25.
1, and when the XOFF code or XON code is sent, the data stored in the transmission buffer 21 is not output to the data selector 19, and the data selector 19
Alternatively, the output of the XON code F generation circuit 18 is selected and switched to be added to the communication LSI10. Then, for communication, the S I 10 outputs the added code, ie, the XOFF code or the XON code, to the communication line 10 that does not require it. 9. In normal transmission, the transmission buffer 21 is configured to output stored data to the data selector by a signal applied from the Sl control circuit 24 via the OR circuit 25.
一方9図示しない通信回線より通信用1,5110に加
わったデータは通信用LSIl0によってビットパラレ
ルデータに変換されて出力され受信ハソファ22を介し
てメインコンピュータ14に加わる他に1通信制御用ザ
ブコンピュータ12のXOFFコ一ド検出回路23にも
加わる。XOFFコ一ド検出回路23は通信用LSIよ
り加わるデータがXOFFコードであるか否かを常に検
出しており、検出した時には検出信号をLSI制御回路
24に出力する。LSI制御回路24は。On the other hand, data applied to the communication 1,5110 from a communication line (not shown) is converted into bit parallel data by the communication LSI 10 and output, and is applied to the main computer 14 via the reception sofa 22. It is also added to the XOFF code detection circuit 23. The XOFF code detection circuit 23 constantly detects whether data applied from the communication LSI is an XOFF code, and outputs a detection signal to the LSI control circuit 24 when detected. The LSI control circuit 24 is.
検出信号が加わった時には1通信用LS I 10に対
し送信停止信号を出力し、送信バッファ21に格納され
ているデータの送信を停止する。When the detection signal is added, a transmission stop signal is output to the 1 communication LSI 10, and transmission of the data stored in the transmission buffer 21 is stopped.
第3図は本発明の実施例のXON/XOFFコードの送
出タイミングチャート図である。尚2通信回線はフルデ
ューブレクスであり、同時に送受信ができる時のタイミ
ングチャートである。送信バッファ21にデータA、B
、C,Dが加わり。FIG. 3 is a timing chart for transmitting the XON/XOFF code according to the embodiment of the present invention. The two communication lines are full duplex, and the timing chart shows a case where transmission and reception can be performed at the same time. Data A and B in the transmission buffer 21
, C, and D are added.
一時的に記憶されて、順次送信バッファより送信タイミ
ングに同期して出力される。この時にはデータセレクタ
19への入力はLレベルであるので。The data is temporarily stored and sequentially outputted from the transmission buffer in synchronization with the transmission timing. At this time, the input to the data selector 19 is at L level.
データセレクタエ9は送信バッファ21の出力を選択し
て通信用LSIl0に出力する。よって。The data selector 9 selects the output of the transmission buffer 21 and outputs it to the communication LSI 10. Therefore.
通信回路にはメインコンピュータ14よす加わるデータ
信号が出力される。前述した様に通信回線はフルデュー
プレクスであるので、同時に通信回線にはデータ信号Z
、Y、X、W・・・が加わって台り3通信用t、5ri
oを介して受信バッファ22に順次格納される。この状
態において、何らかの処ITJの要求がメインコンピュ
ータ14にタトえば他の装置より加わり、受信処理が出
来ない状態となった時にはメインコンピュータ14は通
信用サブコンピュータ12のサブコンピュータ15に対
し、XOFFコードの送出要求信号を加える。A data signal applied to the main computer 14 is output to the communication circuit. As mentioned above, the communication line is full duplex, so at the same time the data signal Z
, Y, X, W... are added to make platform 3 communication t, 5ri
The data are sequentially stored in the reception buffer 22 via the In this state, if a processing ITJ request is sent to the main computer 14 from another device, and if reception processing becomes impossible, the main computer 14 sends an XOFF code to the subcomputer 15 of the communications subcomputer 12. A transmission request signal is added.
このXOFF送出要求信号によってサブコンピュータ1
5はタイミング回路1GにXOFF送信信号XOFFR
を出力する■。XOFF送出信号によりタイミング回路
16は送出タイミングクロ、ツクに同期した信号を出力
する。この信号によってオア回路16を介してデータセ
レクタ19にHレベルが加わるのでデータセレクタ19
はXoFF発生回路17より加わる信号を選択して通信
用し3110に出力する。この選択によってXOFFコ
一ド発生回路17より出力されたXOF’Fコードが送
信データDと送信データEの間に挿入され送出される。This XOFF sending request signal causes the subcomputer 1 to
5 is the XOFF transmission signal XOFR to the timing circuit 1G.
■ Output. In response to the XOFF sending signal, the timing circuit 16 outputs a signal synchronized with the sending timing clock. This signal applies an H level to the data selector 19 via the OR circuit 16, so the data selector 19
selects the signal applied from the XoFF generation circuit 17 and outputs it to 3110 for communication. By this selection, the XOF'F code output from the XOFF code generation circuit 17 is inserted between the transmission data D and the transmission data E and is transmitted.
たとえば、このデータを受信している端末装置はXOF
Fコードを受信した時には送信を停止する。このXOF
Fコードのデータ送出は送信バッファを介さずに送出さ
れるので、たとえば送信バッファ21にデータE、Fが
格納されていてもそのデータより前に送出される。尚、
第2図に示した本発明の実施例の回路を端末装置も有し
ており、端末装置はそのXOFFコードを受信するとた
だちに送出を停止する。第3図においてはXOFFコー
ドが送出されている時に端末装置はデータVを送出して
いるが3本発明の効果によって直接XOFFコードを検
出するので、データV以後の送出をただちに停止する。For example, the terminal device receiving this data is
Transmission is stopped when the F code is received. This XOF
Since the data of the F code is sent out without passing through the transmission buffer, for example, even if data E and F are stored in the transmission buffer 21, they are sent out before that data. still,
A terminal device also has the circuit according to the embodiment of the present invention shown in FIG. 2, and the terminal device stops transmitting immediately upon receiving the XOFF code. In FIG. 3, the terminal device is transmitting data V while the XOFF code is being transmitted, but as the effect of the present invention is to directly detect the XOFF code, transmission of data V and subsequent data is immediately stopped.
メインコンピュータ14によるたとえば他の処理が終了
し。For example, other processing by the main computer 14 ends.
受信処理が可能となった時に、メインコンピュータ14
はXONコードを送出する要求を通信用サブコンピュー
タ12に加え、前述したXOFFコードと同様にただち
にXONコードが送出@される。これにより、端末装置
より続くデータU、 T・・・が送出される。一方、端
末装置側での処理によって受信が出来ない状態となった
時には、端末装置はXOFFコードを送出する。よって
前述した様にXOFFコ一ド検出回路でそのコードを検
出し、そのコードを受信している時に送出していたデー
タL後のデータの送出を停止する。尚。When reception processing becomes possible, the main computer 14
sends a request to the communication subcomputer 12 to send an XON code, and the XON code is immediately sent in the same manner as the XOFF code described above. As a result, subsequent data U, T, . . . are sent from the terminal device. On the other hand, when the terminal device becomes unable to receive data due to processing on the terminal device side, the terminal device sends an XOFF code. Therefore, as described above, the XOFF code detection circuit detects this code and stops sending the data after data L that was being sent when the code was being received. still.
送信データバッファ21には続(送出すべきデータがた
とえば2バイト格納されているがLSI制御回路24よ
り送出停止信号が通信用LS I 10に出力されてい
るので8回線に出力されることはない。さらに、その送
出停止信号はオア回路25を介して送信バッファ21に
も加わるので、送信バッファ21より出力されることも
なく、送信停止(中断)におけるデータの消失もない。The transmission data buffer 21 stores the data to be transmitted (for example, 2 bytes), but since the LSI control circuit 24 outputs a transmission stop signal to the communication LSI 10, it is not output to the 8th line. Furthermore, since the transmission stop signal is also applied to the transmission buffer 21 via the OR circuit 25, it is not output from the transmission buffer 21, and no data is lost when transmission is stopped (interrupted).
そして。and.
その停止は端末装置より後に送出されるXONコードを
受信し、メインコンピュータ14で検出すれ、メインコ
ンピュータ14より通信用サブコンピュータ12を介し
てLSI制御回路2イに送信再開信号がHレベルOとな
って加わることによって再開される。The stop is performed by receiving the XON code sent later from the terminal device, detecting it in the main computer 14, and sending the transmission restart signal from the main computer 14 to the LSI control circuit 2a via the communication subcomputer 12 at H level O. restarted by joining.
以上1本発明を説明したが1本発明はメインコンビ二一
タと端末装置間のデータ伝送に限らず。Although the present invention has been described above, the present invention is not limited to data transmission between a main converter and a terminal device.
たとえばコンピュータと他のコンピュータとのデータ伝
送環、XON、XOFFコードによって制御してデータ
の伝送を行う装置に対して応用することが可能である。For example, the present invention can be applied to a data transmission link between a computer and another computer, or to a device that transmits data by controlling it using XON and XOFF codes.
さらに2本発明を対向する装置にそれぞれ設けることも
可能である。さらに。Furthermore, it is also possible to provide two of the present inventions in opposing devices. moreover.
本発明の実施例においてはXOFFコードで受信した時
にただちに送信を停止する様に構成されているが、これ
はXOFFコードに限らず、たとえばさらにXONコー
ドの検出回路をも付加することによってXONコードの
受信時におけるデータ送出応答を速くすることも可能で
ある。In the embodiment of the present invention, transmission is immediately stopped when an XOFF code is received, but this is not limited to the XOFF code.For example, by adding an XON code detection circuit, It is also possible to speed up the data transmission response at the time of reception.
以上述べた様に本発明は2メインコンピユータ等によっ
て発生し、送信バッファに格納されているデータよりも
先にメインコンピュータより要求されたXONコードあ
るいはXOFFコードを送出するので、送出に要する時
間は短く受信におけるエラーの発生が防止できるととも
に2回線より加わるXOFFコードを受信した時にはた
だちに送信を停止するので、受信装置側における受信エ
ラーの発生を防止でき1本発明によれば送受信の開始あ
るいは終了さらには中断するためのXOFF/XONコ
ードによる制御が正しく行われ、送出あるいは受信デー
タを正しく伝送するXON。As described above, the present invention is generated by two main computers, etc., and transmits the XON code or XOFF code requested by the main computer before the data stored in the transmission buffer, so the time required for transmission is short. The occurrence of errors in reception can be prevented, and since transmission is immediately stopped when an XOFF code added from two lines is received, the occurrence of reception errors on the receiving device side can be prevented. An XON that is correctly controlled by the XOFF/XON code for interruption and that transmits sending or receiving data correctly.
XOFFコード送受信装置をiりることかできる。You can also remove the XOFF code transmitter/receiver.
第1図は本発明の第1の実施例の回路構成図。
第2図は本発明の第2の実施例の詳細な回路構成図。
第3図は本発明の実施例のXON/XOFFコードの送
出タイミングチャー1−図。
第4図は従来のXOFF/XON送受信方式の回路構成
図である。
2.10・、・・通信用LSI。
3.12・・・通信制御用サブコンピュータ。
4.22・・・受信パンツ1゜
5.21・・・送信バッファ。
16・・・タイミング回路。
17・・・XOFFコ一ド発生回路。
1日・・・XONコード発生回路。
23・・・XOFFコ一ド検出回路。
24・・・LSI制御回路。
特許出願人 カシオ計算機株式会社本発明4+の爽
慎乞伊J/1回鱗八゛図第1図
本光θFl七2峨知PJh詳悶7回升構双図第2図FIG. 1 is a circuit configuration diagram of a first embodiment of the present invention. FIG. 2 is a detailed circuit configuration diagram of a second embodiment of the present invention. FIG. 3 is a timing chart 1 for transmitting an XON/XOFF code according to an embodiment of the present invention. FIG. 4 is a circuit diagram of a conventional XOFF/XON transmission/reception system. 2.10... LSI for communication. 3.12... Communication control subcomputer. 4.22...Receiving pants 1゜5.21...Sending buffer. 16...timing circuit. 17...XOFF code generation circuit. 1st...XON code generation circuit. 23...XOFF code detection circuit. 24...LSI control circuit. Patent Applicant: Casio Computer Co., Ltd. Soushin Kyoui J/1st Scale Diagram of Invention 4+ Figure 1 Main Light θFl 72 Echi PJh Detailed 7th Scale Diagram Figure 2
Claims (9)
に送出する送信手段(13、10)と、前記通信回線よ
り加わるデータを受信バッファに格納する受信手段(1
1、10)とを有する通信装置において、外部接続機器
よりのXON送出要求信号によってXONコードを発生
し前記通信回線に送出する第1のコード発生手段(12
、18)と、外部接続機器よりのXOFF送出要求信号
によってXOFFコードを発生し、前記通信回線に送出
する第2のコード発生手段(12、17)とを設けたこ
とを特徴としたXON、XOFFコード送受信装置。(1) Transmitting means (13, 10) for transmitting data stored in a transmitting buffer to a communication line, and receiving means (1) for storing data added from the communication line in a receiving buffer.
1, 10), a first code generating means (12) for generating an XON code in response to an XON transmission request signal from an externally connected device and transmitting it to the communication line;
, 18) and second code generation means (12, 17) for generating an XOFF code in response to an XOFF transmission request signal from an externally connected device and transmitting it to the communication line. Code transmitting and receiving device.
XOFFコードあるいはXONコードの少なくとも一方
のコードであるか否かを判別する判別手段を有し、前記
判別手段の判別結果によって前記送信手段が動作するこ
とを特徴とした特許請求の範囲第1項記載のXON、X
OFFコード送受信装置。(2) The receiving means has a discriminating means for discriminating whether the data applied from the communication line is at least one of an XOFF code or an XON code, and the transmitting means operates according to the discriminating result of the discriminating means. XON, X according to claim 1, characterized in that
OFF code transmitting/receiving device.
ードが検出された時に前記送信バッファに格納されてい
るデータの送信を停止することを特徴とした特許請求の
範囲第2項記載のXON、XOFFコード送受信装置。(3) The XON, XOFF code according to claim 2, wherein the transmitting means stops transmitting the data stored in the transmitting buffer when the XOFF code is detected by the determining means. Transmitting/receiving device.
のコード発生手段よりXONコード、XOFFコードを
発生する時には前記切換手段は前記第1、第2のコード
発生手段の出力を選択して回線に出力する様に切換わる
ことを特徴とした特許請求の範囲第1項記載のXON、
XOFFコード送受信装置。(4) The transmitting means has a switching means, and the first and second
When the code generating means generates the XON code and the XON described in range 1,
XOFF code transmitting/receiving device.
接続機器よりXONコード、XOFFコードの少なくと
も一方の送信要求が加わった時に、前記タイミング発生
手段は送信データのタイミング信号に同期して前記切換
手段を切換えることを特徴とした特許請求の範囲第4項
記載のXON、XOFFコード送受信装置。(5) The transmission means has a timing generation means, and when a transmission request for at least one of an XON code and an XOFF code is applied from an externally connected device, the timing generation means switches the switching in synchronization with the timing signal of the transmission data. The XON/XOFF code transmitting/receiving device according to claim 4, characterized in that the means is switched.
ONコードの送信タイミング信号とXOFFコードの送
信タイミング信号とが前記オアゲートに加わり、前記オ
アゲートの出力が前記切換手段に加わることを特徴とし
た特許請求の範囲第5項記載のXON、XOFFコード
送受信装置。(6) The timing generating means has an OR gate, and
The XON and XOFF code transmitting/receiving device according to claim 5, wherein an ON code transmission timing signal and an XOFF code transmission timing signal are applied to the OR gate, and an output of the OR gate is applied to the switching means. .
徴とした特許請求の範囲第1項記載のXON、XOFF
コード送受信装置。(7) The XON and XOFF according to claim 1, wherein the externally connected device is a computer.
Code transmitting and receiving device.
行うことを特徴とした特許請求の範囲第1項記載のXO
N、XOFFコード送受信装置。(8) The XO according to claim 1, wherein the communication line performs serial bit data transmission.
N, XOFF code transmitting/receiving device.
に送出する送信手段と、前記通信回線より加わるデータ
を受信バッファに格納する受信手段を有する通信装置に
おいて、前記受信バッファと通信回線間に設けられ通信
回線よりXOFFが加わるか否かを判別する判別手段と
、前記判別手段によってXOFFコードを判別した時に
前記送信手段の送信を停止する制御手段とを有すること
を特徴としたXON、XOFFコード送受信装置。(9) In a communication device having a transmitting means for transmitting data stored in a transmitting buffer to a communication line, and a receiving means for storing data added from the communication line in a receiving buffer, the transmitting means is provided between the receiving buffer and the communication line. XON, XOFF code transmission and reception, characterized in that it has a determining means for determining whether or not an XOFF is applied from a communication line, and a control means for stopping the transmission of the transmitting means when the determining means determines the XOFF code. Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60203794A JPH0616632B2 (en) | 1985-09-14 | 1985-09-14 | Communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60203794A JPH0616632B2 (en) | 1985-09-14 | 1985-09-14 | Communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6264152A true JPS6264152A (en) | 1987-03-23 |
| JPH0616632B2 JPH0616632B2 (en) | 1994-03-02 |
Family
ID=16479854
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60203794A Expired - Fee Related JPH0616632B2 (en) | 1985-09-14 | 1985-09-14 | Communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0616632B2 (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS54159822A (en) * | 1978-06-08 | 1979-12-18 | Fujitsu Ltd | Character processing system |
| JPS5983239A (en) * | 1982-11-04 | 1984-05-14 | Fujitsu Ltd | Character processing system of line adapter |
-
1985
- 1985-09-14 JP JP60203794A patent/JPH0616632B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS54159822A (en) * | 1978-06-08 | 1979-12-18 | Fujitsu Ltd | Character processing system |
| JPS5983239A (en) * | 1982-11-04 | 1984-05-14 | Fujitsu Ltd | Character processing system of line adapter |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0616632B2 (en) | 1994-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5111461A (en) | Communication control system | |
| KR100261149B1 (en) | Pci ethernet controller and method for controlling the same | |
| JPH04326828A (en) | Control circuit for half double/simplex interface in communication system | |
| JP2738229B2 (en) | Serial data communication controller | |
| JPH0616632B2 (en) | Communication device | |
| JPS63164554A (en) | Automatic recognizing system for data speed | |
| KR100208280B1 (en) | Data transmission device having a first-in first-out control | |
| JPH11177543A (en) | Serial communication equipment and its method | |
| KR100290677B1 (en) | Automatic restart apparatus of fifo(first input first output) device | |
| JPH0567024A (en) | Data processing system | |
| KR100427789B1 (en) | Data input / output method | |
| KR950003519B1 (en) | Data error examining method in control system | |
| JP2630077B2 (en) | Clock synchronous serial interface | |
| JPH064456A (en) | Data transfer controller | |
| JPS62122439A (en) | Start-stop synchronization system transmission system | |
| JPH0463035A (en) | Transmission system identifying method for modem | |
| JPS60117846A (en) | Data transmission system | |
| JPH0581187A (en) | Data transfer device | |
| JPS63184855A (en) | Serial data transfer equipment | |
| JPH0556024A (en) | Time division direction control transmission system | |
| JPH04119034A (en) | Dual loop control system in information processing system | |
| JPS6229339A (en) | Data communication system | |
| KR950022514A (en) | Communication port control method of a single processor communicating with a plurality of systems and apparatus therefor | |
| JPS6110343A (en) | Error generating device | |
| KR910014293A (en) | Data transmission method of elevator |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |