JPH0477040A - Communication processing unit - Google Patents

Communication processing unit

Info

Publication number
JPH0477040A
JPH0477040A JP2187734A JP18773490A JPH0477040A JP H0477040 A JPH0477040 A JP H0477040A JP 2187734 A JP2187734 A JP 2187734A JP 18773490 A JP18773490 A JP 18773490A JP H0477040 A JPH0477040 A JP H0477040A
Authority
JP
Japan
Prior art keywords
event
communication
communication processing
priority
module
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
JP2187734A
Other languages
Japanese (ja)
Inventor
Ryoji Ono
良治 大野
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2187734A priority Critical patent/JPH0477040A/en
Publication of JPH0477040A publication Critical patent/JPH0477040A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To quicken the communication processing by executing the communication processing corresponding to a priority event when an occurred event is the priority event and setting the priority event to be processed next with priority dynamically after the end of the execution. CONSTITUTION:When an event is a priority event, a relevant entry stored in a communication processing module entry storage area e3 is called and then a priority communication processing module t1 of the entry is called. On the other hand, when the event is not the priority event, a communication processing retrieval module (d) is called and a communication processing module t2 or t3 is called based on an occurred event and a current communication state stored in an communication state storage area e2. When the called communication module executes the communication processing and the communication processing is terminated, the communication state at that time is stored in the communication state storage area e2 and the priority event corresponding to the communication processing to be processed with priority is set and stored in a priority event storage area el.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、プロトコル処理機能を有する通信処理装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication processing device having a protocol processing function.

[従来の技術] 発生したイベント(事象)及びその時の通信状態に応し
てプロトコル処理方法を一元的に決定できる通信処理装
置では、送受信通信モンユールにおいて発生したイベン
トに対応して起動される通信処理を実行する場合、以下
の如く動作するように構成されている。
[Prior Art] In a communication processing device that can centrally determine a protocol processing method according to an event that occurs and the communication state at that time, communication processing that is activated in response to an event that occurs in a transmitting/receiving communication module is used. When executed, it is configured to operate as follows.

即ち、現在の通信状態を検査しその通信状態において発
生するイベントを検査して該当する通信処理を実行する
か、又はイベントか発生した時の通信状態を検査しその
通信状態の処理内で発生したイベントを検査して該当す
る通信処理を実行するように構成されている。
That is, either the current communication state is checked, an event that occurs in that communication state is checked, and the corresponding communication processing is executed, or the communication state at the time the event occurs is checked and the event that occurred during the processing of that communication state is checked. The system is configured to inspect events and perform corresponding communication processing.

[発明か解決しようとする課題] このような従来の通信処理、装置では、通信状態とイベ
ントとを処理の流れの中で別々に検査するので、ある通
信状態においては全てのイベントを検査する必要が生し
る。例えば、正常なシーケンスに基いた通信処理を行う
場合にも異常なイベントに対して検査する必要かある。
[Problem to be solved by the invention] In such conventional communication processing and devices, communication status and events are checked separately in the flow of processing, so it is not necessary to check all events in a certain communication status. is born. For example, even when performing communication processing based on a normal sequence, it is necessary to check for abnormal events.

このため、通信処理モジュールを呼び出すまでの時間か
長くなり、通信処理を高速で実行することかできない。
Therefore, it takes a long time to call the communication processing module, making it impossible to execute communication processing at high speed.

さらに、従来の通信処理装置では、所定の順位でイベン
トと通信状態とを検査するので、最初に検査されるイベ
ントと最後に検査されるイベントとの間に時間的差か常
に発生し、イベント発生後、通信処理を開始するまでの
時間か長くなり、その結果通信処理を高速で実行するこ
とができない。
Furthermore, in conventional communication processing devices, events and communication status are inspected in a predetermined order, so there is always a time difference between the first event inspected and the last event inspected. After that, it takes a long time to start the communication process, and as a result, the communication process cannot be executed at high speed.

従って本発明の目的は、通信処理をより高速で実行する
ことのできる通信処理装置を提供することを目的とする
Therefore, an object of the present invention is to provide a communication processing device that can execute communication processing at higher speed.

[課題を解決するための手段] 上述した目的を達成する本発明の要旨は、通信路からデ
ータを受信するデータ受信手段と、このデータ受信手段
の受信データに応じてイベントを発生するイベント発生
手段と、イベント発生手段から発生したイベントか設定
された優先イベントであるか否かを識別する識別手段と
、発生したイベントが上述の優先イベントである場合は
、この優先イベントに対応する通信処理を実行する実行
手段と、この通信処理の実行終了後、次に優先的に処理
すべき優先イベントを動的に設定する設定手段とを備え
たことにある。
[Means for Solving the Problems] The gist of the present invention for achieving the above-mentioned object is to provide a data receiving means for receiving data from a communication channel, and an event generating means for generating an event in response to data received by the data receiving means. and an identification means for identifying whether the event generated by the event generating means is a set priority event, and if the generated event is the above-mentioned priority event, executes communication processing corresponding to this priority event. and a setting means for dynamically setting a priority event to be processed next after the execution of this communication processing is completed.

[作用] データ受信手段は、通信路からデータを受信するとその
データが通信処理上有効であるかどうか検査し、有効で
ある場合はそのデータをイベント発生手段へ渡す。イベ
ント発生手段は、この受信データの種類に応じてイベン
トを発生する。識別手段は、発生したイベントが設定さ
れた優先イベントであるか否かを識別する。優先イベン
トである場合、実行手段は、この優先イベントに対応し
てあらかじめ設定されている通信処理を実行する。
[Operation] When the data receiving means receives data from the communication channel, it checks whether the data is valid for communication processing, and if it is valid, it passes the data to the event generating means. The event generating means generates an event depending on the type of the received data. The identification means identifies whether or not the event that has occurred is a set priority event. If the event is a priority event, the execution means executes a preset communication process corresponding to this priority event.

発生したイベントか設定された優先イベントではない場
合、現在の通信状態と発生したイベントとから実行すべ
きイベントを検索し実行する。この通信処理を実行した
後、次に優先的に処理すべき優先イベントが動的に設定
される。
If the event that has occurred is not a set priority event, the event to be executed is searched for and executed based on the current communication state and the event that has occurred. After executing this communication process, a priority event to be processed next is dynamically set.

[実施例] 以下、図面を参照して本発明の詳細な説明する。[Example] Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は、本発明の通信処理装置の一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a communication processing device of the present invention.

同図において、aは、通信路に接続されておりこの通信
路を介してデータを送信したり受信するための通信モジ
ュールを示している。この通信モンユールaには、イベ
ント制御モジュールbか接続されている。イベント制御
モジュールbは、受信時に通信モジュールaから受信デ
ータを受は取ってイベントを発生させる。通信モジュー
ルaは本発明のデータ受信手段に対応しており、イベン
ト制御モンユールしは本発明のイベント発生手段に対応
している。
In the figure, a indicates a communication module connected to a communication path and for transmitting and receiving data via this communication path. An event control module b is connected to this communication module a. The event control module b receives and receives received data from the communication module a at the time of reception, and generates an event. The communication module a corresponds to the data receiving means of the present invention, and the event control module corresponds to the event generating means of the present invention.

イベント制御モジュールbには、イベント検査モンユー
ルCか接続されている。このイベント検査モジュールC
は、本発明の識別手段に対応しており、イベント制御モ
ジュールbか発生したイベントと優先イベント格納エリ
アe1に格納された優先イベントとを比較し、両者が一
致した場合に、通信処理モジュールエントリ格納エリア
e3に格納されたエントリのうち優先通信処理モジュー
ルt1を呼び出す。
An event inspection module C is connected to the event control module b. This event inspection module C
corresponds to the identification means of the present invention, and the event control module b compares the generated event with the priority event stored in the priority event storage area e1, and if the two match, the communication processing module entry is stored. Among the entries stored in area e3, priority communication processing module t1 is called.

イベント検査モジュールCには、通信処理検索モジュー
ルdか接続されている。この通信処理検索モジュールd
は、イベント検査モジュールCにおける比較の結果、優
先イベントでないイベントか発生したと判別した場合に
検索を行う。即ち、通信状態格納エリアe2に格納され
ているその時の通信状態と発生したイベントとに応して
処理すべき通信処理モジュールt2及び13のエントリ
を検索する。
A communication processing search module d is connected to the event inspection module C. This communication processing search module d
The search is performed when it is determined that an event that is not a priority event has occurred as a result of the comparison in the event inspection module C. That is, the entry for the communication processing modules t2 and 13 to be processed according to the current communication state stored in the communication state storage area e2 and the event that has occurred is searched.

イベント検査モジュールCには、さらに、上述した優先
イベント格納エリアels通信状態格納エリアe2、及
び通信処理モジュールエントリ格納エリアe3が接続さ
れている。
The event inspection module C is further connected to the above-described priority event storage area els communication status storage area e2 and communication processing module entry storage area e3.

優先イベント格納エリアe1には、イベントが発生した
場合に最初に識別される優先イベントが格納される。通
信状態格納エリアe2には、通信状態を表す情報が格納
される。通信処理モジュールエントリ格納エリアe3に
は、優先イベント格納エリアe1に格納された優先イベ
ントにより処理すべき優先通信処理モジュールt1のエ
ントリか格納される。
The priority event storage area e1 stores a priority event that is identified first when an event occurs. Information representing the communication state is stored in the communication state storage area e2. The communication processing module entry storage area e3 stores an entry for the priority communication processing module t1 to be processed according to the priority event stored in the priority event storage area e1.

優先通信処理モジュールt1は、通信状態格納エリアe
2に格納されている通信状態のときに優先イベント格納
エリアe1に格納されている優先イベントが発生した場
合に通信処理モジュールt2及び13に優先して通信処
理を実行する。ただし、優先通信処理モジュールt1と
は、説明上、次に優先的に通信処理を実行する不定の通
信処理モジュールI2又はi3であって、固定の通信処
理モジュールではない。
The priority communication processing module t1 has a communication status storage area e.
When the priority event stored in the priority event storage area e1 occurs during the communication state stored in the communication processing module t2 and the communication processing module t13, the communication processing module t2 and the communication processing module t13 execute communication processing in priority. However, for the sake of explanation, the priority communication processing module t1 is an undefined communication processing module I2 or i3 that executes communication processing with priority next, and is not a fixed communication processing module.

通信処理モジュール11〜13は、当該通信処理の実行
終了後、その時の通信状態を通信状態格納エリアe2に
格納し、次に優先的に処理すべき優先イベントを優先イ
ベント格納エリアe1に格納し、さらに、優先イベント
により処理すべき優先通信処理モジュール11のエント
リを通信処理モジュールエントリ格納エリアe3に格納
する。この優先通信処理モジュール11は本発明の実行
手段に対応しており、通信処理モジュール11〜t3は
本発明の設定手段に対応している。
After completing the execution of the communication processing, the communication processing modules 11 to 13 store the communication state at that time in the communication state storage area e2, store the priority event to be processed next in priority event storage area e1, Furthermore, the entry for the priority communication processing module 11 to be processed by the priority event is stored in the communication processing module entry storage area e3. This priority communication processing module 11 corresponds to the execution means of the present invention, and the communication processing modules 11 to t3 correspond to the setting means of the present invention.

第2図、第3図、及び第4図は、第1図の通信処理装置
の動作を説明するためのフローチャートであり、以下、
これらの図を参照して本実施例の動作を説明する。
FIGS. 2, 3, and 4 are flowcharts for explaining the operation of the communication processing device shown in FIG.
The operation of this embodiment will be explained with reference to these figures.

第2図に示すように、通信路からデータを受信する場合
のルーチンR1ては、通信モンユールaにより受信デー
タの有無を判定しくステップS1)、データを受信する
と受信データか有効か否かを判定する(ステップS2)
。有効の場合には受信データをイベント制御モジュール
bへ渡し、これにより第3図に示すルーチンR2へ移行
する(ステップS3)。なお、受信データか無効である
場合は(ステップS2)、受信データを破棄し次の受信
ブタを待つ。
As shown in FIG. 2, in the routine R1 when receiving data from a communication path, the presence or absence of received data is determined by the communication module a (Step S1), and when data is received, it is determined whether the received data is valid or not. (Step S2)
. If it is valid, the received data is passed to the event control module b, and the process moves to routine R2 shown in FIG. 3 (step S3). Note that if the received data is invalid (step S2), the received data is discarded and the next received data is waited for.

ルーチンR2では、通信モジュールaからの受信データ
を受は取ると(ステップS4)、イベント制御モジュー
ルbによりイベントを発生し、第4図に示すルーチンR
3へ移行する(ステップS5)。
In routine R2, when receiving data from communication module a is received (step S4), an event is generated by event control module b, and routine R shown in FIG.
3 (step S5).

ルーチンR3ては、イベント制御モジュールbからイベ
ントが発生したかどうか判別しくステップS6)、イベ
ントが発生した場合は、イベント検査モジュールCによ
りこのイベントか優先イベント格納エリアe1に格納さ
れている優先イベントであるか否かを判定する(ステッ
プ57)。
In the routine R3, the event control module b determines whether an event has occurred (step S6). If an event has occurred, the event inspection module C determines whether this event or a priority event stored in the priority event storage area e1 is detected. It is determined whether there is one (step 57).

優先イベントである場合には通信処理モシュルエントリ
格納エリアe3に格納されている該当するエントリを呼
び比しくステップS8)、次いで、そのエントリの優先
通信処理モジュール11を呼び出す(ステップ5IO)
If it is a priority event, call the corresponding entry stored in the communication processing module entry storage area e3 (step S8), and then call the priority communication processing module 11 for that entry (step 5IO).
.

他方、優先イベントでない場合には通信処理検索モジュ
ールdを呼び出しくステップS9)、この通信処理検索
モジュールdが発生イベントと通信状態格納エリアe2
に格納されている現在の通信状態とにより、通信処理モ
ジュール12又はt3を呼び出す(ステップ510)。
On the other hand, if it is not a priority event, the communication processing search module d is called in step S9), and this communication processing search module d retrieves the generated event and communication status storage area e2.
The communication processing module 12 or t3 is called based on the current communication state stored in the communication processing module 12 or t3 (step 510).

次いて、呼び出された通信モジュールか当該通信処理を
実行して通信処理か終了すると(ステップSll ) 
、その時の通信状態を通信状態格納エリアe2に格納し
くステップ512)、次に優先的に処理すべき通信処理
に対応する優先イベントを設定して優先イベント格納エ
リアeiに格納する(ステップ513)。
Next, when the called communication module executes the communication process and ends the communication process (step Sll)
, the communication status at that time is stored in the communication status storage area e2 (step 512), and a priority event corresponding to the communication process to be processed next is set and stored in the priority event storage area ei (step 513).

[発明の効果] 以上詳細に説明したように本発明によれば、通信路から
データを受信するデータ受信手段と、このデータ受信手
段の受信データに応してイベントを発生するイベント発
生手段と、イベント発生手段から発生したイベントか設
定された優先イベントであるか否かを識別する識別手段
と、発生したイベントか上述の優先イベントである場合
は、この優先イベントに対応する通信処理を実行する実
行手段と、この通信処理の実行終了後、次に優先的に処
理すべき優先イベントを動的に設定する設定手段とを備
えているため、データを受信してイベントか発生した場
合に通信処理を短時間で検索することができ、シーケン
ス処理を高速化することかできる。従って、通信処理に
おいて正常なシケンス処理をより高速化したい場合、又
はエラーが発生した時のシーケンス処理を高速化したい
場合等に本発明を適用すれば、顕著な効果を得ることが
できる。
[Effects of the Invention] As described in detail above, according to the present invention, there are provided a data receiving means for receiving data from a communication path, an event generating means for generating an event in response to data received by the data receiving means, Identification means for identifying whether the event generated by the event generation means is a set priority event, and if the generated event is the priority event described above, execution for executing communication processing corresponding to this priority event. and a setting means for dynamically setting a priority event to be processed next after the execution of this communication process is completed, so that when data is received and an event occurs, the communication process can be executed. Search can be done in a short time and sequence processing can be speeded up. Therefore, if the present invention is applied when it is desired to speed up normal sequence processing in communication processing or when it is desired to speed up sequence processing when an error occurs, significant effects can be obtained.

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

第1図は本発明の通信処理装置の一実施例を示すブロッ
ク図、第2図、第3図、第4図は第1図の通信処理装置
の動作を説明するためのフローチャートである。 a・・・・・・通信モジュール、b・・・・・・イベン
ト制御モジュール、C・・・・・・イベント検査モジュ
ール、d・・・・・・通信処理検索モジュール、el・
・・・・・優先イベント格納エリア、e2・・・・・・
通信状態格納エリア、e3・・・・・・通信処理モジュ
ールエントリ格納エリア、11・・・・・・優先通信処
理モジュール、[2、【3・・・・・・通信処理モジュ
ール。 第2図
FIG. 1 is a block diagram showing one embodiment of the communication processing device of the present invention, and FIGS. 2, 3, and 4 are flowcharts for explaining the operation of the communication processing device of FIG. 1. a...Communication module, b...Event control module, C...Event inspection module, d...Communication processing search module, el.
...Priority event storage area, e2...
Communication status storage area, e3... Communication processing module entry storage area, 11... Priority communication processing module, [2, [3... Communication processing module. Figure 2

Claims (1)

【特許請求の範囲】[Claims]  通信路からデータを受信するデータ受信手段と、該デ
ータ受信手段の受信データに応じてイベントを発生する
イベント発生手段と、該イベント発生手段から発生した
イベントが設定された優先イベントであるか否かを識別
する識別手段と、該発生したイベントが前記優先イベン
トである場合は、該優先イベントに対応する通信処理を
実行する実行手段と、該通信処理の実行終了後、次に優
先的に処理すべき優先イベントを動的に設定する設定手
段とを備えたことを特徴とする通信処理装置。
A data receiving means that receives data from a communication channel, an event generating means that generates an event in response to data received by the data receiving means, and whether or not the event generated from the event generating means is a set priority event. an identification means for identifying the event, an execution means for executing a communication process corresponding to the priority event when the event that has occurred is the priority event, and an execution means for executing the communication process corresponding to the priority event after the execution of the communication process is completed; 1. A communication processing device comprising: a setting means for dynamically setting a priority event to be given.
JP2187734A 1990-07-16 1990-07-16 Communication processing unit Pending JPH0477040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2187734A JPH0477040A (en) 1990-07-16 1990-07-16 Communication processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2187734A JPH0477040A (en) 1990-07-16 1990-07-16 Communication processing unit

Publications (1)

Publication Number Publication Date
JPH0477040A true JPH0477040A (en) 1992-03-11

Family

ID=16211257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2187734A Pending JPH0477040A (en) 1990-07-16 1990-07-16 Communication processing unit

Country Status (1)

Country Link
JP (1) JPH0477040A (en)

Similar Documents

Publication Publication Date Title
US5655075A (en) Protocol method for validating an input protocol specification
CN109933465B (en) Exception handling method, exception handling device, server and storage medium
KR860000184B1 (en) Interfacing control device
US4891639A (en) Monitoring system of network
JPH0477040A (en) Communication processing unit
CN116155350A (en) Method and system for generating instructions of satellite in batches, storage medium and electronic equipment
KR100256097B1 (en) Serial bus controller
CN108648298B (en) Message processing method and device, storage medium and electronic equipment
US5293572A (en) Testing system of computer by generation of an asynchronous pseudo-fault
CN111917602B (en) Method and device for detecting availability of IP address and electronic equipment
JP2001308892A (en) Lan repeater
JPH04243451A (en) File transmission system
JP3298457B2 (en) Scratch signal detection handling system
JP3028064B2 (en) Processing condition determining apparatus and method
JPH05103036A (en) Communication processing unit
JP2001177549A (en) System for changing inter-device communication parameter in transmission network system
JPH01250122A (en) Deciding system for input data conditions
JPH04349741A (en) Communication processing unit
JP2022174389A (en) Monitoring control system and training scenario creation method
JP2616545B2 (en) Data receiving system
JPS6260035A (en) Artificial trouble generation system
JPH04336631A (en) Error message output system
SU1310823A2 (en) Channel simulator
JPH05165984A (en) Data drive type computer
JPH0683653A (en) Error discriminating circuit