JPH06326747A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPH06326747A
JPH06326747A JP5133920A JP13392093A JPH06326747A JP H06326747 A JPH06326747 A JP H06326747A JP 5133920 A JP5133920 A JP 5133920A JP 13392093 A JP13392093 A JP 13392093A JP H06326747 A JPH06326747 A JP H06326747A
Authority
JP
Japan
Prior art keywords
communication
information
communication unit
transmission
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5133920A
Other languages
Japanese (ja)
Inventor
Tetsushi Anabuki
哲士 穴吹
武史 ▲国▼政
Takeshi Kunimasa
Yasuhiro Matsuo
康博 松尾
Fumihiko Shibata
文彦 柴田
Hiroshi Ishikawa
宏 石川
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP5133920A priority Critical patent/JPH06326747A/en
Publication of JPH06326747A publication Critical patent/JPH06326747A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To utilize a content of a reception frame even when the processing of a master processor is limited timewise. CONSTITUTION:A communication list received from a master processor is stored and a pointer to the communication list is managed. A communication unit selection means sends a pointer pointing out a head of the communication list to a communication unit read means and part of the communication list corresponding to the pointer is sequentially sent to an external device. In the case of the transmission/reception of the communication list, at first a transmission frame of a communication unit at the head of the communication list is read and sent. When a frame corresponding to the transmission frame is received, a reception frame interpreting means executes an interpretation procedure designated by the communication unit, the content of the received frame is interpreted and the result is given to the master processor. A selection means selects the communication unit to be sent from among the communication units pointed out by a pointer table and the similar transmission reception processing is executed as to the selected communication unit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
の通信処理を効率化させるのに好適な通信制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device suitable for making communication processing of a computer system efficient.

【0002】[0002]

【従来の技術】従来公知の通信制御装置としては、特開
平2−182062号公報に記載されているように、通
信プロセッサが1回の送信要求において複数の送信フレ
ームを主プロセッサから受け取り、それらのフレームを
待ち行列に追加して、待ち行列の先頭のフレームから外
部の装置へ順次送信するようにしたものがある。主プロ
セッサは、通信制御装置が受信する外部装置からの情報
に基づいて必要な処理動作を行う。
2. Description of the Related Art As a conventionally known communication control device, as described in Japanese Patent Application Laid-Open No. 2-182062, a communication processor receives a plurality of transmission frames from a main processor in one transmission request, There is a system in which frames are added to a queue and the frames at the head of the queue are sequentially transmitted to an external device. The main processor performs a necessary processing operation based on the information from the external device received by the communication control device.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来に
おいては、主プロセッサが外部装置から受信した受信フ
レームの内容に基づいて直ちに必要な処理動作を行うた
めには、主プロセッサが受信の終了を待ち、その後に受
信フレームを通信プロセッサから受け取る必要があっ
た。また外部装置からの受信フレームの内容が所定の条
件を満足するものではない場合には、主プロセッサは外
部装置に対して何回も送信フレームを送る必要があり、
主プロセッサの通信処理のための負担が重いものであっ
た。そのため、主プロセッサの処理が時間的な制限を受
ける場合には、主プロセッサが受信完了を待つ時間的余
裕が無く、前記した通信処理を行うことができない場合
が存在するという欠点があった。このような場合の例と
しては、主プロセッサが一定時間ごとのポーリングによ
って複数の外部装置に対して順次処理動作を行う場合や
外部からの割り込みによって処理動作を開始する場合が
ある。そこで、本発明の目的は、主プロセッサの通信処
理のための負荷を軽くするとともに、主プロセッサの処
理が時間的な制限を受ける場合においても、受信フレー
ムの内容に基づいて必要な処理動作を直ちに行うことが
できるようにした通信制御装置を提供することにある。
However, in the prior art, in order for the main processor to immediately perform the necessary processing operation based on the content of the received frame received from the external device, the main processor waits for the end of reception. After that, it was necessary to receive the received frame from the communication processor. When the content of the received frame from the external device does not satisfy the predetermined condition, the main processor needs to send the transmitted frame to the external device many times,
The burden of communication processing of the main processor was heavy. Therefore, when the processing of the main processor is time-limited, there is a drawback that the main processor does not have enough time to wait for the reception completion and the above-mentioned communication processing cannot be performed. As an example of such a case, the main processor may sequentially perform a processing operation on a plurality of external devices by polling at regular intervals, or may start the processing operation by an interrupt from the outside. Therefore, an object of the present invention is to reduce the load for communication processing of the main processor and to immediately perform necessary processing operation based on the content of the received frame even when the processing of the main processor is time-limited. It is to provide a communication control device that is capable of performing.

【0004】[0004]

【課題を解決するための手段】上記の目的を達成するた
め、請求項1に記載の本発明の通信制御装置は、送信情
報と受信情報を解釈するための解釈情報と受信情報を解
釈した結果に対応して設けられたポインタテーブルとを
有する通信単位からなり、通信単位のポインタテーブル
により次に送信する通信単位を指定することにより任意
の通信単位をリンクした通信リストを記憶する通信リス
ト記憶手段と、該通信リスト記憶手段に記憶された通信
リストから送信すべき通信単位を選択して読出す選択制
御手段と、該選択制御手段により選択された通信単位の
送信情報を外部装置に送信する送信手段と、外部装置か
ら送信される情報を受信する受信手段と、前記選択制御
手段により選択された通信単位の解釈情報に基づいて前
記受信手段により受信した情報を解釈する受信情報解釈
手段とを備え、前記選択制御手段は送信の開始指示に応
じて通信リストの先頭の通信単位を選択してその送信情
報を前記送信手段により送信させるとともに、外部装置
より前記受信手段が情報を受信する毎に、前記受信情報
解釈手段が前記選択した通信単位の解釈情報に基づいて
該受信情報を解釈した結果により、前記選択された通信
単位のポインタテーブルから対応するポインタを選択し
て調べ、該ポインタが指示する通信単位の送信情報を送
信させるようにした構成にある。
In order to achieve the above object, the communication control device of the present invention according to claim 1 interprets the interpretation information and the reception information for interpreting the transmission information and the reception information. A communication list storage means for storing a communication list in which an arbitrary communication unit is linked by designating a communication unit to be transmitted next by the pointer table of the communication unit. A selection control means for selecting and reading a communication unit to be transmitted from the communication list stored in the communication list storage means; and a transmission for transmitting the transmission information of the communication unit selected by the selection control means to an external device. Means, a receiving means for receiving information transmitted from an external device, and the receiving means based on the interpretation information of the communication unit selected by the selection control means. And a reception information interpreting means for interpreting the received information, wherein the selection control means selects a communication unit at the head of the communication list in response to a transmission start instruction, and causes the transmission information to be transmitted by the transmission means. Each time the receiving means receives information from the device, the received information interpreting means responds from the pointer table of the selected communication unit according to the result of interpreting the received information based on the interpretation information of the selected communication unit. The pointer is selected and checked, and the transmission information of the communication unit designated by the pointer is transmitted.

【0005】また他の発明は、上記請求項1に記載の発
明において、次の構成を備えていることを特徴とするも
のである。すなわち、請求項2に記載された発明では、
送信情報と受信情報を解釈するための解釈情報と受信情
報を解釈した結果に対応して設けられたポインタテーブ
ルとを有する通信単位からなり、通信単位のポインタテ
ーブルにより次に送信する通信単位を指定することによ
り任意の数の通信単位をリンクした通信リストを入力す
る入力手段を備え、上記通信リスト記憶手段は前記入力
手段により入力された通信リストを記憶するようにした
構成にある。
According to another aspect of the present invention, in the invention described in claim 1, the following configuration is provided. That is, in the invention described in claim 2,
It is composed of a communication unit having interpretation information for interpreting the transmission information and reception information and a pointer table provided corresponding to the result of interpreting the reception information, and the communication unit to be transmitted next is designated by the pointer table of the communication unit. By so doing, there is provided an input means for inputting a communication list in which an arbitrary number of communication units are linked, and the communication list storage means is configured to store the communication list input by the input means.

【0006】請求項3に記載された発明では、通信リス
ト記憶手段に予め記憶された通信リストを指定する情報
を入力する入力手段を備え、前記選択制御手段は送信の
開始指示に応じて該入力手段により指定される通信リス
トの先頭の通信単位を選択するようにした構成にある。
According to another aspect of the invention, there is provided an input means for inputting information designating a communication list stored in advance in the communication list storage means, and the selection control means receives the input in response to a transmission start instruction. The communication unit at the head of the communication list designated by the means is selected.

【0007】さらに他の発明は、上記請求項1ないし3
に記載の発明において、次の構成を備えていることを特
徴とするものである。すなわち、請求項4に記載された
発明では、通信リスト記憶手段の複数の通信リストを送
信順に結合する通信リスト結合手段を備え、選択手段は
外部装置より前記受信手段が情報を受信する毎に、前記
受信情報解釈手段により該受信情報を前記選択した通信
単位の解釈情報に基づいて解釈させ、前記選択された通
信単位のポインタテーブルから該解釈結果に対応するポ
インタを調べ、該ポインタにより指示される通信単位が
ある場合は該通信単位を選択し、ポインタにより指示さ
れる通信単位がない場合は次に送信する通信リストの先
頭の通信単位を選択してその受信情報を送信させるよう
にした構成にある。
Still another invention is defined by the above-mentioned claims 1 to 3.
The invention described in (3) is characterized by having the following configuration. That is, in the invention described in claim 4, the communication list storage means is provided with a communication list connection means for connecting a plurality of communication lists in the transmission order, and the selection means, each time the reception means receives information from an external device, The reception information interpreting means interprets the reception information based on the interpretation information of the selected communication unit, checks the pointer corresponding to the interpretation result from the pointer table of the selected communication unit, and is instructed by the pointer. When there is a communication unit, the communication unit is selected, and when there is no communication unit pointed to by the pointer, the first communication unit of the communication list to be transmitted next is selected and the reception information is transmitted. is there.

【0008】請求項5に記載された発明では、通信リス
ト記憶手段の複数の通信リストの送信する順序情報を記
憶する順序情報記憶手段と、受信手段が受信した受信情
報に対応する通信単位を判別する受信判別手段とを備
え、選択制御手段は前記順序情報に基づいて順次各通信
リストの先頭の通信単位を順次選択して各々の送信情報
を前記送信手段により送信させるとともに、外部装置よ
り前記受信手段が情報を受信する毎に、前記受信判別手
段が判別した通信単位の解釈情報により解釈した結果に
対応するポインタが指示する通信単位の送信情報を送信
させるようにした構成にある。
In the invention described in claim 5, the order information storage means for storing the order information transmitted by the plurality of communication lists of the communication list storage means and the communication unit corresponding to the reception information received by the reception means are determined. The selection control means sequentially selects the first communication unit of each communication list based on the order information and causes each transmission information to be transmitted by the transmission means, and the reception unit from the external device. Each time the means receives the information, the transmission information of the communication unit designated by the pointer corresponding to the interpretation result by the interpretation information of the communication unit discriminated by the reception discriminating means is transmitted.

【0009】また請求項6に記載された発明は、上記請
求項1に記載の発明において、解釈結果を出力するため
の出力手段を備え、上記解釈情報は受信情報の解釈方法
及びその解釈結果を出力すべき条件を有し、上記受信情
報解釈手段は受信情報を解釈した結果が前記出力すべき
条件を満足する場合前記出力手段により解釈結果を出力
するようにした構成にある。
According to the invention described in claim 6, in the invention described in claim 1, there is provided output means for outputting the interpretation result, and the interpretation information indicates the interpretation method of the reception information and the interpretation result. There is a condition to be output, and the reception information interpretation means is configured to output the interpretation result by the output means when the result of interpreting the reception information satisfies the condition to be output.

【0010】[0010]

【作用】請求項1に記載された発明によれば、選択制御
手段は送信の開始指示に応じて通信リストの先頭の通信
単位を選択してその送信情報を送信させ、外部装置より
情報を受信する毎に、受信情報解釈手段は選択した通信
単位の解釈情報に基づいて受信情報を解釈した結果によ
り、選択された通信単位のポインタテーブルから対応す
るポインタを選択して調べ、該ポインタが指示する通信
単位の送信情報を送信させる。また請求項2に記載され
た発明によれば、通信リストを入力する手段を設けて主
プロセッサから必要な通信リストを適宜入力するように
したので、任意の外部装置との通信を行えるとともに、
通信リスト記憶手段の容量を小さくできる。
According to the invention described in claim 1, the selection control means selects the communication unit at the head of the communication list in response to the transmission start instruction, transmits the transmission information, and receives the information from the external device. Each time the reception information interpreting means interprets the reception information based on the interpretation information of the selected communication unit, the corresponding pointer is selected and examined from the pointer table of the selected communication unit, and the pointer is instructed. The transmission information of the communication unit is transmitted. Further, according to the invention described in claim 2, since the means for inputting the communication list is provided and the necessary communication list is appropriately input from the main processor, communication with an arbitrary external device can be performed, and
The capacity of the communication list storage means can be reduced.

【0011】また請求項3に記載された発明によれば、
通信リスト記憶手段に予め記憶された通信リストを指定
するようにしたため、主プロセッサからの送信の指示が
簡単なものとなり、主プロセッサの負荷を少なくでき
る。また請求項4に記載された発明によれば、複数の通
信リストが送信する順に結合されているため、一つの通
信リストの送信が終了した後、次の通信リストの送信を
続けて行うことができるため、複数の外部装置に対して
順次送信を行うことができ、主プロセッサが各通信リス
トの終了毎に新たな通信リストの送信を指示することが
不要となり、主プロセッサの負荷を少なくできる。
According to the invention described in claim 3,
Since the communication list stored in advance in the communication list storage means is designated, the transmission instruction from the main processor becomes simple and the load on the main processor can be reduced. According to the invention described in claim 4, since the plurality of communication lists are combined in the order of transmission, it is possible to continuously transmit the next communication list after the transmission of one communication list is completed. Therefore, it is possible to sequentially perform transmission to a plurality of external devices, and it becomes unnecessary for the main processor to instruct transmission of a new communication list each time each communication list ends, and the load on the main processor can be reduced.

【0012】また請求項5に記載された発明によれば、
通信リストの送信順に各通信リストの通信単位を送信す
ることができ、外部装置からの受信情報に対応する通信
単位の送信を判断して、その解釈を行うため、複数の通
信リストの通信処理を並行して行うことができる。更に
請求項6に記載された発明によれば、解釈結果が所定の
条件を満足した場合のみ、解釈結果を出力するようにし
たので、主プロセッサ側で必要とする結果のみを得るこ
とができ、主プロセッサの通信負荷を軽減することがで
きる。
According to the invention described in claim 5,
The communication units of each communication list can be transmitted in the order of transmission of the communication list, and the transmission of the communication unit corresponding to the received information from the external device is determined and interpreted. Can be done in parallel. Further, according to the invention described in claim 6, since the interpretation result is output only when the interpretation result satisfies a predetermined condition, it is possible to obtain only the result required by the main processor side. The communication load on the main processor can be reduced.

【0013】[0013]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図1は本発明の通信制御装置に用いられる通信単
位の概念を示す。通信単位は1回の送受信に必要な情報
をセットにしたものである。そして、ポインタで互いに
リンクされた複数の通信単位からなる通信リストの形
で、主プロセッサから通信装置へ通信に必要な情報が渡
される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the concept of a communication unit used in the communication control device of the present invention. The communication unit is a set of information required for one transmission / reception. Then, the information required for communication is passed from the main processor to the communication device in the form of a communication list including a plurality of communication units linked to each other by a pointer.

【0014】図1において、通信単位の構成は送信フレ
ーム、送信フレームに対応して受信されるフレームの解
釈手段を示す解釈情報(例えば解釈するプログラムを格
納したポインタやID番号などの情報)及び次に送信す
る可能性のある通信単位へのポインタのテーブルを備え
ている。ただし、前記ポインタテーブルは0又は1個以
上のポインタから成る。
In FIG. 1, a communication unit is composed of a transmission frame, interpretation information indicating interpretation means of a frame received corresponding to the transmission frame (for example, information such as a pointer storing a program to be interpreted and an ID number) and the following. It has a table of pointers to communication units that may be sent to. However, the pointer table consists of 0 or 1 or more pointers.

【0015】通信リストの例を図2に示す。図2(a)
は送信/受信をそれぞれ一回だけ行うもの、(b)は受
信フレームを解釈した結果ある条件が満たされるまで送
受信を繰り返すもの、(c)は最初の送受信による受信
フレームの内容によって送信コマンドを選択するもの、
(d)は多数のコマンドを順次送信するもの、(e)は
複雑な制御構造を形成したものである。このように、通
信単位をポインタでリンクすることにより、コマンド/
ステータス通信などにおいて複数の送受信間で制御構造
を構築することが可能となる。また、各通信単位の送信
フレームが複数のフレームから成る場合は、多数のコマ
ンドを一度に送信することができる。
An example of the communication list is shown in FIG. Figure 2 (a)
Indicates that transmission / reception is performed only once, (b) indicates that transmission / reception is repeated until a certain condition is satisfied as a result of interpretation of the reception frame, and (c) indicates a transmission command selected according to the content of the reception frame by the first transmission / reception. What to do,
(D) is for sequentially transmitting a large number of commands, and (e) is for forming a complicated control structure. In this way, by linking communication units with pointers, commands /
It becomes possible to construct a control structure between a plurality of transmissions / receptions in status communication and the like. Also, when the transmission frame of each communication unit is composed of a plurality of frames, a large number of commands can be transmitted at one time.

【0016】次に本発明の通信制御装置の概略を図3で
説明する。通信制御装置は、通信リストを主プロセッサ
から受け取り記憶する通信リスト記憶手段、受け取った
通信リストを管理する通信リスト管理手段、受信フレー
ムを解釈するための手続き(複数)を記憶する受信内容
解釈手続き記憶手段、次に処理する通信単位を選択する
通信単位選択手段、選択された通信単位に含まれる情報
として、送信フレーム、受信フレーム解釈手続きを指す
ポインタ、次に送受信を行う可能性がある通信単位への
ポインタのテーブルを記憶する通信リスト記憶手段、該
通信リスト記憶手段と受信内容解釈手続き記憶手段から
通信単位を読み出す通信単位読み出し手段、フレームを
外部機器に送信するフレーム送信手段、外部装置として
の外部機器からフレームを受信するフレーム受信手段、
通信単位によって指定された手続きを実行して受信フレ
ームを解釈する受信内容解釈手段および解釈結果に応じ
て前記解釈結果を主プロセッサに伝える解釈結果伝達手
段を備えている。
Next, the outline of the communication control device of the present invention will be described with reference to FIG. The communication control device includes a communication list storage unit that receives and stores a communication list from the main processor, a communication list management unit that manages the received communication list, and a received content interpretation procedure storage that stores a plurality of procedures for interpreting a received frame. Means, a communication unit selecting means for selecting a communication unit to be processed next, a transmission frame, a pointer indicating a reception frame interpretation procedure as information contained in the selected communication unit, and a communication unit which may perform transmission / reception next Communication list storage means for storing a table of pointers, communication unit read means for reading communication units from the communication list storage means and received content interpretation procedure storage means, frame transmission means for transmitting a frame to an external device, external as an external device Frame receiving means for receiving a frame from a device,
It is provided with a received content interpretation means for executing a procedure designated by the communication unit to interpret the received frame, and an interpretation result transmission means for transmitting the interpretation result to the main processor according to the interpretation result.

【0017】上記手段の構成によれば、任意の時点での
送信要求に対応するため、主プロセッサから渡された通
信リストを順次通信リスト記憶手段に記憶し、その通信
リストをアクセスするためのポインタを通信リスト管理
手段が管理する。そして通信単位選択手段は通信リスト
管理手段から送信すべき通信リストの先頭を指すポイン
タから送信する通信リストを選択し、その先頭の通信単
位を指すポインタを通信単位読み出し手段に送る。通信
単位読み出し手段は選択された通信リストの各通信単位
に基づいて外部装置への送受信を順次行い、通信リスト
管理手段が管理する各通信リストについてこの動作を繰
り返す。
According to the structure of the above means, the communication list passed from the main processor is sequentially stored in the communication list storage means in order to respond to the transmission request at any time, and the pointer for accessing the communication list is stored. Is managed by the communication list management means. Then, the communication unit selecting means selects the communication list to be transmitted from the pointer pointing to the head of the communication list to be transmitted from the communication list managing means, and sends the pointer pointing to the head communication unit to the communication unit reading means. The communication unit reading means sequentially transmits and receives to and from the external device based on each communication unit of the selected communication list, and repeats this operation for each communication list managed by the communication list managing means.

【0018】通信リストの各通信単位に基づく送受信を
行う際は、通信リストの送信開始の指示に応じて、まず
通信リストの先頭にある通信単位の送信フレームを通信
リスト記憶手段から読み出して送信する。一方、この送
信フレームに対応したフレームが受信されると、当該通
信単位が指定する解釈手続きを受信フレーム解釈手続き
記憶手段から読み出し、その手続きを受信フレーム解釈
手段で実行させることにより受信フレームの内容を解釈
し、所定の条件を満足した場合、その解釈結果を解釈結
果伝達手段を通じて主プロセッサに伝える。解釈結果伝
達手段としては、主プロセッサが読むことのできるフラ
グを変更することによって解釈結果を伝える方法と、主
プロセッサに割り込みなどのシグナルを送る方法があ
る。
When performing transmission / reception based on each communication unit of the communication list, first, a transmission frame of the communication unit at the head of the communication list is read from the communication list storage means and transmitted in response to an instruction to start transmission of the communication list. . On the other hand, when the frame corresponding to this transmission frame is received, the interpretation procedure specified by the communication unit is read from the reception frame interpretation procedure storage means, and the received frame interpretation means executes the procedure to read the contents of the reception frame. When the result is interpreted and the predetermined condition is satisfied, the interpretation result is transmitted to the main processor through the interpretation result transmission means. As the interpretation result transmission means, there are a method of transmitting the interpretation result by changing a flag that the main processor can read and a method of sending a signal such as an interrupt to the main processor.

【0019】そして、通信単位選択手段では、上記解釈
結果に基づき当該通信単位のポインタテーブルから一つ
のポインタを選択し、選択されたポインタが指示する通
信単位について同様の送受信処理を行う。当該ポインタ
が次に送信すべき通信単位を指していない場合は、当該
通信リストの通信を終了し、次の通信リストについて送
信開始の指示を行う。
Then, the communication unit selection means selects one pointer from the pointer table of the communication unit based on the interpretation result, and performs similar transmission / reception processing for the communication unit designated by the selected pointer. When the pointer does not point to the communication unit to be transmitted next, the communication of the communication list is ended, and an instruction to start transmission is issued for the next communication list.

【0020】(第1の実施例)図4は第1の実施例に通
信制御装置を組込んだハードウェアの構成を示す。本実
施例において、主プロセッサ100は主プロセッサ用メ
モリ101と共有メモリ106にアクセスできる。ま
た、通信制御装置の通信プロセッサ102は通信プロセ
ッサ用メモリ103、共有メモリ106、及び通信コン
トローラ104内部のレジスタにアクセスできる。主プ
ロセッサ100と通信プロセッサ102が同時に共有メ
モリ106にアクセスしようとしたときは、共有メモリ
コントローラ105によって調整が行われ、双方のアク
セスが保証される。
(First Embodiment) FIG. 4 shows a hardware configuration in which a communication control device is incorporated in the first embodiment. In this embodiment, the main processor 100 can access the main processor memory 101 and the shared memory 106. Further, the communication processor 102 of the communication control device can access the communication processor memory 103, the shared memory 106, and the registers inside the communication controller 104. When the main processor 100 and the communication processor 102 try to access the shared memory 106 at the same time, the shared memory controller 105 makes an adjustment to ensure access to both.

【0021】次に、ソフトウェアプロセス及びデータ領
域について図5で説明する。まず、プロセッサ100上
では通信プロセッサ102に通信を要求するプロセス1
15−1〜nが実行される。ここでは通信要求プロセス
のコードやデータは主プロセッサ用メモリ101に記憶
される。また、それぞれの通信要求プロセスは後述の受
信内容解釈手続き記憶領域124中のどの手続きがどの
受信フレームについて処理を行うかについての情報を持
っていて、送信フレームと受信内容解釈手続きを正しく
組合せることができる。通信プロセッサ102上では、
通信制御プロセス110、送信プロセス111、受信プ
ロセス112、受信内容解釈プロセス113、待ち行列
制御プロセス114が実行される。これらのプロセスの
コードやデータは通信プロセッサ用メモリ103に記憶
される。
Next, the software process and the data area will be described with reference to FIG. First, on the processor 100, the process 1 requesting the communication processor 102 to communicate.
15-1 to n are executed. Here, the code and data of the communication request process are stored in the main processor memory 101. In addition, each communication request process has information about which procedure in a received content interpretation procedure storage area 124, which will be described later, processes which received frame, and the transmission frame and the received content interpretation procedure are correctly combined. You can On the communication processor 102,
The communication control process 110, the transmission process 111, the reception process 112, the reception content interpretation process 113, and the queue control process 114 are executed. Codes and data of these processes are stored in the communication processor memory 103.

【0022】共有メモリ106内には、待ち行列12
0、通信リスト記憶領域121、現在通信が行われてい
る通信単位へのポインタ122、受信フレームの解釈結
果を主プロセッサ100に伝えるための外部フラグ領域
123が存在する。また、受信フレームを解釈するため
の手続きを記憶する領域124は通信プロセッサ用メモ
リ103内に存在する。しかし、この領域124は共有
メモリ106内にあっても良い。
In the shared memory 106, the queue 12
0, a communication list storage area 121, a pointer 122 to a communication unit in which communication is currently performed, and an external flag area 123 for transmitting the interpretation result of the received frame to the main processor 100. An area 124 for storing a procedure for interpreting a received frame exists in the communication processor memory 103. However, this area 124 may be in the shared memory 106.

【0023】本実施例において、通信単位は図6に示す
ように実現される。通信単位150は、送信フレーム1
51、前述の記憶領域124内受信内容解釈手続きを指
すポインタ152、次に通信が行われる可能性がある通
信単位を指すポインタのテーブル153から構成され
る。また、送信フレーム151は送信キャラクタ列15
5とフレーム長156から構成される。各通信単位15
0をテーブル153のポインタによってリンクした複数
の通信単位により、通信リストが構成される。また、こ
の通信リストは1つの通信単位のみで構成されるもので
あってもよい。
In this embodiment, the communication unit is realized as shown in FIG. The communication unit 150 is the transmission frame 1
51, a pointer 152 that points to the reception content interpretation procedure in the storage area 124, and a pointer table 153 that points to a communication unit in which communication may be performed next. Further, the transmission frame 151 is the transmission character string 15
5 and a frame length 156. Each communication unit 15
A communication list is composed of a plurality of communication units in which 0 is linked by the pointer of the table 153. Further, this communication list may be composed of only one communication unit.

【0024】上記第1の実施例の動作について説明する
と、主プロセッサ100上のプロセス115−1〜nの
中の任意のプロセス115−iは、通信プロセッサ10
2に外部機器107との通信を要求するとき、次のよう
にして通信リストを通信プロセッサ102に渡す。すな
わち、最初に、通信要求プロセス115−iは通信に用
いる通信リストを生成して通信リスト記憶領域112に
記憶する。このとき、通信リストの内容がすでに通信リ
スト記憶領域112内に存在しているならば、その通信
リストを選択するだけでもよい。そして、通信リスト記
憶領域112がその通信リストをアクセスするためのポ
インタを待ち行列111に追加する。
The operation of the first embodiment will be described. Any process 115-i of the processes 115-1 to 11-n on the main processor 100 is a communication processor 10.
When requesting communication with the external device 107 from No. 2, the communication list is passed to the communication processor 102 as follows. That is, first, the communication request process 115-i generates a communication list used for communication and stores it in the communication list storage area 112. At this time, if the contents of the communication list already exist in the communication list storage area 112, that communication list may be selected. Then, the communication list storage area 112 adds a pointer for accessing the communication list to the queue 111.

【0025】一方、通信プロセッサ102は待ち行列1
11の先頭の通信リストから順番に通信を行う。以下、
処理内容を図7のフローチャートによって説明する。カ
ッコ内の番号は、図7のフローチャートの各ブロック
(ステップ)の番号を表す。待ち行列制御プロセス11
4は待ち行列120にポインタが入るまで待つ(20
1)。待ち行列120にポインタが入ると、待ち行列制
御プロセス114はまず待ち行列120の先頭要素を通
信処理中の通信単位としてポインタ122にコピーする
(202)。通信制御プロセス110はポインタ122
の指す通信単位の送信フレーム151と受信内容解釈手
続きへのポインタ152及び他の通信単位へのポインタ
テーブル153を、通信リスト記憶領域121、受信内
容解釈手続き記憶領域124から得る(203)。
On the other hand, the communication processor 102 uses the queue 1
Communication is performed in order from the first communication list of 11. Less than,
The processing content will be described with reference to the flowchart of FIG. The numbers in parentheses represent the numbers of each block (step) in the flowchart of FIG. 7. Queue control process 11
4 waits until the pointer enters the queue 120 (20
1). When the pointer enters the queue 120, the queue control process 114 first copies the top element of the queue 120 to the pointer 122 as a communication unit in communication processing (202). The communication control process 110 has a pointer 122
A transmission frame 151 of a communication unit pointed to by, a pointer 152 to a received content interpretation procedure, and a pointer table 153 to another communication unit are obtained from the communication list storage area 121 and the received content interpretation procedure storage area 124 (203).

【0026】送信プロセス111は、ステップ203で
得た送信フレーム151を通信制御プロセス110から
受け取り、外部機器107に送信する(204)。受信
内容解釈プロセス113は、ステップ203で得た受信
内容解釈手続きへのポインタ152及び他の通信単位へ
のポインタテーブル153を、通信制御プロセス110
から受け取る(205)。
The transmission process 111 receives the transmission frame 151 obtained in step 203 from the communication control process 110 and transmits it to the external device 107 (204). The reception content interpretation process 113 stores the pointer 152 to the reception content interpretation procedure and the pointer table 153 to another communication unit obtained in step 203, in the communication control process 110.
(205).

【0027】受信プロセス112は、ステップ204で
行った送信に対応する受信フレームを外部機器107か
ら受信して、受信内容解釈プロセス113に渡す(20
6)。受信内容解釈プロセス113はステップ205で
受け取った受信内容解釈手続きを実行することによっ
て、受信フレームの内容を解釈する(207)。受信内
容解釈プロセス113はステップ207の解釈結果に応
じて、外部フラグ領域123の中のフラグから適切なも
のを変更する(208)。受信内容解釈プロセス113
は207の解釈結果に基づいて、ステップ205で受け
取ったポインタテーブル153の中から次に処理する通
信単位を示すポインタを選択する(209)。
The reception process 112 receives the reception frame corresponding to the transmission performed in step 204 from the external device 107 and transfers it to the reception content interpretation process 113 (20
6). The received content interpretation process 113 interprets the content of the received frame by executing the received content interpretation procedure received in step 205 (207). The received content interpretation process 113 changes an appropriate flag in the external flag area 123 according to the interpretation result of step 207 (208). Received content interpretation process 113
Selects the pointer indicating the communication unit to be processed next from the pointer table 153 received in step 205 based on the interpretation result of 207 (209).

【0028】選択されたポインタが次に送信する通信単
位を指示するなら、その通信単位に繋がるポインタをポ
インタテーブル153から選び、ステップ211へ行
く。一方、選択されたポインタがどこにも繋がらないポ
インタ(ヌルポインタ)である場合は、ステップ212
へ行く(210)。送信する通信単位が指示されたな
ら、待ち行列制御プロセス114は選択されたポインタ
をポインタ122にコピーする。そして、そのポインタ
の指す通信単位についてステップ203以降の処理を行
う(211)。
If the selected pointer indicates the communication unit to be transmitted next, the pointer linked to the communication unit is selected from the pointer table 153, and the process goes to step 211. On the other hand, if the selected pointer is a pointer (null pointer) that is not connected to anything, step 212
Go to (210). When the communication unit to send is indicated, the queue control process 114 copies the selected pointer to the pointer 122. Then, the processing from step 203 is performed on the communication unit pointed to by the pointer (211).

【0029】もし選択されたポインタがヌルポインタで
あるなら、待ち行列制御プロセス114はその通信リス
トの送信は終了したと判断して、外部フラグ領域123
のフラグを変更するとともに、待ち行列120の先頭要
素を破棄し、次の要素をポインタ122にコピーし、そ
のポインタの指す通信単位についてステップ203以降
の処理を行う(212)。これを待ち行列120からポ
インタが無くなるまで繰り返す。
If the selected pointer is the null pointer, the queue control process 114 determines that the transmission of the communication list is completed, and the external flag area 123 is determined.
The flag is changed, the head element of the queue 120 is discarded, the next element is copied to the pointer 122, and the processing from step 203 onward is performed for the communication unit pointed to by the pointer (212). This is repeated until there are no pointers in the queue 120.

【0030】なお、本実施例では各通信単位毎にその解
釈方法を指定し、解釈結果が指定された条件を満足する
場合にフラグ変更するよう設定したことにより、任意の
通信単位毎にフラグ変更を行わせることができる。従っ
て、通信リストの処理の過程を必要に応じてフラグにて
都度知らせることができる。また、このフラグ変更を通
信リストの処理が終了した場合のみ行うようにしてもよ
い。
In this embodiment, the interpretation method is specified for each communication unit, and the flag is changed when the interpretation result satisfies the specified condition. Therefore, the flag is changed for each communication unit. Can be done. Therefore, the process of processing the communication list can be notified by a flag as needed. Further, this flag change may be performed only when the processing of the communication list is completed.

【0031】(第2の実施例)図8は本発明の第2の実
施例のハードウエア構成を示す。本実施例では、図3で
主プロセッサ、通信装置として表されている部分はそれ
ぞれCPU300上で実行される1個以上のプロセスか
ら成る主プロセス群310、通信プロセス群311とし
て実現される。ただし、これ以外のプロセスが存在して
もよい。また本実施例は、複数のプロセスを並列に実行
するCPU300、各プロセスのデータやワークエリア
を記憶するメモリ301、外部機器107とフレームの
通信を行う通信コントローラ104から構成される。こ
れらの構成要素は内部バスによって結ばれている。ただ
し、これ以外の構成要素が存在してもよい。
(Second Embodiment) FIG. 8 shows the hardware configuration of the second embodiment of the present invention. In the present embodiment, the parts represented as the main processor and the communication device in FIG. 3 are realized as a main process group 310 and a communication process group 311 each including one or more processes executed on the CPU 300. However, other processes may exist. In addition, this embodiment includes a CPU 300 that executes a plurality of processes in parallel, a memory 301 that stores data and a work area of each process, and a communication controller 104 that performs frame communication with an external device 107. These components are connected by an internal bus. However, other components may be present.

【0032】図9は第2の実施例のソフトウェアプロセ
ス及びデータ領域を示す。まず、CPU300では主プ
ロセス群310及び通信プロセス群311が実行され
る。主プロセス群310には通信要求プロセス115−
1〜115−nが含まれる。また、通信プロセス群31
1には通信制御プロセス110、送信プロセス111、
受信プロセス112、受信内容解釈プロセス113、待
ち行列制御プロセス114が含まれる。
FIG. 9 shows the software process and data area of the second embodiment. First, the CPU 300 executes the main process group 310 and the communication process group 311. The main process group 310 includes a communication request process 115-
1-115-n are included. Also, the communication process group 31
1, a communication control process 110, a transmission process 111,
A reception process 112, a reception content interpretation process 113, and a queue control process 114 are included.

【0033】メモリ301には、主プロセス群メモリ領
域320、通信プロセス群メモリ領域321、及び主プ
ロセス群310と通信プロセス群311の双方からアク
セスできる共有メモリ領域322が含まれる。共有メモ
リ領域322には通信リストを管理するための待ち行列
120、通信リストを記憶する領域121、受信内容解
釈手続きを記憶する領域124、現在通信を行っている
通信単位を指すポインタ122、主プロセス群310に
受信フレームの解釈結果を伝える外部フラグ領域123
が含まれる。ここで、通信単位及び通信リストの構成は
第1の実施例と同様である。
The memory 301 includes a main process group memory area 320, a communication process group memory area 321, and a shared memory area 322 accessible from both the main process group 310 and the communication process group 311. In the shared memory area 322, a queue 120 for managing the communication list, an area 121 for storing the communication list, an area 124 for storing the received content interpretation procedure, a pointer 122 pointing to a communication unit currently performing communication, a main process External flag area 123 that conveys the interpretation result of the received frame to the group 310
Is included. Here, the configuration of the communication unit and the communication list is similar to that of the first embodiment.

【0034】次に、第2の実施例の動作を説明する。主
プロセス群310のうちのあるプロセスが外部機器10
7と通信を行う必要が生じると、そのプロセスは通信に
用いる通信リストを生成し、通信リスト記憶領域121
に書き込む。このとき、通信リストの内容がすでに通信
リスト記憶領域121内に存在しているならば、その通
信リストを選択するだけでもよい。その後、その通信リ
ストへのポインタを待ち行列120に追加する。一方、
通信プロセス群311は待ち行列120の先頭の通信リ
ストから順番に通信を行う。通信処理は、図10に示す
フローチャートに従って行われる。以下に、処理内容を
図10のフローチャートによって説明する。なお、カッ
コ内の番号は、フローチャートの各ブロック(ステッ
プ)の番号を表す。
Next, the operation of the second embodiment will be described. A process in the main process group 310 is an external device 10
When it is necessary to communicate with the communication list 7, the process generates a communication list used for communication, and the communication list storage area 121
Write in. At this time, if the contents of the communication list already exist in the communication list storage area 121, that communication list may be selected. Then, a pointer to the communication list is added to the queue 120. on the other hand,
The communication process group 311 performs communication in order from the communication list at the head of the queue 120. The communication process is performed according to the flowchart shown in FIG. The processing contents will be described below with reference to the flowchart of FIG. The numbers in parentheses represent the numbers of the blocks (steps) in the flowchart.

【0035】通信プロセス群311は待ち行列120に
ポインタが入るまで待つ(401)。ポインタが入る
と、待ち行列制御プロセス114が、通信処理中の通信
単位として待ち行列120の先頭要素をポインタ122
にコピーする(402)。通信制御プロセス110は、
ポインタ120の指す通信単位の送信フレーム151、
受信内容処理手続きを指すポインタ152、他の通信単
位へのポインタテーブル153を通信リスト記憶領域1
21、受信内容解釈手続き記憶領域124から読み出す
(403)。送信プロセス111は、送信フレーム15
1を通信制御プロセス110から受け取り、通信コント
ローラ104を通して外部機器107に送信する(40
4)。
The communication process group 311 waits until a pointer enters the queue 120 (401). When the pointer is entered, the queue control process 114 sets the pointer 122 to the head element of the queue 120 as the communication unit in the communication process.
(402). The communication control process 110
A transmission frame 151 of the communication unit pointed to by the pointer 120,
The communication list storage area 1 includes a pointer 152 that points to a reception content processing procedure and a pointer table 153 that points to another communication unit.
21, read from the received content interpretation procedure storage area 124 (403). The transmission process 111 uses the transmission frame 15
1 is received from the communication control process 110 and transmitted to the external device 107 through the communication controller 104 (40
4).

【0036】通信制御プロセス110は、受信内容処理
手続きを指すポインタ152及びポインタテーブル15
3を、受信内容解釈プロセス113に送る(405)。
受信プロセス112は、ステップ404で行った送信に
対応する受信フレームを外部機器107から受信し、受
信内容解釈プロセス113に送る(406)。受信内容
解釈プロセス113は、ステップ405で受け取ったポ
インタ152が指す手続きを実行することによって、受
信フレームの内容を解釈する(407)。また受信内容
解釈プロセス113は、ステップ407の解釈結果に応
じて外部フラグ領域123の中のフラグから適切なもの
を変更する(408)。ここで、受信内容解釈プロセス
113から主プロセス群310内のプロセスにシグナル
を送り、プロセスの動作を制御することもできる。
The communication control process 110 uses the pointer 152 and the pointer table 15 which indicate the received content processing procedure.
3 is sent to the received content interpretation process 113 (405).
The reception process 112 receives the reception frame corresponding to the transmission performed in step 404 from the external device 107 and sends it to the reception content interpretation process 113 (406). The received content interpretation process 113 interprets the content of the received frame by executing the procedure pointed to by the pointer 152 received in step 405 (407). Further, the reception content interpretation process 113 changes an appropriate flag from the flags in the external flag area 123 according to the interpretation result of step 407 (408). Here, the operation of the process can be controlled by sending a signal from the received content interpretation process 113 to the process in the main process group 310.

【0037】さらに、受信内容解釈プロセス113はス
テップ407の解釈結果に基づいてステップ405で受
け取ったポインタテーブル153から次に処理する通信
単位を示すポインタを選択する(409)。選択された
ポインタが次に送信する通信単位を指示するなら、その
通信単位に繋がるポインタがポインタテーブル153か
ら選ばれ、ステップ411へ行く。ポインタの内容かせ
ヌルポインタなら、ステップ412へ行く(410)。
次に送信する通信単位が指示されたなら、受信内容解釈
プロセス113は指示された通信単位を指すポインタを
ポインタ122にコピーする。そして、ポインタ122
の指す通信単位についてステップ403以降の処理を行
う(411)。
Further, the received content interpretation process 113 selects a pointer indicating a communication unit to be processed next from the pointer table 153 received in step 405 based on the interpretation result of step 407 (409). If the selected pointer indicates the communication unit to be transmitted next, the pointer linked to the communication unit is selected from the pointer table 153, and the process goes to step 411. If the pointer content is a null pointer, the process goes to step 412 (410).
When the communication unit to be transmitted next is instructed, the reception content interpretation process 113 copies a pointer pointing to the instructed communication unit to the pointer 122. Then, the pointer 122
The processing after step 403 is performed for the communication unit indicated by (411).

【0038】もしヌルポインタが選択されたなら、受信
内容解釈プロセス113はその通信リストの送信は終了
したと判断して、外部フラグ領域123のフラグを変更
するとともに、待ち行列120の先頭要素を破棄し、待
ち行列120の次の要素をポインタ122にコピーす
る。そして、そのポインタについてステップ403以降
の処理を行う(412)。これを待ち行列120からポ
インタが無くなるまで繰り返す。
If the null pointer is selected, the reception content interpretation process 113 judges that the transmission of the communication list is completed, changes the flag of the external flag area 123, and discards the first element of the queue 120. Then, the next element in the queue 120 is copied to the pointer 122. Then, the processing from step 403 is performed on the pointer (412). This is repeated until there are no pointers in the queue 120.

【0039】上記第1及び2の実施例では通信管理手段
を待ち行列によって構成されているが、これに限定され
るものでなく、また前記実施例では通信リストの送信開
始の指示を主プロセッサによる待ち行列への書き込み時
及び受信内容の解釈においてヌルポインタの検出時に自
動的に行うようにしたが、選択制御手段により各通信リ
ストの送信開始を順次指示するようにしてもよい。この
場合、例えば送信されるフレームに識別コードを入れ、
外部機器からこの識別コードを付与してフレームを送信
してもらうようにする。外部機器からフレームを受信し
た際に、対応する送信フレームを特定でき、その受信解
釈情報でもって受信フレームを解釈した結果に基づいて
ポインタテーブルの指示する通信単位の送信を新たに行
うことができる。この場合、複数の通信リストの処理を
並行して行うことができる。
In the first and second embodiments, the communication management means is composed of a queue, but the present invention is not limited to this. In the above embodiments, the main processor issues an instruction to start transmission of the communication list. Although it is automatically performed at the time of writing to the queue and at the time of detecting a null pointer in the interpretation of the received content, the selection control means may sequentially instruct the transmission start of each communication list. In this case, for example, put the identification code in the transmitted frame,
An external device assigns this identification code so that the frame is transmitted. When a frame is received from an external device, the corresponding transmission frame can be specified, and the communication unit designated by the pointer table can be newly transmitted based on the result of interpreting the received frame by the reception interpretation information. In this case, the processing of a plurality of communication lists can be performed in parallel.

【0040】更に、本実施例において、通信リストは、
全て送信フレームを有する通信単位をリンクして構成す
るものであったが、送信フレームを有さない(例えばヌ
ルフレームを持つもの)通信単位をリンクしてもよい。
解釈情報を用いた、例えば主プロセッサへのデータ送信
や、カウント処理による通信管理、例えば外部機器に対
してその応答時間が長い場合に強制中断させたり、繰り
返し処理を行わせたりすることができる。送信フレーム
を有する通信単位とこれにリンクされた送信フレームを
有さない通信単位とを並行して同時に処理する場合は、
外部機器からフレームを受信した場合にリンクを逆にた
どって送信フレームを有する通信単位の解釈情報を得た
り、あるいは送信フレームを有さない通信単位を実行す
る際は、直前の送信フレームを有する通信単位の解釈情
報を保持しておけばよい。また、これら通信単位は予め
記憶された標準的な通信単位をそのまま呼び出して使用
したり、あるいはパラメータデータを与えて使用するも
のであってもよく、更には通信単位のポインタテーブル
により他の通信リストを呼び出すものであってもよい。
このようにすることにより、通信リストの記述を簡素化
することができ、記憶容量を節約することができる。
Further, in this embodiment, the communication list is
Although all communication units having transmission frames are linked to each other, communication units having no transmission frames (for example, communication units having null frames) may be linked.
For example, it is possible to perform data transmission to the main processor using the interpretation information, communication management by counting processing, for example, forced interruption when an external device has a long response time, or repetitive processing. When a communication unit having a transmission frame and a communication unit having no transmission frame linked thereto are processed simultaneously in parallel,
When a frame is received from an external device, the link is reversed to obtain the interpretation information of the communication unit having the transmission frame, or when the communication unit having no transmission frame is executed, the communication having the immediately preceding transmission frame is used. It suffices to hold the interpretation information of the unit. These communication units may be standard communication units stored in advance and used as they are, or may be used by giving parameter data. Further, the communication unit pointer table may be used for other communication lists. May be called.
By doing so, the description of the communication list can be simplified and the storage capacity can be saved.

【0041】[0041]

【発明の効果】上述のように、本発明によれば、通信に
必要な情報を通信リストの形で通信制御装置に渡し、通
信制御装置内で受信情報を処理するようにしたので、主
プロセッサの通信処理の負荷を軽くすることができる。
従って、主プロセッサの処理が時間的な制限を受ける場
合においても、受信フレームの内容に基づいて必要な処
理動作を直ちに行うことができ、その内容に基づいて新
たな送信を行うこともできる。また、通信リストを入力
する手段を設けて主プロセッサから必要な通信リストを
適宜入力するように構成した場合は、任意の外部装置と
の通信を行えるとともに、通信リスト記憶手段の容量を
小さくできる。また、通信リスト記憶手段に予め記憶さ
れた通信リストを指定するように構成した場合は、主プ
ロセッサからの送信の指示が簡単なものとなり、主プロ
セッサの負荷を少なくできる。また、複数の通信リスト
が送信する順に結合されているとともに、一つの通信リ
ストの送信が終了した後、次の通信リストの送信を続け
て行うことができるように構成した場合は、複数の外部
装置に対して順次送信を行うことができ、主プロセッサ
が各通信リストの終了毎に新たな通信リストの送信を指
示することが不要となり、主プロセッサの負荷を少なく
できる。また、通信リストの送信順に各通信リストの通
信単位を送信することができ、外部装置からの受信情報
に対応する通信単位の送信を判断して、その解釈を行う
ように構成した場合は、複数の通信リストの通信処理を
並行して行うことができる。更に、解釈結果が所定の条
件を満足した場合のみ、解釈結果を出力するようにした
構成した場合は、主プロセッサ側で必要とする結果のみ
を得ることができ、主プロセッサの通信負荷を軽減する
ことができる。
As described above, according to the present invention, the information required for communication is passed to the communication control device in the form of a communication list and the received information is processed in the communication control device. Can reduce the load of communication processing.
Therefore, even when the processing of the main processor is time-limited, it is possible to immediately perform the necessary processing operation based on the content of the received frame, and to perform new transmission based on the content. Further, when the means for inputting the communication list is provided and the necessary communication list is appropriately input from the main processor, communication with an arbitrary external device can be performed and the capacity of the communication list storage means can be reduced. Further, when the communication list stored in the communication list storage means is designated, the transmission instruction from the main processor becomes simple and the load on the main processor can be reduced. Also, if a plurality of communication lists are combined in the order in which they are transmitted, and the transmission of the next communication list can be continuously performed after the transmission of one communication list is completed, if a plurality of external communication lists are transmitted. The transmission can be sequentially performed to the device, and it becomes unnecessary for the main processor to instruct the transmission of a new communication list at the end of each communication list, and the load on the main processor can be reduced. Further, when the communication unit of each communication list can be transmitted in the order of transmission of the communication list, and if it is configured to judge the transmission of the communication unit corresponding to the received information from the external device and interpret the transmission, a plurality of units can be transmitted. The communication processing of the communication list can be performed in parallel. Further, when the interpretation result is output only when the interpretation result satisfies a predetermined condition, only the result required by the main processor side can be obtained and the communication load of the main processor is reduced. be able to.

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

【図1】 本発明の通信装置に係る通信単位の概念を示
す図である。
FIG. 1 is a diagram showing a concept of a communication unit according to a communication device of the present invention.

【図2】 本発明の通信装置に係る通信リストの例を示
す図である。
FIG. 2 is a diagram showing an example of a communication list according to the communication device of the present invention.

【図3】 本発明の通信装置の機能実現手段の主要構成
を示す図である。
FIG. 3 is a diagram showing a main configuration of a function realizing means of a communication device of the present invention.

【図4】 第1の実施例のハードウェア構成を示す図で
ある。
FIG. 4 is a diagram showing a hardware configuration of a first embodiment.

【図5】 第1の実施例のソフトウェアプロセス、デー
タ領域の関係を示す図である。
FIG. 5 is a diagram showing a relationship between a software process and a data area according to the first embodiment.

【図6】 第1及び2の実施例の通信単位の構成を示す
図である。
FIG. 6 is a diagram showing a configuration of a communication unit according to the first and second embodiments.

【図7】 第1の実施例の動作を示すフローチャートで
ある。
FIG. 7 is a flowchart showing the operation of the first embodiment.

【図8】 第2の実施例のハードウェア構成を示す図で
ある。
FIG. 8 is a diagram showing a hardware configuration of a second embodiment.

【図9】 第2の実施例のソフトウェアプロセス、デー
タ領域の関係を示す図である。
FIG. 9 is a diagram showing a relationship between a software process and a data area according to the second embodiment.

【図10】 第2の実施例の動作を示すフローチャート
である。
FIG. 10 is a flowchart showing the operation of the second embodiment.

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

100…主プロセッサ、101…主プロセッサ用メモ
リ、102…通信プロセッサ、103…通信プロセッサ
用メモリ、104…通信コントローラ、105…共有メ
モリコントローラ、106…共有メモリ、107…外部
機器、110…通信制御プロセス、111…送信プロセ
ス、112…受信プロセス、113…受信内容解釈プロ
セス、114…待ち行列制御プロセス、115−1〜1
15−n…通信要求プロセス、120…待ち行列、12
1…通信リスト記憶領域、122…現在通信中の通信単
位を指すポインタ、123…外部フラグ領域、124…
受信内容解釈手続き記憶領域、150…通信単位、15
1…送信フレーム、152…受信内容解釈手続きを指す
ポインタ、153…次に通信を行う可能性がある通信単
位を指すポインタテーブル、154…受信内容解釈手続
き、300…CPU、301…メモリ、310…主プロ
セス群、311…通信プロセス群、320…主プロセス
群メモリ領域、321…通信プロセス群メモリ領域、3
22…共有メモリ領域
100 ... Main processor, 101 ... Main processor memory, 102 ... Communication processor, 103 ... Communication processor memory, 104 ... Communication controller, 105 ... Shared memory controller, 106 ... Shared memory, 107 ... External device, 110 ... Communication control process , 111 ... Transmission process, 112 ... Reception process, 113 ... Reception content interpretation process, 114 ... Queue control process, 115-1 to 115-1
15-n ... Communication request process, 120 ... Queue, 12
1 ... communication list storage area, 122 ... pointer pointing to communication unit currently in communication, 123 ... external flag area, 124 ...
Received content interpretation procedure storage area, 150 ... Communication unit, 15
1 ... Transmission frame, 152 ... Pointer pointing to received content interpretation procedure, 153 ... Pointer table pointing to communication unit that may perform next communication, 154 ... Received content interpretation procedure, 300 ... CPU, 301 ... Memory, 310 ... Main process group 311, communication process group 320, main process group memory area, 321 communication process group memory area, 3
22 ... Shared memory area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 柴田 文彦 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 (72)発明者 石川 宏 神奈川県海老名市本郷2274番地 富士ゼロ ックス株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Fumihiko Shibata, 2274 Hongo, Ebina, Kanagawa Prefecture, Fuji Xerox Co., Ltd. (72) Inventor, Hiroshi Ishikawa 2274, Hongo, Ebina, Kanagawa Prefecture, Fuji Xerox Co., Ltd.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 送信情報と受信情報を解釈するための解
釈情報と受信情報を解釈した結果に対応して設けられた
ポインタテーブルとを有する通信単位からなり、通信単
位のポインタテーブルにより次に送信する通信単位を指
定することにより任意の通信単位をリンクした通信リス
トを記憶する通信リスト記憶手段と、 該通信リスト記憶手段に記憶された通信リストから送信
すべき通信単位を選択して読出す選択制御手段と、 該選択制御手段により選択された通信単位の送信情報を
外部装置に送信する送信手段と、 外部装置から送信される情報を受信する受信手段と、 前記選択制御手段により選択された通信単位の解釈情報
に基づいて前記受信手段により受信した情報を解釈する
受信情報解釈手段とを備え、 前記選択制御手段は送信の開始指示に応じて通信リスト
の先頭の通信単位を選択してその送信情報を前記送信手
段により送信させるとともに、外部装置より前記受信手
段が情報を受信する毎に、前記受信情報解釈手段が前記
選択した通信単位の解釈情報に基づいて該受信情報を解
釈した結果により、前記選択された通信単位のポインタ
テーブルから対応するポインタを選択して調べ、該ポイ
ンタが指示する通信単位の送信情報を送信させることを
特徴とする通信制御装置。
1. A communication unit comprising an interpretation information for interpreting the transmission information and the reception information, and a pointer table provided corresponding to a result of interpreting the reception information, and transmitted next by the pointer table of the communication unit. Communication list storage means for storing a communication list in which arbitrary communication units are linked by designating a communication unit to be transmitted, and selection for reading out the communication unit to be transmitted from the communication list stored in the communication list storage means Control means, transmission means for transmitting the transmission information of the communication unit selected by the selection control means to an external device, receiving means for receiving information transmitted from the external device, and communication selected by the selection control means Reception information interpreting means for interpreting the information received by the receiving means on the basis of the interpretation information in units, and the selection control means is a transmission start instruction. The communication unit selected at the head of the communication list according to the above, and the transmission information is transmitted by the transmission unit, and each time the reception unit receives information from an external device, the reception information interpretation unit selects the selected communication unit. According to the result of interpreting the received information based on the unit interpretation information, the corresponding pointer is selected from the pointer table of the selected communication unit and checked, and the transmission information of the communication unit designated by the pointer is transmitted. A characteristic communication control device.
【請求項2】 送信情報と受信情報を解釈するための解
釈情報と受信情報を解釈した結果に対応して設けられた
ポインタテーブルとを有する通信単位からなり、通信単
位のポインタテーブルにより次に送信する通信単位を指
定することにより任意の数の通信単位をリンクした通信
リストを入力する入力手段を備え、上記通信リスト記憶
手段は前記入力手段により入力された通信リストを記憶
することを特徴とする請求項1記載の通信制御装置。
2. A communication unit comprising an interpretation information for interpreting the transmission information and the reception information, and a pointer table provided corresponding to a result of interpreting the reception information, and transmitted next by the pointer table of the communication unit. It is characterized by comprising input means for inputting a communication list in which an arbitrary number of communication units are linked by designating communication units to be stored, and the communication list storage means stores the communication list input by the input means. The communication control device according to claim 1.
【請求項3】 上記通信リスト記憶手段に予め記憶され
た通信リストを指定する情報を入力する入力手段を備
え、 前記選択制御手段は送信の開始指示に応じて該入力手段
により指定される通信リストの先頭の通信単位を選択す
ることを特徴とする請求項1記載の通信制御装置。
3. The communication list storage means comprises an input means for inputting information designating a communication list stored in advance, and the selection control means specifies the communication list designated by the input means in response to a transmission start instruction. 2. The communication control device according to claim 1, wherein the communication unit at the head of is selected.
【請求項4】 上記通信リスト記憶手段の複数の通信リ
ストを送信順に結合する通信リスト結合手段を備え、前
記選択手段は外部装置より前記受信手段が情報を受信す
る毎に、前記受信情報解釈手段により該受信情報を前記
選択した通信単位の解釈情報に基づいて解釈させ、前記
選択された通信単位のポインタテーブルから該解釈結果
に対応するポインタを調べ、該ポインタにより指示され
る通信単位がある場合は該通信単位を選択し、ポインタ
により指示される通信単位がない場合は次に送信する通
信リストの先頭の通信単位を選択してその受信情報を送
信させることを特徴とする請求項1ないし3のいずれか
の項に記載の通信制御装置。
4. The communication list combining means for combining a plurality of communication lists in the communication list storing means in a transmission order, the selecting means each time the receiving means receives information from an external device, the received information interpreting means. The received information is interpreted based on the interpretation information of the selected communication unit, the pointer corresponding to the interpretation result is checked from the pointer table of the selected communication unit, and there is a communication unit pointed to by the pointer. 4. The communication unit selects the communication unit, and if there is no communication unit pointed to by the pointer, selects the first communication unit in the communication list to be transmitted next and transmits the reception information. The communication control device according to any one of 1.
【請求項5】 上記通信リスト記憶手段の複数の通信リ
ストの送信する順序情報を記憶する順序情報記憶手段
と、 上記受信手段が受信した受信情報に対応する通信単位を
判別する受信判別手段とを備え、 前記選択制御手段は前記順序情報に基づいて順次各通信
リストの先頭の通信単位を順次選択して各々の送信情報
を前記送信手段により送信させるとともに、外部装置よ
り前記受信手段が情報を受信する毎に、前記受信判別手
段が判別した通信単位の解釈情報により解釈した結果に
対応するポインタが指示する通信単位の送信情報を送信
させることを特徴とする請求項1ないし3のいずれかの
項に記載の通信制御装置。
5. An order information storage means for storing order information transmitted by a plurality of communication lists of the communication list storage means, and a reception determination means for determining a communication unit corresponding to the reception information received by the reception means. The selection control means sequentially selects the first communication unit of each communication list on the basis of the order information and causes each transmission information to be transmitted by the transmission means, and the reception means receives the information from an external device. 4. The transmission information of the communication unit designated by the pointer corresponding to the interpretation result by the interpretation information of the communication unit discriminated by the reception discriminating means is transmitted every time the transmission is performed. The communication control device according to.
【請求項6】 解釈結果を出力するための出力手段を備
え、上記解釈情報は受信情報の解釈方法及びその解釈結
果を出力すべき条件を有し、上記受信情報解釈手段は受
信情報を解釈した結果が前記出力すべき条件を満足する
場合前記出力手段により解釈結果を出力することを特徴
とする請求項1記載の通信制御装置。
6. An output means for outputting an interpretation result, wherein the interpretation information has a method of interpreting the reception information and a condition for outputting the interpretation result, and the reception information interpreting means interprets the reception information. The communication control device according to claim 1, wherein when the result satisfies the condition to be output, the interpretation result is output by the output means.
JP5133920A 1993-05-12 1993-05-12 Communication controller Pending JPH06326747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5133920A JPH06326747A (en) 1993-05-12 1993-05-12 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5133920A JPH06326747A (en) 1993-05-12 1993-05-12 Communication controller

Publications (1)

Publication Number Publication Date
JPH06326747A true JPH06326747A (en) 1994-11-25

Family

ID=15116181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5133920A Pending JPH06326747A (en) 1993-05-12 1993-05-12 Communication controller

Country Status (1)

Country Link
JP (1) JPH06326747A (en)

Similar Documents

Publication Publication Date Title
US5734918A (en) Computer system with an input/output processor which enables direct file transfers between a storage medium and a network
JPH06326747A (en) Communication controller
JP2001043052A (en) Host device, printer and printer system
JP2999516B2 (en) Character output control method and device for terminal device
US5875299A (en) disk access apparatus for performing a stride processing of data
JPH04295951A (en) Data communication equipment for multi-processor system
JPH03248255A (en) Method and device for data transfer
JP2007241922A (en) Arbitration method for use of shared resource, and arbitration device therefor
JPS63147254A (en) System for setting access priority to shared dasd file
JPS6356737B2 (en)
JPH01282665A (en) On-line control system
JPH0736374A (en) Data link system
JPH0518138B2 (en)
JP2003280932A (en) Functional system, functional system management method, data processing device and computer program
JPH0425581B2 (en)
JPH05244217A (en) Communication control system
JPH04314157A (en) Communication equipment
JPH01304567A (en) Inter-processor communication control system
JPS63126337A (en) Communication processing system
JPH05205014A (en) Image data processing method
JPH10187581A (en) Interface device and interface change method
JPH02100124A (en) Display control system
JPH0685164B2 (en) Inter-processor communication control method
JPH06187114A (en) Data processing system
JPS6382536A (en) Channel device