JPH10254799A - Interface control method of communication device - Google Patents

Interface control method of communication device

Info

Publication number
JPH10254799A
JPH10254799A JP9079211A JP7921197A JPH10254799A JP H10254799 A JPH10254799 A JP H10254799A JP 9079211 A JP9079211 A JP 9079211A JP 7921197 A JP7921197 A JP 7921197A JP H10254799 A JPH10254799 A JP H10254799A
Authority
JP
Japan
Prior art keywords
command
control unit
response
area
communication control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9079211A
Other languages
Japanese (ja)
Other versions
JP3816180B2 (en
Inventor
Nobuyuki Endo
信行 遠藤
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.)
Hitachi Telecom Technologies Ltd
Original Assignee
Hitachi Telecom Technologies 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 Hitachi Telecom Technologies Ltd filed Critical Hitachi Telecom Technologies Ltd
Priority to JP07921197A priority Critical patent/JP3816180B2/en
Publication of JPH10254799A publication Critical patent/JPH10254799A/en
Application granted granted Critical
Publication of JP3816180B2 publication Critical patent/JP3816180B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate a recognition wait time on a response reception side after response issue, and to obtain a high-speed interface and to prevent double issue of a command by allowing each control part to monitor each area of a common memory. SOLUTION: The common memory 21 for the interface is divided into a central control part command area 21a, a central control part response area 21b, a communication control part command area 21C, and a communication control part response area 21d. Then respective control parts monitor the respective areas 21a to 21d of the common memory 21. This control method once receiving a response to a command issued on a command issue side clears the command area of the common area 21 and when a response issue side detects the command area being cleared, the normal recognition of the response issue on the response reception side which is the command issue side is detected, thereby making it ready to issue a command.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、通信装置の複数の
制御部間におけるインターフェイス制御方法に関する。
The present invention relates to a method for controlling an interface between a plurality of control units of a communication device.

【0002】[0002]

【従来の技術】従来、複数の制御部間のインターフェイ
スに共有メモリを使用し、コマンド/レスポンス形式に
よって制御情報の受け渡しを行う制御方法において、レ
スポンス受信側の受信処理完了を待たずに次のコマンド
を発行した場合、レスポンス受信側でレスポンスがコマ
ンド受信により受け取れなくなったり、レスポンス受信
処理中に次のコマンドを受信しなければならないため、
複雑な受信処理を必要とした。
2. Description of the Related Art Conventionally, in a control method in which a shared memory is used as an interface between a plurality of control units and control information is transferred in a command / response format, a next command is transmitted without waiting for completion of reception processing on a response receiving side. When the response is issued, the response receiving side cannot receive the response due to the command reception, or the next command must be received during the response reception process.
It required complicated reception processing.

【0003】このような各制御部からのコマンドの二重
発行を防止する方法としては、コマンドに対するレスポ
ンスの発行後、レスポンス発行側でレスポンス受信側が
レスポンスを受信するのに十分な時間を固定的に持つと
いう方法が第1の方法として採用されていた。
As a method for preventing such a double issue of a command from each control unit, after issuing a response to the command, the response issuing side fixedly sets a time sufficient for the response receiving side to receive the response. The method of having was adopted as the first method.

【0004】また、中央制御部から各通信制御部へ、ま
たは各通信制御部から中央制御部へのコマンドの同時発
行が発生した場合の回避手段としては、共有メモリに対
しハード的にアクセス権を制御する仕組みを持ち、その
アクセス権を得た制御部だけが共有メモリへのコマンド
の書き込みと発行を可能とし、コマンドの同時発行を発
行以前に防止する方法が第2の方法として採用されてい
た。
[0004] As a means for avoiding simultaneous generation of commands from the central control unit to each communication control unit or from each communication control unit to the central control unit, access right to the shared memory is hardened. As a second method, a control mechanism is provided, in which only the control unit having the right to access can write and issue a command to the shared memory and prevent simultaneous issuing of commands before issuing the command. .

【0005】また、両制御部において、受信したコマン
ドに対しての処理と、自身が送信したコマンドの処理を
ソフト的にマルチで動作し、コマンドの同時発行後に回
避する方法が第3の方法として採用されていた。
[0005] A third method is a method in which the processing of the received command and the processing of the command transmitted by itself are performed in a software-based multi-way manner in both control units so as to avoid the processing after issuing the commands simultaneously. Was adopted.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、第1の
方法のようにレスポンス発行側がレスポンス受信側でレ
スポンス受信処理が完了したかどうかの確認がとれない
ため、レポンス受信側でレスポンス受信処理中に次のコ
マンドを受信するといったコマンドの二重発行を防止す
るために固定的な時間を必要とする場合、レスポンス発
行側が次のコマンドを発行するまで必ず一定間隔の待ち
時間が生じることになり、高速のインターフェイスを実
現できないといった不都合があった。
However, since the response issuing side cannot confirm whether the response receiving process has been completed on the response receiving side as in the first method, the response receiving side has the following problem during the response receiving process. If a fixed time is required to prevent double issuing of commands such as receiving a command, a certain interval of waiting time will always occur until the response issuing side issues the next command. There was a disadvantage that the interface could not be realized.

【0007】また、第2の方法のように共有メモリにハ
ード的なアクセス権の制御を持たせる場合、ハード的な
仕組みが複雑になり、開発量が増大するばかりでなく、
製品原価が高くなるといった不都合があった。
In the case where the shared memory is provided with hardware access right control as in the second method, the hardware mechanism becomes complicated and the development amount increases.
There was an inconvenience such as a high product cost.

【0008】また、第3の方法のように受信したコマン
ドに対しての処理と、自身が発行したコマンドの処理と
をソフト的にマルチで動作し実現しようとする場合、イ
ンターフェイスを要する全ての制御部において、マルチ
で動作する複雑な仕組みが必要となり、ソフトの開発規
模が増大するばかりでなく、コマンドの同時発行後に回
避処理を行うため、コマンドの同時発行が発生した場
合、マルチで動作する複雑な回避処理が実行されること
になり、処理時間が増大してしまうといった不都合があ
った。
In the case where the processing of a received command and the processing of a command issued by the apparatus itself are to be performed in a multi-operated manner by software as in the third method, all the control operations that require an interface are performed. Requires a complex mechanism that operates in multiple units, which not only increases the scale of software development, but also performs avoidance processing after the simultaneous issuance of commands. Evasion processing is performed, and the processing time is increased.

【0009】本発明は、このような従来の課題を解決す
るためになされたもので、その第1の目的は、レスポン
ス発行後におけるレスポンス受信側の認識待ち時間をな
くして高速のインターフェイスとすることであり、かつ
レスポンス発行側でレスポンス受信側が正常に受信され
たか否かの確認がとれるようにすることでコマンドの二
重発行を防止することにある。
The present invention has been made to solve such a conventional problem, and a first object of the present invention is to provide a high-speed interface by eliminating the recognition waiting time of a response receiving side after issuing a response. Another object of the present invention is to prevent a command from being issued twice by allowing the response issuing side to confirm whether the response receiving side has been normally received.

【0010】また、その第2の目的は、ハード的にアク
セス権を持たせるなどのハード的制御の仕組みをなく
し、ハード的な開発規模の縮小と製品原価の低減を図る
ことにある。
A second object of the present invention is to eliminate a hardware control mechanism such as giving access rights by hardware, and to reduce the scale of hardware development and product cost.

【0011】また、その第3の目的は、ソフト的にマル
チで動作するための複雑な仕組みをなくし、ソフトの開
発規模の縮小と制御部間インターフェイスでの時間短縮
を図ることにある。
A third object of the present invention is to eliminate a complicated mechanism for operating the software in multiple ways, and to reduce the development scale of the software and the time at the interface between the control units.

【0012】[0012]

【課題を解決するための手段】本発明による請求項1記
載の発明は、複数の通信制御部およびこの複数の通信制
御部を制御する中央制御部間のインターフェイス部に通
信制御部のコマンド部およびレスポンス部ならびに中央
制御部のコマンド部およびレスポンス部の各エリアを有
する共有メモリを備え、コマンド発行側が発行したコマ
ンドに対するレスポンスを受信すると共有メモリのコマ
ンドエリアをクリアし、レスポンス発行側がコマンドエ
リアがクリアされたことを検出するとコマンド発行側で
あるレスポンス受信側でレスポンスが正常に認識された
ことを検出し、次コマンド発行状態とするものである。
According to the first aspect of the present invention, a command section of a communication control section and a communication control section are provided in an interface section between a central control section for controlling the plurality of communication control sections. A shared memory having respective areas of a response section and a command section and a response section of the central control section is provided. When a response to a command issued by the command issuer is received, the command area of the shared memory is cleared, and the command area of the response issuer is cleared. When this is detected, the response receiving side, which is the command issuing side, detects that the response has been normally recognized, and enters the next command issuing state.

【0013】本発明によれば、共有メモリの各エリアを
各制御部が監視することで、レスポンス発行側は自身の
発行したレスポンスがレスポンス受信側で正常に認識さ
れたことを検出することができ、レスポンス発行時にお
けるレスポンス受信側の待ち時間をなくし、高速のイン
ターフェイスを実現するだけでなく、コマンドの二重発
行を防止することが可能になる。
According to the present invention, each control unit monitors each area of the shared memory, so that the response issuing side can detect that the response issued by itself has been normally recognized by the response receiving side. This eliminates the waiting time on the response receiving side at the time of issuing a response, not only realizes a high-speed interface, but also prevents double issuing of commands.

【0014】本発明による請求項2記載の発明は、請求
項1記載の発明において、通信制御部および中央制御部
から同時にコマンド発行が生じると、予め定めた優先順
位の低い制御部が優先順位の高い制御部からのコマンド
に対する処理を優先的に処理してレスポンスを発行し、
優先順位の高い制御部が優先順位の低い制御部からのコ
マンドを無視して優先順位の低い制御部からのレスポン
スを受信すると、次コマンド発行状態とするものであ
る。
According to a second aspect of the present invention, in the first aspect of the present invention, when a command is issued from the communication control unit and the central control unit at the same time, a control unit having a predetermined lower priority order has a lower priority order. Priority is given to processing for commands from high control units and responses are issued,
When a control unit with a higher priority ignores a command from a control unit with a lower priority and receives a response from a control unit with a lower priority, the next command is issued.

【0015】本発明によれば、各制御部間のコマンドの
同時発行を回避するために予め優先順位を定め、例えば
通信制御部のコマンド発行時の優先順位を高くした場合
は、中央制御部は通信制御部のコマンドが優先であるた
め、自制御部が発行したコマンドの後回し処理を実行
し、通信制御部から受信したコマンドに対する処理を実
行した後に通信制御部にレスポンスを発行する。一方、
コマンドを受信した通信制御部は中央制御部に対してコ
マンド発行中であるため中央制御部からのコマンドを無
視し、自身が発行したコマンドのレスポンス受信待ち状
態となる。レスポンスを受信すると通信制御部は再びコ
マンド発行可能な初期状態に戻る。レスポンスを発行し
た中央制御部も後回しにした通信制御部に対するコマン
ドの再発行が可能な状態となる。
According to the present invention, in order to avoid simultaneous issuance of commands between the control units, priorities are determined in advance. Since the command of the communication control unit has priority, the post-processing of the command issued by the own control unit is executed, and after executing the process for the command received from the communication control unit, a response is issued to the communication control unit. on the other hand,
Since the communication control unit that has received the command is issuing a command to the central control unit, the communication control unit ignores the command from the central control unit and waits for a response reception of the command issued by itself. Upon receiving the response, the communication control unit returns to the initial state in which a command can be issued. The central control unit that has issued the response is also in a state in which a command can be reissued to the communication control unit that has been postponed.

【0016】[0016]

【発明の実施の形態】図1は、本発明による通信装置の
インターフェイス制御方法が適用される通信装置の概略
構成のブロック図である。同図において、中央制御部1
はメインプログラム動作エリアとして機能するSIMM
(シングルインライン・メモリモジュール)11、メイ
ンプログラム格納エリアとして機能するEEPROM
(電気的消去型書き換え可能ROM)12、バックアッ
プ用エリアとして機能するRAM13、初期診断プログ
ラムエリアとして機能するROM14、中央制御部1を
制御するCPU(中央処理装置)15、FPGA(フィ
ールドプログラマブル・ゲートアレイ)16およびSC
U(シリアルインターフェイス制御装置)17がバスを
介して互いに接続されており、さらにCLK(クロック
供給装置)18がCPU15に接続されている。そし
て、CPU15が外部のバスラインに接続されている。
FIG. 1 is a block diagram of a schematic configuration of a communication device to which a method for controlling an interface of a communication device according to the present invention is applied. In the figure, the central control unit 1
Is a SIMM that functions as a main program operation area
(Single inline memory module) 11, EEPROM functioning as main program storage area
(Electrically erasable rewritable ROM) 12, RAM 13 functioning as a backup area, ROM 14 functioning as an initial diagnosis program area, CPU (central processing unit) 15 controlling central control unit 1, FPGA (field programmable gate array) ) 16 and SC
U (serial interface control device) 17 is connected to each other via a bus, and CLK (clock supply device) 18 is connected to CPU 15. The CPU 15 is connected to an external bus line.

【0017】また、通信制御部2はインターフェイス用
共有メモリとして機能するDPRAM(デュアルポート
RAM)21、FPGA(フィールドプログラマブル・
ゲートアレイ)22、通信制御部2を制御するCPU
(中央処理装置)23、メインプログラム格納エリアと
して機能するEPROM(紫外線消去型書き換え可能R
OM)24、メインプログラム動作エリアとして機能す
るSRAM(スタティックRAM)25がバスを介して
互いに接続されており、さらにSYNC(セル送受信制
御装置)26およびCLK(クロック供給装置)27が
CPU23に接続されている。そして、インターフェイ
ス用共有メモリとしてのDPRAM21が外部のバスラ
インに接続されている。
The communication control unit 2 has a DPRAM (dual port RAM) 21 functioning as an interface shared memory and an FPGA (field programmable
Gate array) 22, CPU for controlling communication control unit 2
(Central processing unit) 23, EPROM (ultraviolet erasable rewritable R) functioning as a main program storage area
OM) 24 and an SRAM (static RAM) 25 functioning as a main program operation area are connected to each other via a bus. Further, a SYNC (cell transmission / reception control device) 26 and a CLK (clock supply device) 27 are connected to the CPU 23. ing. A DPRAM 21 as an interface shared memory is connected to an external bus line.

【0018】図2は、中央制御部1と通信制御部2の制
御情報の受け渡しを行うインターフェイス用共有メモリ
21の記憶エリアを示す図で、中央制御部1から通信制
御部2へのコマンドを発行する中央制御部コマンドエリ
ア21a、中央制御部1から通信制御部2へのレスポン
スを発行する中央制御部レスポンスエリア21b、通信
制御部2から中央制御部1へのコマンドを発行する通信
制御部コマンドエリア21c、通信制御部2から中央制
御部1へのレスポンスを発行する通信制御部レスポンス
エリア21dとに分割され、中央制御部1の制御情報と
通信制御部2の制御情報とを区別することができるよう
になっている。
FIG. 2 is a diagram showing a storage area of the interface shared memory 21 for transferring control information between the central control unit 1 and the communication control unit 2, and issues a command from the central control unit 1 to the communication control unit 2. Central control unit command area 21a, a central control unit response area 21b for issuing a response from the central control unit 1 to the communication control unit 2, and a communication control unit command area for issuing a command from the communication control unit 2 to the central control unit 1. 21c, is divided into a communication control unit response area 21d for issuing a response from the communication control unit 2 to the central control unit 1, so that control information of the central control unit 1 and control information of the communication control unit 2 can be distinguished. It has become.

【0019】図3は、中央制御部1と通信制御部2のイ
ンターフェイスにてコマンドの二重発行を防止する処理
手順を示すフローチャートである。図中、先端を塗り潰
した実線矢印は処理の流れを示し、塗り潰していない実
線矢印は割込みを示し、破線矢印は共有メモリの監視を
示す。
FIG. 3 is a flowchart showing a processing procedure for preventing a command from being issued twice at the interface between the central control unit 1 and the communication control unit 2. In the figure, the solid arrow with the tip painted indicates the flow of processing, the solid arrow without painting indicates an interrupt, and the dashed arrow indicates monitoring of the shared memory.

【0020】同図において、まず中央制御部1と通信制
御部2との制御情報の受け渡しを行うインターフェイス
用共有メモリ21は、初期状態ではクリアされた状態に
ある(ステップS11)。
Referring to FIG. 1, the interface shared memory 21 for transferring control information between the central control unit 1 and the communication control unit 2 is initially cleared (step S11).

【0021】中央制御部1は通信制御部2に対しコマン
ドエリア1に制御情報の書き込みコマンド「×××要
求」を発行し(ステップS12)、通信制御部2からの
レスポンス待ちになる(ステップS13)。
The central control unit 1 issues a control information write command "xxx request" to the command area 1 to the communication control unit 2 (step S12), and waits for a response from the communication control unit 2 (step S13). ).

【0022】初期状態で中央制御部1からのコマンドを
受信した通信制御部2は(ステップS14)、その制御
情報の処理を実行し、中央制御部1に対してレスポンス
「×××完了」の発行を行い(ステップS15)、中
央制御部1のコマンドエリア1のクリアを監視するクリ
ア待ちとなる(ステップS16)。
The communication control unit 2 which has received the command from the central control unit 1 in the initial state (step S14) executes the processing of the control information and sends a response "xxx complete" to the central control unit 1. The command is issued (step S15), and a clear wait is performed to monitor the clearing of the command area 1 of the central control unit 1 (step S16).

【0023】通信制御部2からのレスポンスを受信し
た中央制御部1は(ステップS17)、コマンドエリア
1をクリアし(ステップS18)、通信制御部2に対し
てレスポンスを正常に受信したことを認識させる。
The central control unit 1 that has received the response from the communication control unit 2 (step S17) clears the command area 1 (step S18), and recognizes that the communication control unit 2 has received the response normally. Let it.

【0024】中央制御部1のコマンドエリア1のクリア
を監視していた通信制御部2は、コマンドエリア1がク
リアされたことを検出すると、レスポンスエリア2をク
リアする(ステップS19)。これにより、このコマン
ドに関する処理が全て完了したことになり、中央制御部
1および通信制御部2はともに次のコマンドが発行可能
である初期状態(ステップS11)へと戻る。
When the communication control unit 2 monitoring the clearing of the command area 1 of the central control unit 1 detects that the command area 1 has been cleared, it clears the response area 2 (step S19). As a result, all processing relating to this command is completed, and both the central control unit 1 and the communication control unit 2 return to the initial state (step S11) where the next command can be issued.

【0025】図4は、中央制御部1と通信制御部2のイ
ンターフェイスにてコマンドの同時発行時の処理手順を
示すフローチャートである。同図において、中央制御部
1と通信制御部2との制御情報の受け渡しを行うインタ
ーフェイス用共有メモリ(DPRAM)21は、初期状
態ではクリアされている(ステップS21)。
FIG. 4 is a flowchart showing a processing procedure when commands are simultaneously issued at the interface between the central control unit 1 and the communication control unit 2. In the figure, an interface shared memory (DPRAM) 21 for transferring control information between the central control unit 1 and the communication control unit 2 is cleared in an initial state (step S21).

【0026】中央制御部1は通信制御部2に対しコマン
ドエリア1に制御情報の書き込みコマンド「×××要
求」を発行し(ステップS22)、通信制御部2からの
レスポンス待ちになる(ステップS23)。
The central control unit 1 issues a control information write command "xxx request" to the command area 1 to the communication control unit 2 (step S22), and waits for a response from the communication control unit 2 (step S23). ).

【0027】通信制御部2は中央制御部1に対しコマン
ドエリア2に制御情報の書き込みコマンド「×××要
求」を発行し(ステップS24)、通信制御部2からの
レスポンス待ちになる(ステップS25)。この時点で
中央制御部1および通信制御部2間でコマンドの同時発
行が発生したことになる。
The communication control unit 2 issues a control information write command "xxx request" to the command area 2 to the central control unit 1 (step S24), and waits for a response from the communication control unit 2 (step S25). ). At this point, simultaneous commands are issued between the central control unit 1 and the communication control unit 2.

【0028】レスポン待ち状態で通信制御部2からのコ
マンドを受信した中央制御部1は(ステップS26)、
通信制御部2からのコマンドを優先し、通信制御部2に
対して発行したコマンドの処理を後回しする(ステッ
プS27)。
The central control unit 1 having received the command from the communication control unit 2 in the response waiting state (step S26)
The command from the communication control unit 2 is prioritized, and the processing of the command issued to the communication control unit 2 is postponed (step S27).

【0029】中央制御部1は受信したコマンドに対す
る制御情報の処理を実行後(ステップS28)、通信制
御部2に対してレスポンス「×××応答」の発行を行
い(ステップS29)、通信制御部2のコマンドエリア
2のクリアを監視するクリア待ちとなる(ステップS3
0)。
After executing the processing of the control information for the received command (step S28), the central control unit 1 issues a response “xxx response” to the communication control unit 2 (step S29), and the communication control unit 2 to wait for clearing of the command area 2 (step S3).
0).

【0030】中央制御部1からコマンドを受信した通
信制御部2は(ステップS31)、中央制御部1からの
レスポンス待ち状態であるのでコマンドを無視し(ス
テップS32)、再びレスポンス待ちとなる(ステップ
S33)。
The communication control unit 2 that has received the command from the central control unit 1 (step S31) ignores the command because it is waiting for a response from the central control unit 1 (step S32), and waits for a response again (step S32). S33).

【0031】中央制御部1からレスポンスを受信した
通信制御部2は(ステップS34)、発行したコマンド
エリアをクリアし、中央制御部1に対しレスポンスを正
常に受信したことを認識させる(ステップS35)。
Upon receiving the response from the central control unit 1 (step S34), the communication control unit 2 clears the issued command area and causes the central control unit 1 to recognize that the response has been normally received (step S35). .

【0032】通信制御部2のコマンドエリア2のクリア
を監視していた中央制御部1は、コマンドエリア2がク
リアされたことを検出すると、レスポンスを発行した
レスポンスエリア1をクリアする(ステップS36)。
When the central control unit 1 monitoring the clearing of the command area 2 of the communication control unit 2 detects that the command area 2 has been cleared, the central control unit 1 clears the response area 1 which has issued the response (step S36). .

【0033】次いで、中央制御部1は通信制御部2に対
してコマンド発行の後回し処理を行ったかどうかの判定
を行い(ステップS37)、コマンド発行の後回し処理
を行っていたならば、同一のコマンドをリトライ処理
として通信制御部2に発行し(ステップS38)、通信
制御部2からのレスポンス待ちとなる(ステップS3
9)。
Next, the central control unit 1 determines whether or not the postponed process of issuing the command has been performed to the communication control unit 2 (step S37). If the postponed process of issuing the command has been performed, the same command is issued. As a retry process to the communication control unit 2 (step S38), and waits for a response from the communication control unit 2 (step S3).
9).

【0034】すでに共有エリアが初期状態になっている
通信制御部2は、中央制御部1からのコマンドを受信
すると(ステップS40)、ステップS29〜S36ま
での処理を行う。コマンド発行中でなかった場合は、次
のコマンドが発行可能である初期状態(ステップS2
1)へ戻るという処理を繰り返し行う。
When receiving the command from the central control unit 1 (step S40), the communication control unit 2 in which the shared area is already in the initial state performs the processing of steps S29 to S36. If no command is being issued, an initial state in which the next command can be issued (step S2)
The process of returning to 1) is repeated.

【0035】なお、前述の実施の形態では、通信処理部
2に対してコマンド発行の優先を持たせるようにした
が、中央制御部1に対してコマンドの発行の優先を待た
せるようにしてもよい。この場合は、同様の処理を中央
制御部1と通信制御部2とで逆転させることにより実現
可能である。
In the above-described embodiment, the command issuance priority is given to the communication processing unit 2. However, the command issuance priority may be given to the central control unit 1. Good. This case can be realized by reversing the same processing by the central control unit 1 and the communication control unit 2.

【0036】[0036]

【発明の効果】本発明によれば、共有メモリの各エリア
を各制御部が監視することで、レスポンス発行側は自身
の発行したレスポンスがレスポンス受信側で正常に認識
されたことを検出することができ、レスポンス発行時に
おけるレスポンス受信側の認識待ち時間をなくし、高速
のインターフェイスとすることだけでなく、コマンドの
二重発行を防止することが可能になる。
According to the present invention, each control unit monitors each area of the shared memory, so that the response issuing side detects that the response issued by itself is normally recognized by the response receiving side. This makes it possible to eliminate the recognition waiting time of the response receiving side at the time of issuing a response, and not only to realize a high-speed interface, but also to prevent double issuing of commands.

【0037】また、本発明によれば、制御部間にコマン
ド発行時の優先順位を定め、各制御部間からコマンドが
同時に発行した時は、優先順位の低い制御部が優先順位
の高い制御部からのコマンドを処理してレスポンスを発
行し、優先順位の高い制御部は優先順位の低い制御部か
らのコマンドを無視するようにしているので、各制御部
間のコマンドの同時発行を回避することができる。
Further, according to the present invention, priorities at the time of command issuance are determined between the control units, and when commands are simultaneously issued from each control unit, the control unit with the lower priority order is replaced by the control unit with the higher priority order. Process the command from the controller and issue a response, and the higher priority control unit ignores the command from the lower priority control unit. Can be.

【0038】また、本発明によれば、ハード的制御の仕
組みとソフト的にマルチで動作するための複雑な仕組み
とをなくすことができ、ソフトウェアの開発規模の縮小
と制御部間インターフェイスでの時間短縮を図ることが
できる。
Further, according to the present invention, it is possible to eliminate a hardware-based control mechanism and a software-based multi-operation complex mechanism, thereby reducing the software development scale and reducing the time required for the interface between the control units. Shortening can be achieved.

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

【図1】本発明が適用される通信装置のブロック図であ
る。
FIG. 1 is a block diagram of a communication device to which the present invention is applied.

【図2】インターフェイス用共有メモリの記憶エリアを
示す図である。
FIG. 2 is a diagram showing a storage area of an interface shared memory.

【図3】中央制御部と通信制御部のインターフェイスに
てコマンドの二重発行を防止する処理手順を示すフロー
チャートである。
FIG. 3 is a flowchart showing a processing procedure for preventing double issuance of a command at an interface between a central control unit and a communication control unit.

【図4】中央制御部と通信制御部のインターフェイスに
てコマンドの同時発行が生じた場合の回避手順を示すフ
ローチャートである。
FIG. 4 is a flowchart illustrating a procedure for avoiding a case in which commands are simultaneously issued at an interface between a central control unit and a communication control unit.

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

1 中央制御部 2 通信制御部 21 インターフェイス用共有メモリ(DPRAM) 21a 中央制御部コマンドエリア(コマンドエリア
1) 21b 中央制御部レスポンスエリア(レスポンスエリ
ア1) 21c 通信制御部コマンドエリア(コマンドエリア
2) 21d 通信制御部レスポンスエリア(レスポンスエリ
ア2)
DESCRIPTION OF SYMBOLS 1 Central control part 2 Communication control part 21 Interface shared memory (DPRAM) 21a Central control part command area (command area 1) 21b Central control part response area (response area 1) 21c Communication control part command area (command area 2) 21d Communication control section response area (response area 2)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の通信制御部および前記複数の通信
制御部を制御する中央制御部間のインターフェイス部に
前記通信制御部のコマンド部およびレスポンス部ならび
に前記中央制御部のコマンド部およびレスポンス部の各
エリアを有する共有メモリを備え、 コマンド発行側が発行したコマンドに対するレスポンス
を受信すると前記共有メモリのコマンドエリアをクリア
し、レスポンス発行側が前記コマンドエリアがクリアさ
れたことを検出すると前記コマンド発行側であるレスポ
ンス受信側で前記レスポンスが正常に認識されたことを
検出し、次コマンド発行状態とすることを特徴とする通
信装置のインターフェイス制御方法。
An interface between a plurality of communication control units and a central control unit that controls the plurality of communication control units includes a command unit and a response unit of the communication control unit and a command unit and a response unit of the central control unit. A shared memory having each area is provided, and upon receiving a response to a command issued by the command issuing side, the command area of the shared memory is cleared, and when the response issuing side detects that the command area has been cleared, the command issuing side becomes the command issuing side. An interface control method for a communication device, wherein the response receiving side detects that the response has been normally recognized, and sets a next command issuing state.
【請求項2】 通信制御部および中央制御部から同時に
コマンド発行が生じると、予め定めた優先順位の低い制
御部が優先順位の高い制御部からのコマンドに対する処
理を優先的に処理してレスポンスを発行し、優先順位の
高い制御部が優先順位の低い制御部からのコマンドを無
視して優先順位の低い制御部からの前記レスポンスを受
信すると、次コマンド発行状態とすることを特徴とする
請求項1記載の通信装置のインターフェイス制御方法。
2. When a command is issued from the communication control unit and the central control unit at the same time, a predetermined low-priority control unit gives priority to a process for a command from a high-priority control unit and sends a response. Issuing a next command issuance state when the higher priority control unit ignores the command from the lower priority control unit and receives the response from the lower priority control unit. 2. The interface control method for a communication device according to claim 1.
JP07921197A 1997-03-14 1997-03-14 Interface control method for communication apparatus Expired - Fee Related JP3816180B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07921197A JP3816180B2 (en) 1997-03-14 1997-03-14 Interface control method for communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07921197A JP3816180B2 (en) 1997-03-14 1997-03-14 Interface control method for communication apparatus

Publications (2)

Publication Number Publication Date
JPH10254799A true JPH10254799A (en) 1998-09-25
JP3816180B2 JP3816180B2 (en) 2006-08-30

Family

ID=13683615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07921197A Expired - Fee Related JP3816180B2 (en) 1997-03-14 1997-03-14 Interface control method for communication apparatus

Country Status (1)

Country Link
JP (1) JP3816180B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318986C (en) * 2003-03-28 2007-05-30 兄弟工业株式会社 Data processing system
JP2017507438A (en) * 2013-12-31 2017-03-16 エルメス−コム エッセ・エレ・エレ・エッセ Method for exchanging control via USB disk and associated device enabling its realization

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318986C (en) * 2003-03-28 2007-05-30 兄弟工业株式会社 Data processing system
US7336972B2 (en) 2003-03-28 2008-02-26 Brother Kogyo Kabushiki Kaisha Data processing system for a multi-function device
JP2017507438A (en) * 2013-12-31 2017-03-16 エルメス−コム エッセ・エレ・エレ・エッセ Method for exchanging control via USB disk and associated device enabling its realization

Also Published As

Publication number Publication date
JP3816180B2 (en) 2006-08-30

Similar Documents

Publication Publication Date Title
EP0298396B1 (en) Function-distributed control apparatus
JPS5914778B2 (en) data processing equipment
DE60310031T2 (en) BUS INTERFACE WITH LOW POWER CONSUMPTION
US5081577A (en) State controlled device driver for a real time computer control system
JPH04363746A (en) Microcomputer system having dma function
JPH10254799A (en) Interface control method of communication device
JP3051798B2 (en) Output control device and output control method
US5649096A (en) Bus request error detection
JPH07191727A (en) Synchronizing system for distributed control system
JPH02230450A (en) Data processing system
JPH0713791A (en) Equalizing method for duplex control system
JP3358045B2 (en) Programmable controller
JPH04311238A (en) Input-output interface device
JP3399776B2 (en) Computer and method for transferring peripheral device control data in computer
JP2000155738A (en) Data processor
JP3508053B2 (en) Printer power control
JP3348300B2 (en) Channels and adapters
JPH01147939A (en) Robot control system
JPH06261099A (en) Communication control method and device
JP2735112B2 (en) Data read / write method of numerical controller
JPH08221106A (en) Programmable controller
JPH0511339B2 (en)
JPH08255008A (en) Centralized control unit and its control method
JPH0830465A (en) Message driven type multitask system
JPH0441365B2 (en)

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060307

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060508

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: 20060606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060607

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: 20100616

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120616

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees