JP3554602B2 - Communication control device - Google Patents

Communication control device Download PDF

Info

Publication number
JP3554602B2
JP3554602B2 JP05959995A JP5959995A JP3554602B2 JP 3554602 B2 JP3554602 B2 JP 3554602B2 JP 05959995 A JP05959995 A JP 05959995A JP 5959995 A JP5959995 A JP 5959995A JP 3554602 B2 JP3554602 B2 JP 3554602B2
Authority
JP
Japan
Prior art keywords
reply
buffer
command
unit
area
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.)
Expired - Fee Related
Application number
JP05959995A
Other languages
Japanese (ja)
Other versions
JPH08263408A (en
Inventor
展尚 服部
肇 ▲高▼橋
淳 舟木
俊秀 都筑
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP05959995A priority Critical patent/JP3554602B2/en
Publication of JPH08263408A publication Critical patent/JPH08263408A/en
Application granted granted Critical
Publication of JP3554602B2 publication Critical patent/JP3554602B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、通信制御装置に関し、特に、コマンドが再送可能である一方、リプライが再送不可能な装置又はシステムに関する。
【0002】
【従来の技術】
複数のモジュールがバスに接続され、バスを介してモジュール間の通信を行う従来の通信システムにおいて、あるモジュールがバスを介して他のモジュールにコマンドを転送すると、コマンドを受けたモジュールは、実行結果であるリプライを、コマンドを送ってきたモジュールに通知する。ここで、コマンドは再転送可能であるのに対し、リプライは再転送できないようになっている。
【0003】
図2は、そのような従来の通信システムの構成ブロック図を示している。この通信システムは、内部処理を行う第2の装置40、この第2の装置40に接続し通信制御を行う通信制御装置10、及びこの通信制御装置10にバス50を介して接続する複数のモジュール(第1の通信装置)30から構成されている。なお、通信制御装置10は、モジュール30から第2の装置40に転送されたデータを格納する第1バッファ11を有するとともに、第2の装置40からモジュール30に転送されたデータを格納する第2バッファ12を有している。
【0004】
そして、前記従来の通信システムにおいて、第2の装置40が通信制御装置10及びバス50を介して他のモジュール30にコマンドを送った場合、そのリプライが通信制御装置10に送られて内部の第1バッファ11に一時的に格納される。
【0005】
ここで、図3は、第2の装置40よりモジュール30にコマンドを転送した場合の通常のデータの流れを示している。即ち、第2の装置40から出力されたコマンドは、通信制御装置10の第2バッファ12に格納された後、バス50を介してモジュール30に転送される。
【0006】
転送先のモジュール30では、コマンドを内部処理してリプライを生成するが、このリプライは、バス50を介して通信制御装置10の第1バッファ11に格納された後、第2の装置40に転送される。
【0007】
【発明が解決しようとする課題】
前記従来の通信システムにおいて、通信制御装置10の第1バッファ11が既に他のデータで埋まっていて空領域が無い場合、リプライは第1バッファ11に格納されず、しかもリプライは再転送できないので、このリプライは途中で失われてしまう、即ち第2の装置40はリプライを受けることができないという問題が生じている。
【0008】
図4は、そのような問題が生じる場合のデータの流れ図を示している。即ち、第2の装置40から出力されたコマンドは、通信制御装置10の第2バッファ12に格納された後、バス50を介してモジュール30に転送される。コマンドを受け取ったモジュール30は、内部処理を行ってリプライを生成するが、このリプライは、バス50を経由して通信制御装置10の第1バッファ11に到達する。しかし、第1バッファ11に空が無いためリプライが消失してしまう。
【0009】
本発明は、このような事情に鑑みてなされたもので、リプライが送り返されてきた場合に、バッファにリプライを格納する領域が不足することに原因するリプライ喪失を防止することが可能な通信制御装置を提供することを課題とする。
【0010】
【課題を解決するための手段】
本発明の通信制御装置は、前述した課題を解決するため、受信部13、第1バッファ11、第2バッファ12、送信部14及び記憶領域制御部15を必須構成要素として備えて構成されている(請求項1に対応)。以下、この構成を本発明の通信制御装置の第1の構成と呼ぶ。
【0011】
(受信部13)
受信部13は、実行結果の大きさを含むコマンド及びこのコマンドの実行結果を表すリプライをバス50を介して第1の装置30から入力する。
【0012】
(第1バッファ11)
第1バッファ11は、前記受信部13で受信されたコマンド及びリプライを一時記憶するとともに、この記憶したコマンド及びリプライが第2の装置40に出力される。
【0013】
(第2バッファ12)
第2バッファ12は、実行結果の大きさを含むコマンド及びこのコマンドの実行結果を表すリプライを前記第2の装置40から入力し一時記憶する。
【0014】
(送信部14)
送信部14は、前記第2バッファ12に記憶されたコマンド及びリプライを前記バス50を介して前記第1の装置30に出力する。
【0015】
(記憶領域制御部15)
記憶領域制御部15は、前記コマンドに格納された実行結果の大きさに基づいて、リプライを一時記憶するのに必要な領域を前記第1バッファ11に予め確保しておく。
【0016】
次に、本発明の第1の構成を下記の(イ)及び(ロ)ように構成することもできる。
(イ)前記記憶領域制御部15は、前記第2バッファ12に接続し、前記第2バッファ12に記憶されたコマンド及びリプライのうちコマンドのみを識別し、識別されたコマンドに格納されたリプライ数量に基づいて、リプライを一時記憶するのに必要な領域を前記第1バッファ11に予め確保しておくことである(請求項2に対応)。以下、この構成を本発明の通信制御装置の第2の構成と呼ぶ。
【0017】
(ロ)前記リプライは、その大きさを表すリプライ数量を含んでおり、前記記憶領域制御部15は、前記受信部13に接続し、前記受信部13で受信されたコマンド及びリプライのうちリプライのみを識別し、識別されたリプライに格納されたリプライ数量に基づいて、前記第1バッファ11に予め確保しておいた領域を開放することである(請求項3に対応)。以下、この構成を本発明の通信制御装置の第3の構成と呼ぶ。
【0018】
次に、本発明の第2又は第3の構成を以下のように構成することもできる。
即ち、前記記憶領域制御部15は、カウンタを有し、領域を確保する場合にはカウンタの値を増加させる一方、領域を開放する場合にはカウンタの値を減少させて、前記第1バッファ11の記憶領域確保及び解放を行うことである(請求項4に対応)。以下、この構成を本発明の通信制御装置の第4の構成と呼ぶ。
【0019】
次に、本発明の第3の構成を以下のように構成することもできる。
即ち、前記記憶領域制御部15が前記第1バッファ11に確保しようとする領域の大きさと、前記第1バッファ11に書き込み可能な領域の大きさとを比較することにより、前記第1バッファ11に空領域不足を検出する空領域不足検出部16を設けたことである(請求項5に対応)。以下、この構成を本発明の通信制御装置の第5の構成と呼ぶ。
【0020】
次に、本発明の第5の構成を下記の(イ)及び(ロ)のように構成することもできる。
(イ)前記空領域不足検出部16は、空領域不足を検出したことを前記送信部14に通知し、前記送信部14は、空領域不足の通知を受けた場合に、新たなコマンドの送信を抑止することである(請求項6に対応)。以下、この構成を本発明の通信制御装置の第6の構成と呼ぶ。
【0021】
(ロ)リプライを生成するリプライ生成部18を設け、前記空領域不足検出部16は、空領域不足を検出したことを前記受信部13に通知し、前記受信部13は、空領域不足の通知を受けている間にコマンドを受信した場合に、リプライ生成に必要なデータを前記リプライ生成部18に出力し、前記リプライ生成部18は、リプライ生成に必要なデータを入力した場合に、データが受け取れないという内容のリプライを生成し、前記送信部14は、前記リプライ生成部18で生成されたリプライを前記バス50を介して前記第1の装置30に送信することである(請求項7に対応)。以下、この構成を本発明の通信制御装置の第7の構成と呼ぶ。
【0022】
【作用】
第1から第4の構成の通信制御装置によれば、第2の装置40から出力されたコマンド及びリプライは、第2バッファ12に一時格納される。この後、コマンドは、送信部14及びバス50を経由して第1の装置30に転送される。このとき、記憶領域制御部15は、コマンドに含まれた実行結果の大きさに基づいて、リプライを一時記憶するのに必要な領域を第1バッファに予め確保しておく。第1の装置30は、転送されたコマンドに対してリプライを返すが、このリプライは、記憶領域制御部15により予め確保されていた領域に一時記憶された後、第2の装置40に出力される。
【0023】
また、第3及び第4の構成の通信制御装置によれば、記憶領域制御部15により、第1バッファ11に予め確保された領域が解放されるようになる。
そして、第5の構成の通信制御装置によれば、空領域不足検出部16により、第1バッファ11の空領域不足が検出されるようになる。
【0024】
さらに、第6の構成の通信制御装置によれば、空領域不足検出部16が空領域不足を検出した場合に、送信部14により、新たなコマンドの送信が抑止される。このことにより、第1バッファ11に格納することができないと予想されるリプライが受信されないようになる。
【0025】
次に、第7の構成の通信制御装置によれば、受信部13が、空領域不足検出部16から空領域不足の通知を受けている間にコマンドを受信した場合に、リプライ生成に必要なデータがリプライ生成部18に出力される。そして、リプライ生成部18により、データが受け取れないという内容のリプライを生成される。そして、このリプライは、送信部14により、バス50を介して第1の装置30に送信される。
【0026】
【実施例】
以下、本発明の実施例を図面を参照して説明する。
《実施例の構成》
図5は、実施例の構成ブロック図である。同図に示すように、本実施例は、内部処理を行う第2の装置40、この第2の装置40に接続し通信制御を行う通信制御装置10、及びこの通信制御装置10にバス50を介して接続する2台の第1の通信装置30から構成されている。
【0027】
第1の通信装置30は、図5では2台示されているが、1台でも良いし、3台以上あってもよい。また、複数設けられる場合に、同種のものであることもあるし、そうでないこともある。
【0028】
通信制御装置10は、第1バッファ11、第2バッファ12、受信部13、送信部14、記憶領域制御部15、空領域不足検出部16、双方向バッファ17、リプライ生成部18、書込位置保持カウンタ19a及び読出位置保持カウンタ19bを備えて構成されている。以下、通信制御装置10の各構成要素を説明する。
【0029】
(第1バッファ11)
第1バッファ11は、受信部で受信されたコマンド及びリプライを一時記憶するとともに、この記憶したコマンド及びリプライが第2の装置に出力される。
【0030】
(第2バッファ12)
第2バッファ12は、実行結果の大きさ(リプライ数量)を含むコマンド及びリプライを第2の装置から入力し一時記憶する。
【0031】
(受信部13)
受信部13は、リプライ数量を含むコマンド及びリプライを双方向バッファ17及びバス50を介して第1の装置30から入力する。
【0032】
(送信部14)
送信部14は、第2バッファ12に記憶されたコマンド及びリプライを、双方向バッファ17及びバス50を介して第1の装置30に出力する。
【0033】
(記憶領域制御部15)
記憶領域制御部15は、第2バッファ12に接続し、第2バッファ12に記憶されたコマンド及びリプライのうちコマンドのみを識別し、識別されたコマンドに格納されたリプライ数量に基づいて、リプライを一時記憶するのに必要な領域を第1バッファ11に予め確保する。
【0034】
また、受信部13に接続し、受信部13で受信されたコマンド及びリプライのうちリプライのみを識別し、識別されたリプライに格納されたリプライ数量に基づいて、第1バッファ11に予め確保しておいた領域を開放する。
【0035】
(空領域不足検出部16)
空領域不足検出部16は、記憶領域制御部15が第1バッファ11に確保しようとする領域の大きさと、第1バッファ11に書き込み可能な領域の大きさとを比較することにより、第1バッファ11の空領域不足を検出する。
【0036】
そして、空領域不足を検出した場合には、そのことを受信部13及び送信部14に通知する。
(双方向バッファ17)
双方向バッファ17は、受信部13、送信部14及びバス50に接続する。そして、送信部14から入力した通信データ、即ち第2の装置40から出力されたコマンド及びリプライをバス50に出力する。また、バス50から入力した通信データ、即ち第1の装置30から出力されたコマンド及びリプライを受信部13に出力する。
【0037】
(リプライ生成部18)
リプライ生成部18は、リプライ生成に必要なデータを受信部13から入力した場合に、データが受け取れないという内容のリプライを生成し、送信部14に通知する。
【0038】
(書込位置保持カウンタ19a)
書込位置保持カウンタ19aは、第1バッファ11に対する書込位置を保持する。
【0039】
(読出位置保持カウンタ19b)
読出位置保持カウンタ19bは、第1バッファ11に対する読出位置を保持する。
【0040】
《実施例の動作例》
次に、本実施例の動作例を説明する。
(第1動作例)
図8は、第1バッファ11にリプライを記憶する領域を確保した場合のデータの流れを示している。即ち、第2の装置40から出力されたコマンドは、通信制御装置10の第2バッファ12に格納された後、バス50に出力される。この時、リプライを一時記憶する領域が第1バッファ11に確保される。
【0041】
そして、バス50に出力されたコマンドは第1の装置30に転送される。転送先の第1の装置30では、コマンドを内部処理してリプライを生成する。このリプライは、バス50を介して通信制御装置10の受信部13に到達する。
【0042】
そして、予め領域が確保された第1バッファ11に一時記憶された後、第2の装置40に転送される。
(第2動作例)
図9は、第1バッファ11にリプライを記憶する領域が不足して、コマンド転送を抑止する場合のデータの流れを示している。即ち、第2の装置40からコマンドが出力された時点で、第1バッファ11にリプライを記憶する領域が不足しているものとする。この場合、コマンドは通信制御装置10の第2バッファ12に格納されるが、第1バッファ11に記憶領域が不足している間は、バス50に出力されない。
【0043】
そして、第1バッファ11に空ができてリプライを記憶する領域が確保されると、第2バッファ12に格納されていたコマンドが、バス50に出力される。
そして、バス50に出力されたコマンドは第1の装置30に転送される。転送先のモジュール30では、コマンドを内部処理してリプライを生成するが、このリプライは、バス50を介して通信制御装置10の受信部13に到達する。
【0044】
そして、予め領域が確保された第1バッファ11に一時記憶された後、第2の装置40に転送される。
(第3動作例)
図10は、第1の装置30からコマンドが送られてきた場合のデータの流れを示している。即ち、第1の装置30から出力されたコマンドは、バス50を経由して通信制御装置10の第1バッファ11に格納される。ただし、ここでは、第1バッファ11にコマンドを格納するだけの空があるとする。
【0045】
そして、第1バッファ11に格納されたコマンドは第2の装置40に転送される。転送先の第2の装置40では、コマンドを内部処理してリプライを生成する。このリプライは、第2バッファ12に格納された後、バス50を経由して第1の装置30に転送される。
【0046】
(第4動作例)
図11は、第1バッファ11にコマンドを記憶する領域が不足して、リプライを生成する場合のデータの流れを示している。即ち、第1の装置30からコマンドが出力された時点で、第1バッファ11にコマンドを記憶する領域が不足しているものとする。この場合、コマンドは通信制御装置10の受信部13に受信されるが、第1バッファ11にそのコマンドを記憶するだけの空領域が無いことを空領域不足検出部16が検出し、リプライ生成部18に通知する。
【0047】
リプライ生成部18は、内部処理を行って、データが受け取れないという内容のリプライを生成する。このリプライは、バス50を経由して第1の装置30に転送される。
【0048】
そして、第1の装置は、適当な間隔をおいて、コマンドの再転送を試みる。
【0049】
【発明の効果】
第1から第7の構成の通信制御装置によれば、リプライを記憶するのに必要な領域が記憶領域制御部により第1バッファに予め確保される。そのため、リプライが通信制御装置に送り返されてきた場合に、第1バッファにリプライを格納する領域が不足することがなくなり、リプライ喪失を防止することが可能となる。
【0050】
特に、第6の構成の通信制御装置によれば、新たなコマンドの送信が抑止されるため、リプライ喪失防止を能動的に行うことが可能となる。
また、第7の構成の通信制御装置によれば、通信制御装置がビジーである状態を第1の装置が速やかに認識することが可能となる。
【図面の簡単な説明】
【図1】本発明の通信制御装置の原理ブロック図である。
【図2】従来の通信システムの構成ブロック図である。
【図3】従来の通信システムにおいて、第2の装置より第1の装置にコマンドを転送した場合の通常のデータの流れ図である。
【図4】従来の通信システムにおいて、通信制御装置の第1バッファに空が無い場合のデータの流れ図である。
【図5】実施例の構成ブロック図である。
【図6】実施例のコマンドのフォーマットを示す図である。
【図7】実施例のリプライのフォーマットを示す図である。
【図8】実施例において、第1バッファにリプライを記憶する領域を確保した場合のデータの流れ図である。
【図9】実施例において、第1バッファにリプライを記憶する領域が不足して、コマンド転送を抑止する場合のデータの流れ図である。
【図10】実施例において、第1の装置からコマンドが送られてきた場合のデータの流れ図である。
【図11】実施例において、第1バッファにコマンドを記憶する領域が不足して、リプライを生成する場合のデータの流れ図である。
【符号の説明】
11・・・・第1バッファ
12・・・・第2バッファ
13・・・・受信部
14・・・・送信部
15・・・・記憶領域制御部
16・・・・空領域不足検出部
17・・・・双方向バッファ
18・・・・リプライ生成部
19a・・・書込位置保持カウンタ
19b・・・読出位置保持カウンタ
30・・・・第1の装置
40・・・・第2の装置
50・・・・バス
[0001]
[Industrial applications]
The present invention relates to a communication control device, and more particularly, to a device or system in which a command can be retransmitted while a reply cannot be retransmitted.
[0002]
[Prior art]
In a conventional communication system in which a plurality of modules are connected to a bus and perform communication between the modules via the bus, when one module transfers a command to another module via the bus, the module receiving the command generates an execution result. Is sent to the module that sent the command. Here, while the command can be retransmitted, the reply cannot be retransmitted.
[0003]
FIG. 2 shows a configuration block diagram of such a conventional communication system. The communication system includes a second device 40 that performs internal processing, a communication control device 10 that is connected to the second device 40 and performs communication control, and a plurality of modules that are connected to the communication control device 10 via a bus 50. (First communication device) 30. The communication control device 10 includes a first buffer 11 for storing data transferred from the module 30 to the second device 40, and a second buffer 11 for storing data transferred from the second device 40 to the module 30. It has a buffer 12.
[0004]
In the conventional communication system, when the second device 40 sends a command to the other module 30 via the communication control device 10 and the bus 50, the reply is sent to the communication control device 10 and the internal The data is temporarily stored in one buffer 11.
[0005]
Here, FIG. 3 shows a normal data flow when a command is transferred from the second device 40 to the module 30. That is, the command output from the second device 40 is stored in the second buffer 12 of the communication control device 10 and then transferred to the module 30 via the bus 50.
[0006]
The transfer destination module 30 internally processes the command to generate a reply. The reply is stored in the first buffer 11 of the communication control device 10 via the bus 50 and then transferred to the second device 40. Is done.
[0007]
[Problems to be solved by the invention]
In the conventional communication system, if the first buffer 11 of the communication control device 10 is already filled with other data and there is no empty area, the reply is not stored in the first buffer 11 and the reply cannot be retransmitted. This reply is lost on the way, that is, the second device 40 cannot receive the reply.
[0008]
FIG. 4 shows a data flow diagram when such a problem occurs. That is, the command output from the second device 40 is stored in the second buffer 12 of the communication control device 10 and then transferred to the module 30 via the bus 50. The module 30 that has received the command performs internal processing to generate a reply. The reply reaches the first buffer 11 of the communication control device 10 via the bus 50. However, the reply is lost because the first buffer 11 has no empty space.
[0009]
The present invention has been made in view of such circumstances, and has been made in view of the above circumstances, and is capable of preventing a loss of reply due to a shortage of an area for storing a reply in a buffer when a reply is sent back. It is an object to provide a device.
[0010]
[Means for Solving the Problems]
The communication control device of the present invention includes a receiving unit 13, a first buffer 11, a second buffer 12, a transmitting unit 14, and a storage area control unit 15 as essential components in order to solve the above-described problem. (Corresponding to claim 1). Hereinafter, this configuration is referred to as a first configuration of the communication control device of the present invention.
[0011]
(Receiver 13)
The receiving unit 13 receives a command including the size of the execution result and a reply indicating the execution result of the command from the first device 30 via the bus 50.
[0012]
(First buffer 11)
The first buffer 11 temporarily stores the command and the reply received by the receiving unit 13, and outputs the stored command and reply to the second device 40.
[0013]
(Second buffer 12)
The second buffer 12 receives a command including the size of the execution result and a reply indicating the execution result of the command from the second device 40 and temporarily stores the command.
[0014]
(Transmission unit 14)
The transmission unit 14 outputs the command and the reply stored in the second buffer 12 to the first device 30 via the bus 50.
[0015]
(Storage area control unit 15)
The storage area control unit 15 previously secures an area necessary for temporarily storing a reply in the first buffer 11 based on the size of the execution result stored in the command.
[0016]
Next, the first configuration of the present invention can also be configured as the following (a) and (b).
(A) The storage area control unit 15 is connected to the second buffer 12, identifies only the command among the commands and replies stored in the second buffer 12, and sets the number of replies stored in the identified command. In this case, an area necessary for temporarily storing a reply is secured in the first buffer 11 in advance (corresponding to claim 2). Hereinafter, this configuration is referred to as a second configuration of the communication control device of the present invention.
[0017]
(B) The reply includes a reply quantity indicating the size of the reply, and the storage area control unit 15 is connected to the receiving unit 13, and only the reply of the command and the reply received by the receiving unit 13 is included. And releasing an area previously secured in the first buffer 11 based on the number of replies stored in the identified reply (corresponding to claim 3). Hereinafter, this configuration is referred to as a third configuration of the communication control device of the present invention.
[0018]
Next, the second or third configuration of the present invention may be configured as follows.
That is, the storage area control unit 15 has a counter, and increases the value of the counter when reserving an area, and decreases the value of the counter when releasing an area. Is secured and released (corresponding to claim 4). Hereinafter, this configuration is referred to as a fourth configuration of the communication control device of the present invention.
[0019]
Next, the third configuration of the present invention may be configured as follows.
In other words, the storage area control unit 15 compares the size of the area to be secured in the first buffer 11 with the size of the area that can be written in the first buffer 11, thereby making the first buffer 11 empty. That is, an empty area shortage detection unit 16 for detecting an area shortage is provided (corresponding to claim 5). Hereinafter, this configuration is referred to as a fifth configuration of the communication control device of the present invention.
[0020]
Next, the fifth configuration of the present invention can be configured as in the following (A) and (B).
(B) The empty area shortage detecting section 16 notifies the transmitting section 14 that the empty area shortage has been detected, and the transmitting section 14 transmits a new command when receiving the notification of the empty area shortage. (Corresponding to claim 6). Hereinafter, this configuration is referred to as a sixth configuration of the communication control device of the present invention.
[0021]
(B) A reply generating unit 18 for generating a reply is provided, and the empty area shortage detecting unit 16 notifies the receiving unit 13 that the empty area shortage has been detected, and the receiving unit 13 notifies the empty area shortage. If a command is received while receiving the command, data necessary for generating a reply is output to the reply generating unit 18. The reply generating unit 18 outputs The transmitting unit 14 generates a reply indicating that the reply cannot be received, and the transmitting unit 14 transmits the reply generated by the reply generating unit 18 to the first device 30 via the bus 50 (refer to claim 7). Correspondence). Hereinafter, this configuration is referred to as a seventh configuration of the communication control device of the present invention.
[0022]
[Action]
According to the communication control devices of the first to fourth configurations, the command and the reply output from the second device 40 are temporarily stored in the second buffer 12. Thereafter, the command is transferred to the first device 30 via the transmission unit 14 and the bus 50. At this time, the storage area control unit 15 reserves an area necessary for temporarily storing the reply in the first buffer in advance based on the size of the execution result included in the command. The first device 30 returns a reply to the transferred command. This reply is temporarily stored in an area previously reserved by the storage area control unit 15 and then output to the second device 40. You.
[0023]
Further, according to the communication control devices of the third and fourth configurations, the storage area control unit 15 releases the area previously reserved in the first buffer 11.
Then, according to the communication control device of the fifth configuration, the empty area shortage detection unit 16 detects the empty area shortage of the first buffer 11.
[0024]
Furthermore, according to the communication control device of the sixth configuration, when the empty area shortage detection unit 16 detects the empty area shortage, the transmission unit 14 suppresses transmission of a new command. As a result, a reply that is expected to be unable to be stored in the first buffer 11 is not received.
[0025]
Next, according to the communication control device of the seventh configuration, when the receiving unit 13 receives the command while receiving the notification of the lack of the empty region from the lack of empty region detection unit 16, it is necessary to generate the reply. The data is output to the reply generation unit 18. Then, the reply generation unit 18 generates a reply indicating that data cannot be received. Then, the reply is transmitted to the first device 30 via the bus 50 by the transmission unit 14.
[0026]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<< Configuration of Example >>
FIG. 5 is a configuration block diagram of the embodiment. As shown in the figure, in the present embodiment, a second device 40 for performing internal processing, a communication control device 10 connected to the second device 40 for performing communication control, and a bus 50 connected to the communication control device 10 It is composed of two first communication devices 30 connected via the first communication device 30.
[0027]
Although two first communication devices 30 are shown in FIG. 5, one or three or more first communication devices may be provided. Also, when a plurality are provided, they may be of the same type or may not be of the same type.
[0028]
The communication control device 10 includes a first buffer 11, a second buffer 12, a receiving unit 13, a transmitting unit 14, a storage area control unit 15, an empty area shortage detecting unit 16, a bidirectional buffer 17, a reply generating unit 18, a writing position. It comprises a holding counter 19a and a reading position holding counter 19b. Hereinafter, each component of the communication control device 10 will be described.
[0029]
(First buffer 11)
The first buffer 11 temporarily stores the command and the reply received by the receiving unit, and outputs the stored command and reply to the second device.
[0030]
(Second buffer 12)
The second buffer 12 receives a command including the size of the execution result (the number of replies) and a reply from the second device and temporarily stores them.
[0031]
(Receiver 13)
The receiving unit 13 receives a command including the number of replies and a reply from the first device 30 via the bidirectional buffer 17 and the bus 50.
[0032]
(Transmission unit 14)
The transmission unit 14 outputs the command and the reply stored in the second buffer 12 to the first device 30 via the bidirectional buffer 17 and the bus 50.
[0033]
(Storage area control unit 15)
The storage area control unit 15 is connected to the second buffer 12, identifies only the command among the commands and the replies stored in the second buffer 12, and determines the reply based on the number of replies stored in the identified command. An area necessary for temporary storage is secured in the first buffer 11 in advance.
[0034]
Further, it is connected to the receiving unit 13 and identifies only the reply among the commands and the replies received by the receiving unit 13, and secures it in the first buffer 11 in advance based on the number of replies stored in the identified reply. Release the set area.
[0035]
(Empty area shortage detection unit 16)
The empty area shortage detection unit 16 compares the size of the area that the storage area control unit 15 intends to secure in the first buffer 11 with the size of the area that can be written to the first buffer 11, thereby obtaining the first buffer 11. Detects the lack of empty area.
[0036]
When the shortage of the empty area is detected, the fact is notified to the receiving unit 13 and the transmitting unit 14.
(Bidirectional buffer 17)
The bidirectional buffer 17 is connected to the receiving unit 13, the transmitting unit 14, and the bus 50. Then, the communication data input from the transmission unit 14, that is, the command and the reply output from the second device 40 are output to the bus 50. In addition, communication data input from the bus 50, that is, a command and a reply output from the first device 30 are output to the receiving unit 13.
[0037]
(Reply generation unit 18)
When data necessary for generating a reply is input from the receiving unit 13, the reply generating unit 18 generates a reply indicating that the data cannot be received, and notifies the transmitting unit 14.
[0038]
(Write position holding counter 19a)
The write position holding counter 19a holds a write position for the first buffer 11.
[0039]
(Reading position holding counter 19b)
The reading position holding counter 19b holds a reading position for the first buffer 11.
[0040]
<< Operation Example of Embodiment >>
Next, an operation example of the present embodiment will be described.
(First operation example)
FIG. 8 shows a data flow when an area for storing a reply is secured in the first buffer 11. That is, the command output from the second device 40 is stored in the second buffer 12 of the communication control device 10 and then output to the bus 50. At this time, an area for temporarily storing the reply is secured in the first buffer 11.
[0041]
Then, the command output to the bus 50 is transferred to the first device 30. The transfer destination first device 30 internally processes the command to generate a reply. This reply reaches the receiving unit 13 of the communication control device 10 via the bus 50.
[0042]
Then, after being temporarily stored in the first buffer 11 in which an area is reserved in advance, the data is transferred to the second device 40.
(Second operation example)
FIG. 9 shows a data flow in a case where the area for storing the reply is insufficient in the first buffer 11 to suppress the command transfer. In other words, it is assumed that the area for storing the reply in the first buffer 11 is insufficient at the time when the command is output from the second device 40. In this case, the command is stored in the second buffer 12 of the communication control device 10, but is not output to the bus 50 while the storage area of the first buffer 11 is insufficient.
[0043]
When the first buffer 11 is vacant and an area for storing the reply is secured, the command stored in the second buffer 12 is output to the bus 50.
Then, the command output to the bus 50 is transferred to the first device 30. The transfer destination module 30 internally processes the command and generates a reply. The reply reaches the receiving unit 13 of the communication control device 10 via the bus 50.
[0044]
Then, after being temporarily stored in the first buffer 11 in which an area is reserved in advance, the data is transferred to the second device 40.
(Third operation example)
FIG. 10 shows a data flow when a command is sent from the first device 30. That is, the command output from the first device 30 is stored in the first buffer 11 of the communication control device 10 via the bus 50. However, here, it is assumed that there is empty space in the first buffer 11 for storing a command.
[0045]
Then, the command stored in the first buffer 11 is transferred to the second device 40. The transfer destination second device 40 internally processes the command to generate a reply. This reply is stored in the second buffer 12 and then transferred to the first device 30 via the bus 50.
[0046]
(Fourth operation example)
FIG. 11 shows a data flow in a case where a region for storing a command in the first buffer 11 is insufficient and a reply is generated. That is, it is assumed that at the time when the command is output from the first device 30, the area for storing the command in the first buffer 11 is insufficient. In this case, the command is received by the receiving unit 13 of the communication control apparatus 10, but the empty area shortage detecting unit 16 detects that the first buffer 11 does not have an empty area for storing the command, and the reply generating unit Notify 18.
[0047]
The reply generation unit 18 performs an internal process to generate a reply indicating that data cannot be received. This reply is transferred to the first device 30 via the bus 50.
[0048]
Then, the first device attempts to retransmit the command at appropriate intervals.
[0049]
【The invention's effect】
According to the communication control devices of the first to seventh configurations, an area necessary for storing a reply is reserved in the first buffer by the storage area control unit in advance. Therefore, when the reply is sent back to the communication control device, there is no shortage of the area for storing the reply in the first buffer, and loss of the reply can be prevented.
[0050]
In particular, according to the communication control device having the sixth configuration, transmission of a new command is suppressed, so that loss of reply can be actively prevented.
Further, according to the communication control device having the seventh configuration, the first device can promptly recognize the busy state of the communication control device.
[Brief description of the drawings]
FIG. 1 is a principle block diagram of a communication control device of the present invention.
FIG. 2 is a configuration block diagram of a conventional communication system.
FIG. 3 is a flow chart of normal data when a command is transferred from a second device to a first device in a conventional communication system.
FIG. 4 is a data flow diagram in a conventional communication system when there is no empty space in a first buffer of a communication control device.
FIG. 5 is a configuration block diagram of an embodiment.
FIG. 6 is a diagram illustrating a format of a command according to the embodiment.
FIG. 7 is a diagram showing a format of a reply according to the embodiment.
FIG. 8 is a data flow diagram when an area for storing a reply is secured in a first buffer in the embodiment.
FIG. 9 is a data flow diagram in a case where a region for storing a reply in a first buffer is insufficient and command transfer is suppressed in the embodiment.
FIG. 10 is a data flow diagram when a command is sent from the first device in the embodiment.
FIG. 11 is a data flow diagram when a region for storing a command in the first buffer is insufficient and a reply is generated in the embodiment.
[Explanation of symbols]
11 first buffer 12 second buffer 13 receiving unit 14 transmitting unit 15 storage area control unit 16 empty area shortage detection unit 17 ··· Bidirectional buffer 18 ··· Reply generator 19a ··· Write position holding counter 19b ··· Read position holding counter 30 ··· First device 40 ··· Second device 50 Bus

Claims (6)

実行結果の大きさを含むコマンドの実行結果を表すリプライをバスを介して第1の装置から受け取る受信部と、
前記受信部で受信されたリプライを一時記憶するとともに、この記憶したリプライを前記コマンドの送信元である第2の装置に出力る第1バッファと、
実行結果の大きさを含むコマンドを前記第2の装置から受け取り一時記憶する第2バッファと、
前記第2バッファに記憶されたコマンドを前記バスを介して前記第1の装置に出力する送信部と、
前記第2バッファに前記第2の装置からのコマンドが一時記憶された場合に、このコマンドに含まれる実行結果の大きさに基づいて、このコマンドに対応する第1の装置からのリプライを一時記憶するのに必要な領域を前記第1バッファに予め確保する記憶領域制御部と
を備えたことを特徴とする通信制御装置。
A receiving unit that receives a reply indicating the execution result of the command, including the size of the execution result from the first device via the bus,
While temporarily storing the re ply received by the receiving unit, a first buffer you outputs the memorized re ply to a second device which is the source of the command,
A second buffer for receiving temporarily storing command including the size of the execution result from said second device,
A transmission unit for outputting to the first device a command stored in the second buffer through the bus,
When a command from the second device is temporarily stored in the second buffer, a reply from the first device corresponding to the command is temporarily stored based on the size of the execution result included in the command. communication control apparatus characterized by comprising a storage area control unit for previously secure a space required for the first buffer to.
前記リプライは、その大きさを表すリプライ数量を含んでおり、前記記憶領域制御部は、前記受信部で受信され前記第1バッファに一時格納されたリプライが前記第2の装置へ出力されたときにこのリプライに含まれるリプライ数量に基づいて、前記第1バッファに予め確保しておいた領域を開放することを特徴とする請求項に記載の通信制御装置。The reply includes a reply quantity representing the size, the storage area control unit, reply that is received is stored temporarily in the first buffer in the previous SL receiver is output to the second device when, based on the reply quantity contained in the reply, the communication control device according to claim 1, characterized in that opening the area which had been previously secured to the first buffer. 前記記憶領域制御部は、カウンタを有し、領域を確保する場合にはカウンタの値を増加させる一方、領域を開放する場合にはカウンタの値を減少させて、前記第1バッファの記憶領域確保及び解放を行うことを特徴とする請求項又はに記載の通信制御装置。The storage area control unit has a counter, and increases the value of the counter when securing an area, and decreases the value of the counter when releasing an area to secure the storage area of the first buffer. and a communication control device according to claim 1 or 2, characterized in that it releases. 前記記憶領域制御部が前記第1バッファに確保しようとする領域の大きさと、前記第1バッファに書き込み可能な領域の大きさとを比較することにより、前記第1バッファ空領域不足を検出する空領域不足検出部をさらに備えたことを特徴とする請求項に記載の通信制御装置。The storage area control unit compares the size of an area to be secured in the first buffer with the size of an area writable in the first buffer , thereby detecting an empty area shortage in the first buffer. The communication control device according to claim 2 , further comprising an area shortage detection unit. 前記空領域不足検出部は、前記第1バッファの空領域不足を検出したことを前記送信部に通知し、前記送信部は、空領域不足の通知を受けた場合に、前記第2バッファに一時記
憶されたコマンドについて、このコマンドに対応するリプライの格納領域が前記記憶領域制御部によって前記第1バッファに確保されるまで、当該コマンドを前記第1の装置へ送信することを停止する
ことを特徴とする請求項に記載の通信制御装置。
The free area shortage detection unit, the detection of the empty area shortage of the first buffer and notifies the transmission unit, the transmission unit, when receiving a notice of insufficient free space, temporarily in the second buffer Record
For the stored command, the transmission of the command to the first device is stopped until the storage area of the reply corresponding to the command is secured in the first buffer by the storage area control unit. > The communication control device according to claim 4 , wherein:
リプライを生成するリプライ生成部をさらに備え
前記空領域不足検出部は、前記第1バッファの空領域不足を検出したことを前記受信部に通知し、
前記受信部は、空領域不足の通知を受けている間に前記第1の装置から前記第2の装置宛のコマンドを受信した場合に、リプライ生成に必要なデータを前記リプライ生成部に出力し、
前記リプライ生成部は、リプライ生成に必要なデータ入力された場合に、データが受け取れないという内容のリプライを生成し、
前記送信部は、前記リプライ生成部で生成されたリプライを前記バスを介して前記第1の装置に送信する
ことを特徴とする請求項に記載の通信制御装置。
Further comprising a reply generation unit for generating a reply,
The empty area shortage detection unit notifies the receiving unit that the empty area shortage of the first buffer has been detected,
The receiving unit, when receiving a command addressed to the second device from the first device while receiving the notification of the lack of empty area, outputs data necessary for reply generation to the reply generation unit. ,
The reply generation unit, if the data necessary for the replier is input, generates a reply stating that the data is not received,
The communication control device according to claim 4 , wherein the transmission unit transmits the reply generated by the reply generation unit to the first device via the bus.
JP05959995A 1995-03-20 1995-03-20 Communication control device Expired - Fee Related JP3554602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05959995A JP3554602B2 (en) 1995-03-20 1995-03-20 Communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05959995A JP3554602B2 (en) 1995-03-20 1995-03-20 Communication control device

Publications (2)

Publication Number Publication Date
JPH08263408A JPH08263408A (en) 1996-10-11
JP3554602B2 true JP3554602B2 (en) 2004-08-18

Family

ID=13117884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05959995A Expired - Fee Related JP3554602B2 (en) 1995-03-20 1995-03-20 Communication control device

Country Status (1)

Country Link
JP (1) JP3554602B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4416999B2 (en) 2002-11-25 2010-02-17 シャープ株式会社 Communication device

Also Published As

Publication number Publication date
JPH08263408A (en) 1996-10-11

Similar Documents

Publication Publication Date Title
CA2103895C (en) Method and apparatus for controlling data communication operations within stations of a local area network
US6542513B1 (en) Optimistic, eager rendezvous transmission mode and combined rendezvous modes for message processing systems
KR970029126A (en) Multiprocessor system
JPH07262154A (en) Inter-processor communication control system
CN107453845B (en) Response confirmation method and device
JP3554602B2 (en) Communication control device
US6445718B1 (en) Serial interface circuit
JP3745738B2 (en) Communication control method
KR100298961B1 (en) Source and destination initiated interrupt system for message arrival notification
KR100290621B1 (en) Charging data processing device and method thereof in case of charging disk error in electronic exchange system
US6098105A (en) Source and destination initiated interrupt method for message arrival notification
JP4708901B2 (en) Data processing module and method for preparing message transmission
JPH1117710A (en) Serial interface circuit
JP3043742B1 (en) Bandwidth generation device for uplink transmission information
US6098104A (en) Source and destination initiated interrupts for message arrival notification, and related data structures
JP2944193B2 (en) Data receiving device
JP3023339B2 (en) Message arrival notification method and system
US20040078479A1 (en) Traffic generator using a network processor
JP2000339181A (en) Inter-process communication method and inter-process communication equipment
JP2998635B2 (en) Alarm transfer method
JP2002014884A (en) Message queuing method
JPS589619B2 (en) data communication system
CN115033405A (en) Inter-process data transmission method, process, electronic device and storage medium
JP2021022040A (en) Communication control system and information processor
JP2000022720A (en) Shared memory device for communication system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040322

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040510

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080514

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090514

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090514

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100514

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100514

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110514

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120514

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees