JPH0264838A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPH0264838A
JPH0264838A JP63215147A JP21514788A JPH0264838A JP H0264838 A JPH0264838 A JP H0264838A JP 63215147 A JP63215147 A JP 63215147A JP 21514788 A JP21514788 A JP 21514788A JP H0264838 A JPH0264838 A JP H0264838A
Authority
JP
Japan
Prior art keywords
flag
data
transmission
reception
buffer
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
JP63215147A
Other languages
Japanese (ja)
Inventor
Nobuaki Ishioka
石岡 暢明
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63215147A priority Critical patent/JPH0264838A/en
Publication of JPH0264838A publication Critical patent/JPH0264838A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To prevent the occurrence of the drop of a data frame since a reception buffer comes to a full state by transmitting a reception buffer full informing flag to an opposite side, and transmitting data from the opposite side by means of the state of the flag. CONSTITUTION:The transmission central processing unit (CPU) 12 of a communication controller (CCE) 1 transmits the reception buffer full information flag on a self side, which is stored in a shared memory 16 to the opposite side, namely a CCE 1' side. On the CCE 1' side, reception CPU 13' sets the reception buffer full flag on the opposite side in a shared memory 16', or resets the flag. Thus, the CCE 1 side can supervise the data stored state of the reception buffer 6 on the CCE 1 side, and it can transmit data to be CCE 1 side by the state, and therefore the overrunning of the reception buffer 6 can be prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、データ通信に用いる受信バッファのデータ格
納状態を管理す、る通信制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a communication control device that manages the data storage state of a reception buffer used for data communication.

(従来の技術) 通信制御装置は、人出力制御装置の一種であり、これに
接続される端末装置は一般に遠隔地にあり、その間は伝
送用機器を含む通信回線で接続されている。そして、こ
の通信制御装置は伝送用機器の制御・監視や通信回線上
で生ずる伝送誤りに対する誤り制御などの機能を必要と
する。主要機能としては、インタフェースの整合、シリ
アル・パラレル変換、伝送制御、バッファリングなどが
ある。
(Prior Art) A communication control device is a type of human output control device, and terminal devices connected thereto are generally located at remote locations, and are connected by a communication line including transmission equipment. This communication control device requires functions such as control and monitoring of transmission equipment and error control for transmission errors occurring on communication lines. Key functions include interface matching, serial-to-parallel conversion, transmission control, and buffering.

第5図はこの種の従来の通信制御装置を示すブロック図
である。
FIG. 5 is a block diagram showing this type of conventional communication control device.

図において、通信制御装置(以下、CCEと記す)1.
1′は全二重式通信回線2を介して接続されている。そ
れぞれのCCEI、1′は、中央処理装置(以下、CP
Uと記す)切換えスイッチ3.3′を通して上位装置で
あるCPU群41.42・・・4n及び41’  42
’・・・4n’に接続されている。CCEl、1′は、
それぞれ、送受信に際してデータを一時格納する送信バ
ッファ5.5′ と受信バッファ6.6′を備えている
In the figure, communication control equipment (hereinafter referred to as CCE) 1.
1' are connected via a full-duplex communication line 2. Each CCEI, 1' is a central processing unit (hereinafter referred to as CP
CPU groups 41, 42...4n and 41' 42, which are host devices, are
'...4n' is connected. CCEl, 1' is
Each of them is provided with a transmission buffer 5.5' and a reception buffer 6.6' for temporarily storing data during transmission and reception.

CPU切替スイッチ3.3′は、それぞれ、CCE 1
.1′とCPU群41 ・・4 n及び41’・・・4
n’ との間を時分割して切替える。
The CPU selector switches 3 and 3' are CCE 1, respectively.
.. 1' and CPU group 41...4 n and 41'...4
n' in a time-sharing manner.

第2図は、CCE 1、ビの何れかが通信回線2に送信
データを転送単位の送信フレームに変換して送出する際
のフレームフォーマットを示す図である。図示のように
、送信フレームは、このフレームの開始及び終了を示す
フラグシーケンス71、このフレームを送受信する局の
アドレスを示す識別フィールド(以下、IDと記す)7
2、このフレームがコマンドの場合相手局に対する動作
指令を示し、レスポンスの場合コマンドフレームの指令
に対する応答等を示す制御フィールド73、データ情報
を示すデータ部74、フレームチエツク符合を示すCR
CC(cyclic redundancycheck
 code ) 75から構成されている。
FIG. 2 is a diagram showing a frame format when either CCE 1 or CCE converts transmission data into a transmission frame in units of transfer and sends it to the communication line 2. As shown in the figure, the transmission frame includes a flag sequence 71 indicating the start and end of this frame, and an identification field (hereinafter referred to as ID) 7 indicating the address of the station that transmits and receives this frame.
2. If this frame is a command, it indicates an operation command to the partner station; if it is a response, it indicates a control field 73 that indicates a response to the command in the command frame, a data section 74 that indicates data information, and a CR that indicates a frame check code.
CC (cyclic redundancy check)
code) 75.

以上のように構成された通信制御装置は次のように動作
する。
The communication control device configured as described above operates as follows.

先ず、送信側の上位装置であるCPU群41〜4nのう
ちのCPU4nからCPU切替スイッチ3を介して送信
命令及び送信データが同じ送信側のCCEIに送出され
る。CCElは送信命令を受けると、送信データを送信
バッファ5に一時格納する。そして、CP U 4 n
に送信命令受領ステータスを返送、報告する。その後C
CE1は、送信バッファ5に一時格納されている送信デ
ータを第2図に示した送信フレームに変換し、この送信
フレームを通信回線2に送出する。この通信回線2に送
出された送信フレームは、受信側のCCEI’ により
受信され、その中の受信バッファ6′に一時格納される
。ここで、上位装置のうちのCPU4n  から受信命
令を受けると、CCEI’は、既に受信バッファ6′に
格納されている受信フレームのID72が上述の受信命
令で指定されたIDと一致するか否かをチエツクする。
First, a transmission command and transmission data are sent from the CPU 4n of the CPU group 41 to 4n, which is a host device on the transmission side, to the CCEI on the same transmission side via the CPU changeover switch 3. When CCEl receives a transmission command, it temporarily stores the transmission data in the transmission buffer 5. And CPU 4 n
Return and report the sending order receipt status. Then C
The CE 1 converts the transmission data temporarily stored in the transmission buffer 5 into the transmission frame shown in FIG. 2, and sends this transmission frame to the communication line 2. The transmission frame sent to the communication line 2 is received by the CCEI' on the receiving side and temporarily stored in the receiving buffer 6' therein. Here, when receiving a receive command from the CPU 4n of the host device, the CCEI' checks whether the ID 72 of the receive frame already stored in the receive buffer 6' matches the ID specified in the above-mentioned receive command. Check.

ID72が一致しているときは、この受信データをCP
U4n’ に転送し、同時にCPU4n’ に対して受
信命令終了ステータスを報告する。
If the ID72 matches, this received data is sent to the CP.
It is transferred to U4n' and at the same time reports the reception command completion status to CPU4n'.

上述の動作は、CPU4n  からCCEI’に対して
送信命令が出されたときも、逆の経路で同様に実施され
る。この場合は、CCEI’からCCE 1に送信フレ
ームが送られ、CCEIで受信されたデータは、CPU
4nからの受信命令でCPU4nに転送される。
The above-mentioned operation is similarly carried out in the reverse direction when a transmission command is issued from the CPU 4n to the CCEI'. In this case, a transmission frame is sent from CCEI' to CCE 1, and the data received at CCEI is sent to the CPU
The data is transferred to the CPU 4n in response to a reception command from the CPU 4n.

以上に示した従来の通信制御装置においては、片側のC
PU群から頻繁に送信命令が出されると、受信側のCC
Hの受信バッファにオーバーランが生じ、そのような場
合は、上位装置のプログラムにより、落ちたフレームの
再送を実施していた。
In the conventional communication control device shown above, one side of the C
If the PU group issues transmission commands frequently, the CC on the receiving side
When an overrun occurs in the H reception buffer, the dropped frame is retransmitted by a program in the host device.

(発明が解決しようとする課題) しかしながら、近年は高速ディジタル回線が普及してい
るため、データ通信速度が増加し、又CPU群からの送
信命令が非同期に発生しており、このため受信命令に対
し同期が取り難くなってきている。従って、受信バッフ
ァにオーバーランが発生した場合に上述したように、上
位装置のプログラムにより再試行を実施すると、回線の
使用効率が低下するという問題があった。
(Problem to be solved by the invention) However, in recent years, as high-speed digital lines have become widespread, data communication speeds have increased, and transmission commands from CPU groups are generated asynchronously. However, it is becoming difficult to synchronize. Therefore, when an overrun occurs in the reception buffer, as described above, if a retry is performed by the program of the host device, there is a problem that the efficiency of using the line decreases.

本発明は以上の点に着目してなされたもので、送信側C
CEが受信側のCCHの受信バッファのデータ格納状態
をダイナミックに監視し、容■の余裕がなくなってきた
ときは送信命令を一時遮断して受信しないようにできる
通信制御装置を提供することを目的とするものである。
The present invention has been made focusing on the above points, and
An object of the present invention is to provide a communication control device in which a CE can dynamically monitor the data storage state of a receiving buffer of a CCH on the receiving side, and when capacity is running out, temporarily interrupts transmission commands and prevents reception. That is.

(課題を解決するための手段) 本発明は、上位装置にそれぞれ接続され、かつ互いに通
信回線を介して接続され、上位装置からの指令に従って
それらの間のデータの送受信を制御する通信制御装置に
おいて、上位装置からの指令によりデータを受信し一時
格納する受信バッファと、この受信バッファに第1規定
値以上の受信データが格納されたとき受信バッファの格
納データが第1規定値以上であることを示す受信バッフ
ァフル連絡フラグをセットし、上記第1規定値より小さ
な他の第2規定値以下になったとき上記受信バッファフ
ル連絡フラグをリセットする手段と、上記上位装置から
送信命令を受け送信フレームを送出するとき、上記受信
バッファフル連絡フラグを検査し、このフラグが立って
いるときは上記送信フレームの制御部の所定ビットを1
°°に設定し、このフラグが立っていないときは0゛′
を設定して送信フレームを送出するフラグ設定手段と、
上記送信フレームを受信し、その制御部の所定ビットが
°゛1°°のときは上記受信バッファに上記規定値以上
の受信データが格納されている旨を示す受信バッファフ
ルフラグを設定し、“Oooのときはこのフラグをリセ
ットする手段と、上位装置から送信命令を受けたとき、
上記受信バッファフルフラグを検査し、このフラグが立
っているときは、送信すべきデータを上記上位装置から
受取らず、この上位装置に上記受信バッファが上記規定
値以上のデータを格納している旨を報告する手段とを備
えたことを特徴とするものである。
(Means for Solving the Problems) The present invention provides a communication control device that is connected to each host device and connected to each other via a communication line, and controls the transmission and reception of data between them according to commands from the host device. , a reception buffer that receives and temporarily stores data according to a command from a host device; and a reception buffer that detects that the data stored in the reception buffer is greater than or equal to the first specified value when the received data of a first specified value or more is stored in this reception buffer. means for setting a receive buffer full notification flag indicating the first specified value, and resetting the receive buffer full notification flag when the value falls below another second specified value smaller than the first specified value; When transmitting a frame, the reception buffer full notification flag is checked, and if this flag is set, a predetermined bit in the control section of the transmission frame is set to 1.
Set to °°, and 0゛′ when this flag is not set.
a flag setting means for setting and transmitting a transmission frame;
When the transmission frame is received and the predetermined bit of the control unit is ゛1゜, the reception buffer full flag is set to indicate that the reception buffer stores reception data equal to or greater than the specified value. When it is Ooo, there is a means to reset this flag, and when receiving a transmission command from the host device,
The above reception buffer full flag is checked, and if this flag is set, it indicates that the data to be transmitted is not received from the above upper device, and the above reception buffer is storing data in excess of the above specified value in this higher order device. The invention is characterized by having a means for reporting information.

(作用) 以上の通信制御装置は、上位装置からの指令によりデー
タを受信する受信バッファにデータが所定値以上溝たさ
れると、その旨を示すフラグを送信フレームに立てて送
信側に送出する。送信側ではこのフレームを受信して検
査し、受信側の受信バッファのデータ格納状態に従って
データを送信するようにする。これにより、受信バッフ
ァが格納データで満たされていることに起因するデータ
のフレーム落ちの発生を防止することができる。
(Function) The above communication control device sets a flag indicating this in the transmission frame and sends it to the transmission side when the reception buffer that receives data is filled with more than a predetermined value according to a command from the host device. . The transmitting side receives and inspects this frame, and transmits data according to the data storage state of the receiving buffer on the receiving side. Thereby, it is possible to prevent data frames from being dropped due to the reception buffer being filled with stored data.

(実施例) 以下、本発明の実施例を詳細に説明する。(Example) Examples of the present invention will be described in detail below.

第1図は本発明の通信制御装置の一実施例を示すブロッ
ク図である。この第1図において、第5図の従来例と同
−又は対応する部分には同一の符合を付し、その説明は
適宜省略することにする。
FIG. 1 is a block diagram showing an embodiment of a communication control device of the present invention. In FIG. 1, parts that are the same as or correspond to those in the conventional example shown in FIG. 5 are given the same reference numerals, and their explanation will be omitted as appropriate.

図において、CCEl、1′は、従来例と同様に全二重
式回線2を介して接続され、又CPU切換えスイッチ3
.3′を通して上位装置のCPU群41.42、・・・
4n及び41’  42’  ・・・4n’ に接続さ
れている。
In the figure, CCEl, 1' is connected via a full-duplex line 2 as in the conventional example, and a CPU changeover switch 3
.. 3' to the CPU groups 41, 42, . . . of the host device.
4n and 41'42' . . . 4n'.

CCE 1.1′は、それぞれ送信データ及び受信デー
タを一時格納する送信バッファ5.5′と受信バッファ
6.6′を備える。また、これらCCE 1.1′は、
送信バッファ5.5′にそれぞれ接続され、送信データ
を送信フレームに変換する送信制御部7.7′、受信バ
ッファ6.6′にそれぞれ接続され、受信フレームを受
信データに変換する受信制御部8.8’  CPU切換
えスイッチ3.3′に一方がそれぞれ接続され、他方が
送信バッファ5.5′にそれぞれ接続され、上位装置か
らの送信データをインタフェースする送信系上位インタ
フェース(I/F)9.9′CPU切換えスイッチ3.
3′に一方がそれぞれ接続され、他方が受信バッファ6
.6′にそれぞれ接続され、受信データを上位装置にイ
ンタフェースする受信系上位インタフェース(I/F)
10.10’  送信系上位インタフェース(I/F)
9.9′にそれぞれ共通バス11.11′を介して接続
され、送信系の制御プログラムをそれぞれ実行する送信
CPU12.12′ 受信系上位インタフェース(1/
F)10.10’ にそれぞれ共通バス11.11′を
介して接続され、受信系の制御プログラムをそれぞれ実
行する受信CPU 13.13′、共通バス11.11
′にそれぞれ接続され、送信系の制御プログラムをそれ
ぞれ格納する送信ローカルメモリ14.14′、共通バ
ス11.1Fにそれぞれ接続され、受信系の制御プログ
ラムをそれぞれ格納する受信ローカルメモリ15.15
′、共通バス11.11′にそれぞれ接続され、送信C
PU12.12′、受信CPU13.13′がそれぞれ
共通にアクセスできる共有メモリ16.16′から構成
されている。
The CCE 1.1' includes a transmission buffer 5.5' and a reception buffer 6.6' for temporarily storing transmission data and reception data, respectively. In addition, these CCE 1.1' are
A transmission control section 7.7' is connected to the transmission buffer 5.5' and converts the transmission data into a transmission frame, and a reception control section 8 is connected to the reception buffer 6.6' and converts the reception frame into reception data. .8' Transmission system upper interface (I/F) 9. One side is connected to the CPU changeover switch 3.3', the other side is connected to the transmission buffer 5.5', and interfaces transmission data from the upper device. 9' CPU selector switch 3.
3', and the other is connected to the receiving buffer 6.
.. A receiving system upper interface (I/F) that is connected to 6' and interfaces the received data to the upper device.
10.10' Transmission system upper interface (I/F)
Transmission CPU 12.12' which is connected to 9.9' via common bus 11.11' and executes the transmission system control program respectively;
F) Receiving CPU 13.13' and common bus 11.11, each connected to 10.10' via a common bus 11.11' and executing a receiving system control program, respectively.
Transmission local memories 14.14' are connected to the common bus 11.1F and store the control programs for the transmission system, respectively, and reception local memories 15.15 are connected to the common bus 11.1F and store the control programs for the reception system, respectively.
', respectively connected to the common bus 11.11', and transmitting C
It consists of a shared memory 16.16' which can be commonly accessed by the PU 12.12' and the receiving CPU 13.13'.

以上の構成の本発明の通信制御装置について、第1図、
第3図、及び第4図に従ってその動作を説明する。
Regarding the communication control device of the present invention having the above configuration, FIG.
The operation will be explained according to FIGS. 3 and 4.

第3図(a)乃至(d)は本実施例の動作を説明するフ
ローチャート、第4図はCCE l側の受信CPU13
の動作を示す説明図である。
3(a) to 3(d) are flowcharts explaining the operation of this embodiment, and FIG. 4 is a flowchart of the receiving CPU 13 on the CCE l side.
It is an explanatory diagram showing operation of.

先ず、CCEI’側で上位装置の1つ、例えばCPU4
n’からCPU切替スイッチ3′及び送信系上位インク
フェース(I/F)9’を介して送信CPU12’ に
送信命令が出される[第3図(a)ステップ■コ。送信
CPU12’は、共通バス11′を介して共有メモリ1
6′に格納された相手側、即ちCCE l側の受信バッ
ファ6がデータで満たされているか否かを示す相手側受
信バッファフルフラグを検査する[第3図(a)ステッ
プ■、■]。この相手側受信バッファフルフラグが立っ
ているときは、送信先の受信バッファ、即ちCCEI側
の受信バッファ6がデータで満たされている旨を上位装
置のCPU4n’に報告する[第3図(a)ステップ■
コ。これを受けたCPU4n’は、送信命令の送出を再
試行する[第3図(a)ステップ■]。一方、上述の相
手側受信バッファフルフラグが立っていないときは、送
信データを相手側のCCE l側に送信する。CCEI
側では、通信回線2及び受信制御部8を介して、受信C
PU13の制御の下で受信バッファ6が上述の送信デー
タを受信する[第3図(b)ステップ■]。受信CPU
 13は、受信バッファ6が第1規定値以上送信データ
を受信したか否かを検査する[第3図(b)ステ・ツブ
■]。第1規定値以上のときは、共通バス11を介して
共有メモリ16に、受信バッファ6が第1規定値以上満
たされたことを示す受信バッファフル連絡フラグを設定
する[第3図(b)ステップ■]。その後、上位装置の
うちの、例えばCPU4nから受信CPU 13に受信
命令が出され、受信データが受信バッファ6からCPU
4nに転送される[第3図(b)ステップ■]。そして
、受信バッファ6に格納された受信データが第2規定値
以下になったか否かが受信CPU13により検査される
[第3図(b)ステップ[相]]。第2規定値以下でな
いときはステップ■に戻り、以下のときは、共有メモリ
6の受信バッファフル連絡フラグをリセットする[第3
図(b)ステップ■]。
First, on the CCEI' side, one of the host devices, for example, CPU4.
A transmission command is issued from n' to the transmission CPU 12' via the CPU selector switch 3' and the transmission system upper ink interface (I/F) 9' [Step (a) in FIG. 3]. The transmitting CPU 12' connects to the shared memory 1 via the common bus 11'.
The other side receiving buffer full flag indicating whether the receiving buffer 6 of the other side, that is, the CCE I side, stored in 6' is filled with data is checked [steps (1) and (2) in FIG. 3(a)]. When this receiving buffer full flag on the other side is set, it is reported to the CPU 4n' of the host device that the receiving buffer at the destination, that is, the receiving buffer 6 on the CCEI side is filled with data [Fig. 3 (a) ) step■
Ko. Upon receiving this, the CPU 4n' attempts to send the transmission command again [Step (a) in FIG. 3]. On the other hand, when the above-mentioned receiving buffer full flag on the other party is not set, the transmission data is transmitted to the other party's CCE I side. CCEI
On the side, the reception C is transmitted via the communication line 2 and the reception control section 8.
Under the control of the PU 13, the reception buffer 6 receives the above-mentioned transmission data [step (b) in FIG. 3]. Receiving CPU
Step 13 checks whether the reception buffer 6 has received transmission data equal to or greater than the first specified value [FIG. 3(b) Step 2]. When the first specified value or more is exceeded, a receive buffer full notification flag is set in the shared memory 16 via the common bus 11, indicating that the receive buffer 6 is filled with the first specified value or more [Fig. 3(b) Step■]. After that, a reception command is issued from the CPU 4n of the host device to the reception CPU 13, and the reception data is transferred from the reception buffer 6 to the CPU 4n.
4n [FIG. 3(b) Step ■]. Then, the receiving CPU 13 checks whether the received data stored in the receiving buffer 6 has become equal to or less than the second specified value [step [phase] in FIG. 3(b)]. If it is not less than the second specified value, return to step
Figure (b) Step ■].

このようにしてCCEl側の受信バッファ6はいつでも
データを受信できる状態になる。そこで、CCEl側で
は、上位装置、例えばCPU4nが送信CPU12に送
信命令を送出する[第3図(C)ステップ■] これを
受けた送信CPU12は、共有メモリ16に格納された
上述の自分側受信バッファフル連絡フラグを検査する[
第3図(C)ステップ■、■]。この自分側受信バッフ
ァフル連絡フラグが立っているときは、送信CPU 1
2は、第2図に示した送信フレームの制御部73の特定
ビットを“1 ”にし、立っていないときは“Oooに
して、この送信フレームを相手側、即ちCCE 1’側
に送信するし第3図(c)ステップ■、■、■]。CC
EI’側では、受信制御部8′が受信CPU13’の制
御の下で上述のCCEI側からの送信フレームを通信回
線2を介しで受信し、データに分離する[第3図(d)
ステップ■]。そして、受信CPU 13’は、受信バ
ッファ6′に受信データを格納し、受信フレームを検査
する。即ち受信フレーム制御部の特定ビットが1°′か
否かを検査する[第3図(d)ステップ■、■] この
特定ビットが°゛1°゛のときは共有メモリ16′に相
手側の受信バッファフルフラグをセットし[第3図(d
)ステップ■]、そうでないときはこのフラグをすセッ
トする[第3図(d)ステップ■]。これにより、CC
E1’側では、CCEl側にデータを送信できる状態に
なる。
In this way, the receiving buffer 6 on the CCEL side becomes ready to receive data at any time. Therefore, on the CCEl side, the higher-level device, for example, the CPU 4n, sends a transmission command to the transmission CPU 12 [FIG. Check buffer full contact flag [
Figure 3 (C) Steps ■, ■]. When this self-side reception buffer full notification flag is set, the sending CPU 1
2 sets the specific bit of the control unit 73 of the transmission frame shown in FIG. Figure 3 (c) Steps ■, ■, ■].CC
On the EI' side, the reception control unit 8' receives the above-mentioned transmission frame from the CCEI side via the communication line 2 under the control of the reception CPU 13' and separates it into data [Fig. 3(d)]
Step■]. Then, the receiving CPU 13' stores the received data in the receiving buffer 6' and inspects the received frame. That is, it is checked whether the specific bit of the received frame control section is 1°' [Steps ■ and ■ in FIG. Set the receive buffer full flag [Figure 3 (d)
) Step ■], otherwise set this flag [Figure 3(d) Step ■]. This allows C.C.
The E1' side becomes ready to transmit data to the CCEl side.

第4図は、上述のCCEl側の受信CPU13の動作シ
ーケンスを示す説明図である。
FIG. 4 is an explanatory diagram showing the operation sequence of the receiving CPU 13 on the CCEl side described above.

以上説明したように、CCEI’側でCCEI側の受信
バッファ6のデータ格納状態を監視することにより、こ
の受信バッファ6のオーバーランを防止することが可能
になる。
As explained above, by monitoring the data storage state of the receiving buffer 6 on the CCEI side on the CCEI' side, it is possible to prevent the receiving buffer 6 from overrunning.

尚、上記実施例においては、第3図(a)に示したよう
に、CCE l側で受信バッファフルフラグが立ってい
て、上位装置から送信命令があった場合は、相手側の受
信バッファがデータで満たされている旨のステータスを
上位装置に報告し、これにより上位装置は送信命令の送
出を再試行する構成にした。この場合、上位装置に上述
の報告をする一方で、別のフラグを更に設定しておき、
相手側受信バッファ6が第2規定値以下になり、従って
受信バッファフルフラグがリセットされたとき、この別
のフラグにより当該上位装置に対して相手側受信バッフ
ァが空いた旨を割込みにより通知する手段を設けてもよ
い。
In the above embodiment, as shown in FIG. 3(a), if the receive buffer full flag is set on the CCE I side and there is a transmission command from the higher-level device, the receive buffer on the other side is The configuration is such that the status that the data is filled is reported to the higher-level device, which causes the higher-level device to retry sending the transmission command. In this case, while reporting the above to the higher-level device, another flag is also set,
When the reception buffer 6 on the other side becomes equal to or less than a second specified value and the reception buffer full flag is reset, means for notifying the higher-level device by an interrupt that the reception buffer on the other side is empty using this other flag. may be provided.

(発明の効果) 以上説明した本発明の通信制御装置は、受信バッファに
受信データが所定値以上溝たされたとき、これを示すフ
ラグをセットして相手側に送信し、このフラグの状態に
より相手側からデータを送信する手段を設けることによ
り、受信バッファがフル状態になることに起因するデー
タフレーム落ちを容易に避けることができる。従ってフ
レーム落ちによる上位装置のデータ再送プロトコルを省
略でき、回線を効率よく利用できる効果がある。
(Effects of the Invention) The communication control device of the present invention described above sets a flag indicating this when the received data exceeds a predetermined value in the receive buffer and transmits it to the other party, and depending on the state of this flag. By providing a means for transmitting data from the other party, it is possible to easily avoid dropping data frames due to the reception buffer becoming full. Therefore, the data retransmission protocol of the host device due to frame drop can be omitted, and the line can be used efficiently.

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

第1図は本発明の通信制御装置の一実施例を示すブロッ
ク図、第2図は送信フレームのフォーマットを示すブロ
ック図、第3図(a)乃至(d)は第1図の実施例の動
作を説明するフローチャート、第4図は第1図の実施例
の受信CPUの動作シーケンスを説明する図、第5図は
従来の通信制御装置を示すブロック図である。 1.1′・・・通信制御装置(CCE)、3.3′・・
・(全二重式)通信回線、5.5′・・・送信バッファ
、 6.6′・・・受信バッファ、 7.7′・・・送信制御部、 12.12′・・・送信CPU。 13.13′・・・受信cpu。 41〜4n、41’ 〜4n  −CPU。 第4図 第1図の装置の動作フローチャート 第3図(C) 第1図の装置の動作フローチャート 第3図(d )
FIG. 1 is a block diagram showing an embodiment of the communication control device of the present invention, FIG. 2 is a block diagram showing the format of a transmission frame, and FIGS. FIG. 4 is a flowchart explaining the operation, FIG. 4 is a diagram explaining the operation sequence of the receiving CPU of the embodiment shown in FIG. 1, and FIG. 5 is a block diagram showing a conventional communication control device. 1.1'...Communication control equipment (CCE), 3.3'...
・(Full duplex) communication line, 5.5'...Transmission buffer, 6.6'...Reception buffer, 7.7'...Transmission control section, 12.12'...Transmission CPU . 13.13'...Receiving CPU. 41-4n, 41'-4n - CPU. Figure 4: Operation flow chart of the device shown in Figure 1 Figure 3 (C) Operation flow chart of the device shown in Figure 1 Figure 3 (d)

Claims (1)

【特許請求の範囲】 上位装置にそれぞれ接続され、かつ互いに通信回線を介
して接続され、前記上位装置からの指令に従ってそれら
の間のデータの送受信を制御する通信制御装置において
、 前記上位装置からの指令によりデータを受信し、一時格
納する受信バッファと、 この受信バッファに第1規定値以上の受信データが格納
されたとき、受信バッファの格納データが第1規定値以
上であることを示す受信バッファフル連絡フラグをセッ
トし、前記第1規定値より小さな第2規定値以下になっ
たとき前記受信バッファフル連絡フラグをリセットする
手段と、前記上位装置から送信命令を受け送信フレーム
を送出するとき、前記受信バッファフル連絡フラグを検
査し、該フラグが立っているときは前記送信フレームの
制御部の所定ビットを“1”にセットし、該フラグが立
っていないときは“0”をセットして送信フレームを送
出するフラグ設定手段と、 前記送信フレームを受信し、その制御部の所定ビットが
“1”のときは前記受信バッファに前記規定値以上の受
信データが格納されている旨を示す受信バッファフルフ
ラグを設定し、“0”のときは該フラグをリセットする
手段と、 上位装置から送信命令を受けたとき、前記受信バッファ
フルフラグを検査し、該フラグが立っているときは、送
信すべきデータを前記上位装置から受取らず、この上位
装置に前記受信バッファが前記第1規定値以上のデータ
を格納している旨を報告する手段とを備えたことを特徴
とする通信制御装置。
[Scope of Claims] A communication control device that is connected to each host device and to each other via a communication line, and controls the transmission and reception of data between them according to commands from the host device, comprising: A receive buffer that receives and temporarily stores data according to a command; and a receive buffer that indicates that the data stored in the receive buffer is greater than or equal to the first specified value when the received data that is greater than or equal to the first specified value is stored in this receive buffer. means for setting a full communication flag and resetting the reception buffer full communication flag when the value becomes equal to or less than a second specified value smaller than the first specified value; and when receiving a transmission command from the higher-level device and transmitting a transmission frame; The reception buffer full communication flag is checked, and if the flag is set, a predetermined bit in the control section of the transmission frame is set to "1", and if the flag is not set, it is set to "0". a flag setting means for transmitting a transmission frame; and a reception unit that receives the transmission frame and, when a predetermined bit of the control unit is “1”, indicates that reception data equal to or greater than the specified value is stored in the reception buffer. means for setting a buffer full flag and resetting the flag when it is "0"; and means for inspecting the receiving buffer full flag when receiving a transmission command from a host device, and when the flag is set, transmitting. 2. A communication control device comprising means for not receiving data from the host device and reporting to the host device that the receive buffer stores data equal to or greater than the first specified value.
JP63215147A 1988-08-31 1988-08-31 Communication controller Pending JPH0264838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63215147A JPH0264838A (en) 1988-08-31 1988-08-31 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63215147A JPH0264838A (en) 1988-08-31 1988-08-31 Communication controller

Publications (1)

Publication Number Publication Date
JPH0264838A true JPH0264838A (en) 1990-03-05

Family

ID=16667456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63215147A Pending JPH0264838A (en) 1988-08-31 1988-08-31 Communication controller

Country Status (1)

Country Link
JP (1) JPH0264838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6810457B2 (en) 2000-07-05 2004-10-26 Nec Corporation Parallel processing system in which use efficiency of CPU is improved and parallel processing method for the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6810457B2 (en) 2000-07-05 2004-10-26 Nec Corporation Parallel processing system in which use efficiency of CPU is improved and parallel processing method for the same

Similar Documents

Publication Publication Date Title
KR880002098B1 (en) Improved multi processor multi system communication network
JP2944055B2 (en) Intelligent communication network interface circuit
CA1256528A (en) Inter-subsystem communication system
US5317692A (en) Method and apparatus for buffer chaining in a communications controller
JPH02228855A (en) Data communication system and data communication method
US7383377B2 (en) Method and apparatus for transferring data
US6388989B1 (en) Method and apparatus for preventing memory overrun in a data transmission system
JPH0264838A (en) Communication controller
JPS59191960A (en) Communication system
JPS58222634A (en) Polling transmission system
KR100258243B1 (en) Method for restoring message when state of processors are changed in a full electronic switching system
JP2723245B2 (en) Facsimile storage and switching equipment
KR100193839B1 (en) Line module controller and method for processing redundant messages
KR0143970B1 (en) Telecommunication part control system
JP2526621B2 (en) Network monitoring device
CN115734286A (en) ARM and UWB wireless data transparent transmission processing method based on serial port
JPS6129966A (en) Monitoring method in exchange of message between computers
JPH03233745A (en) Transmission data control system
JPH0344248A (en) Data transmitter
JPH03943B2 (en)
JPS58173941A (en) Health check system of communication device
JPS6159944A (en) Sequence number check system
JPH0269071A (en) Facsimile mail system
JPH04362835A (en) Data transfer method
JPH1023046A (en) Poling type monitoring method