JPS62145945A - Polling control system - Google Patents
Polling control systemInfo
- Publication number
- JPS62145945A JPS62145945A JP60287209A JP28720985A JPS62145945A JP S62145945 A JPS62145945 A JP S62145945A JP 60287209 A JP60287209 A JP 60287209A JP 28720985 A JP28720985 A JP 28720985A JP S62145945 A JPS62145945 A JP S62145945A
- Authority
- JP
- Japan
- Prior art keywords
- central processing
- processing unit
- polling
- terminal
- control field
- 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
Links
Landscapes
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、ハイレベルデータリンクプロトコルによりデ
ータ伝送を行なうシステムのポーリング制御方式に関し
、特に多数の端末が通信制御装置に接続されていてデー
タがランダムに発生するようなシステムにおいて、通信
制御装置と中央処理装置間の情報転送を極力少なくする
ことによって中央処理装置の処理能力の向上を図ったポ
ーリング制御方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a polling control method for a system that transmits data using a high-level data link protocol, and particularly in a system where a large number of terminals are connected to a communication control device and data is transmitted. The present invention relates to a polling control method that improves the processing capacity of a central processing unit by minimizing information transfer between a communication control device and a central processing unit in a system where polling occurs randomly.
従来、UNクラス−次局のポーリング制ffflは中央
処理装置が一括して行なっており、通信制御装置ではフ
ラグシーケンス(F)の付与・削除、フレームチェック
シーケンス(Fe2)の付与・検査を行なう程度であっ
た。このため、ポーリングおよびこれに伴うフレームの
送信、受信の度に中央処理装置と通信制御装置の間で情
報の転送を伴っていた。Conventionally, the polling system fffl for UN class-next stations has been carried out by the central processing unit, and the communication control unit has only been responsible for adding and deleting flag sequences (F) and adding and checking frame check sequences (Fe2). Met. Therefore, each time polling and frame transmission and reception are performed, information is transferred between the central processing unit and the communication control unit.
上述した従来のポーリング制御方式では、殆どの処理が
中央処理装置に集中しているため、ポーリングを行なっ
た端末(二次局)からのレスポンスフレームが、情報部
を持たず、ポーリングに対する単なる応答5送信確認、
誤り、ビジーなどの状態遷移を喚起しないフレームであ
っても、通(を制御装置と中央処理装置間で情報の転送
を伴っていた。しかし、端末側で発生する情報送信要求
が全くないような状態では一次局側のポーリング制御に
伴うこれらの中央処理装置と通信制御装置間の情報転送
は全く無駄であり、これが中央処理装置における他のタ
スクの処理能力を低下させる原因となっていた。In the conventional polling control method described above, most of the processing is concentrated in the central processing unit, so the response frame from the polling terminal (secondary station) does not have an information part and is just a response to the polling. Sending confirmation,
Even frames that do not trigger state transitions such as error or busy messages involve the transfer of information between the control unit and the central processing unit. In this state, the information transfer between the central processing unit and the communication control unit due to polling control on the primary station side is completely wasteful, and this causes a decline in the processing capacity of other tasks in the central processing unit.
本発明はこのような事情に鑑みて為されたものであり、
その目的は、ポーリングにおける中央処理装置の負荷を
極力低減することができるポーリング制御方式を提供す
ることにある。The present invention has been made in view of these circumstances,
The purpose is to provide a polling control method that can reduce the load on the central processing unit during polling as much as possible.
本発明は上記目的を達成するために、中央処理装置と、
該中央処理装置に接続された通信制御装置と、該通信制
御装置に接続された複数の端末とを備えたシステムにお
けるポーリング制御方式において、
前記通信制御装置に、前記中央処理装置から書換え可能
な局アドレステーブル、送信制御フィールドテーブル、
受信制御フィールドテーブルを設け、
前記通信制御装置は、前記局アドレステーブルに登録さ
れた端末に対し前記送信制御フィールドテーブルに格納
された送信制御フィールドを使用してポーリングを行な
い、該ポーリングにより送信権を与えた端末からレスポ
ンスフレームを受信したときは、該レスポンスフレーム
中の受信制御フィールドと前記受信制御フィールドテー
ブル中の前記送信権を与えた端末に対応する受信制御フ
ィールドとを比較し、一致したときは次の端末のポーリ
ングを行ない、不一致のときはポーリング制御1動作を
中断して前記中央処理装置へ割込むように構成する。In order to achieve the above object, the present invention includes a central processing unit;
In a polling control method in a system including a communication control device connected to the central processing device and a plurality of terminals connected to the communication control device, the communication control device includes a station that can be rewritten from the central processing device. address table, transmission control field table,
A reception control field table is provided, and the communication control device polls the terminals registered in the station address table using the transmission control field stored in the transmission control field table, and acquires the transmission right by the polling. When a response frame is received from the terminal that gave the transmission right, the reception control field in the response frame is compared with the reception control field corresponding to the terminal that gave the transmission right in the reception control field table, and if they match, The next terminal is polled, and if there is a mismatch, the polling control 1 operation is interrupted and the central processing unit is interrupted.
受信制御フィールドテーブルの内容を、例えばデータ無
しのレスポンスフレームと同じ内容となるように中央処
理装置で更新しておくと、端末からデータ無しのレスポ
ンスフレームが受信された場合、中央処理装置へは割込
みがかからず、その分中央処理装置の負荷を軽減するこ
とができる。If the content of the reception control field table is updated by the central processing unit so that it is the same as a response frame without data, for example, when a response frame without data is received from the terminal, an interrupt is sent to the central processing unit. Therefore, the load on the central processing unit can be reduced accordingly.
端末からデータ有りのレスポンスフレームが受信される
と、レスポンスフレーム中の受信制御フィールドと前記
受信制御フィールドテーブル中の受信制御フィールドと
が不一致となるので、中央処理装置に割込みがかかり、
この割込み処理により受信データを中央処理装置へ渡す
ことができる。When a response frame with data is received from the terminal, the reception control field in the response frame and the reception control field in the reception control field table do not match, so an interrupt is generated in the central processing unit.
This interrupt processing allows the received data to be passed to the central processing unit.
次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明を適用するシステムの一例を示すブロッ
ク図であり、中央処理装置1に通信制御装置2が接続さ
れ、この通信制御装置2に通信回線3を介して分岐構成
の複数の端末T1=Tnが接続されたシステムを示ス。FIG. 1 is a block diagram showing an example of a system to which the present invention is applied, in which a communication control device 2 is connected to a central processing unit 1, and a plurality of terminals in a branch configuration are connected to the communication control device 2 via a communication line 3. T1=Tn indicates a connected system.
通信制御装置2には、それぞれポーリング制御に使用す
るポインタテーブル20.局アドレステーブル21.送
信制御フィールドテーブル22.受信制御フィールドテ
ーブル23.送信フレーム用レジスタ24.受信フレー
ム用レジスタ25が含まれ、これらは中央処理装置1か
ら書換え可能となっている。The communication control device 2 includes pointer tables 20 . . . , which are used for polling control. Station address table 21. Transmission control field table 22. Reception control field table 23. Transmission frame register 24. A receive frame register 25 is included, and these can be rewritten by the central processing unit 1.
ポインタテーブル20には送信制御フィールドテーブル
ポインタSP、局アドレステーブルポインタAP、受信
制御フィールドテーブルポインタRP。The pointer table 20 includes a transmission control field table pointer SP, a station address table pointer AP, and a reception control field table pointer RP.
カレント端末番号m(1≦m≦n)、ラスト端末番号n
が格納され、局アドレステーブル21にはポーリング対
象とする端末の局アドレスAt〜Anが格納され、送信
制御フィールドテーブル22には各端末Tl−Tnの送
信制御フィールドCI(S)〜Cn (S)が格納され
、受信制御フィールドテーブル23には各端末T1〜T
nの受信制御フィールドC1(R)〜Cn(R)が格納
される。送信フレーム24は通信回線3を介して端末に
送信するフレームであり、フラグシーケンスF7局アド
レスAm、送信制御フィールドCm (S) 、フラグ
チェックシーケンスFC8が含まれる。また、受信フレ
ーム25は通信回線3を介して端末から受信したフレー
ムであり、フラグシーケンスF1局アドレスAm、受信
制御フィールドCm(R)、フラグチェックシーケンス
FC8及び場合によってはデータ部(図示せず)が含ま
れる。上記送信制御フィールドCI(S)〜Cn (S
)には、端末から通信制御装置2へ送ったデータの通番
などが含まれ、受信制御フィールドc 1 (R)〜C
n(R)にはデータの有無、ビジー状態の有無1通信制
御装置2から端末へ送ったデータの通番等が含まれてい
る。Current terminal number m (1≦m≦n), last terminal number n
are stored, the station address table 21 stores station addresses At to An of terminals to be polled, and the transmission control field table 22 stores transmission control fields CI(S) to Cn(S) of each terminal Tl-Tn. are stored in the reception control field table 23, and each terminal T1 to T
n reception control fields C1(R) to Cn(R) are stored. The transmission frame 24 is a frame transmitted to the terminal via the communication line 3, and includes a flag sequence F7 station address Am, a transmission control field Cm (S), and a flag check sequence FC8. The received frame 25 is a frame received from the terminal via the communication line 3, and includes a flag sequence F1 station address Am, a reception control field Cm(R), a flag check sequence FC8, and in some cases a data section (not shown). is included. The above transmission control fields CI(S) to Cn(S
) includes the serial number of the data sent from the terminal to the communication control device 2, and the reception control fields c 1 (R) to C
n(R) includes the presence or absence of data, the presence or absence of a busy state, and the serial number of data sent from the communication control device 2 to the terminal.
先ず、通信制御装置2の動作を第2図に示す流れ図を参
照して説明する。First, the operation of the communication control device 2 will be explained with reference to the flowchart shown in FIG.
通信制御装置2は、中央処理装置1からポーリング開始
の指示を受けると、ポーリング中断指示が中央処理装置
1から為されていないことを確認した後(31)、ポイ
ンタテーブル20のカレント端末番号mを→何しくS2
)、このカレンl一端末番号mに対応する局アドレスA
mが局アドレステーブル21に登録されているか否かを
サーチする(S3)。そして、登録されていない場合は
ステップS1に戻って上記の処理を繰返し、登録されて
いる場合は、送信制御フィールドテーブル22からその
端末の送信制御フィールドCm(S)を取得しくS4)
、この送信制御フィールドCm(S)と局アドレスAm
を送信フレーム24にセットすると共に(S5)、これ
にF、Fe2を付与して通信回線3上に当該フレームを
送出する(S6)。Upon receiving the instruction to start polling from the central processing unit 1, the communication control device 2 confirms that no instruction to interrupt polling has been issued from the central processing unit 1 (31), and then inputs the current terminal number m in the pointer table 20. →What's up S2
), the station address A corresponding to this current terminal number m
A search is made to see if m is registered in the station address table 21 (S3). Then, if it is not registered, return to step S1 and repeat the above process, and if it is registered, obtain the transmission control field Cm(S) of that terminal from the transmission control field table 22 (S4).
, this transmission control field Cm(S) and the station address Am
is set in the transmission frame 24 (S5), F and Fe2 are added thereto, and the frame is sent out on the communication line 3 (S6).
通信制御装置2は上記フレームの送出後に受信フレーム
の受信確認待ちとなり (S7)、端末からの受信フレ
ーム25が受信されると、そのフレーム中の局アドレス
AmとステップS6で送出したフレームに含めたカレン
ト端末番号mに対応する局アドレスAmとを比較しくS
8)、−4&しない場合は送信権を付与しない端末から
の送信であることから受信したフレームを廃棄する(S
9)。After transmitting the above frame, the communication control device 2 waits for reception confirmation of the received frame (S7), and when the received frame 25 from the terminal is received, the station address Am in that frame is included in the frame transmitted in step S6. Compare the station address Am corresponding to the current terminal number m.S
8), -4&, the received frame is discarded because it is transmitted from a terminal that does not grant transmission rights (S
9).
また一致した場合は、受信フレーム中の制御フンールド
Cm(R)とステップS6で送出したフレームに含めた
カレント端末番号mに対応する受信制御フィールドテー
ブル23の受信制御フィールドCm (R)とを比較す
る(SIO)。そして、両制御フィールドの内容が一致
した場合にはステップS1に戻って上記の動作を繰返す
。反対に不一致の場合には、ポーリング制御動作を中断
し中央処理装置1に割込みで通知を行ない(Sll)、
ポーリング中断中処理状態となる( S 12)。この
ポーリング中断中処理では、受信フレームは全て中央処
理装置lに割込みにより通知する。また、中央処理装置
1からポーリング再開指示が送出されると、ステップS
lに戻ってポーリング制御動作を再開する(S13)。If they match, the control field Cm (R) in the received frame is compared with the reception control field Cm (R) in the reception control field table 23 corresponding to the current terminal number m included in the frame sent in step S6. (SIO). If the contents of both control fields match, the process returns to step S1 and the above operation is repeated. On the other hand, if there is a mismatch, the polling control operation is interrupted and the central processing unit 1 is notified by an interrupt (Sll).
A state is entered during polling suspension processing (S12). In this polling suspension process, all received frames are notified to the central processing unit 1 by interrupt. Further, when a polling restart instruction is sent from the central processing unit 1, step S
1 and restarts the polling control operation (S13).
また、中央処理装置lからポーリング再開指示を受ける
と、ステップSlにおいてそれが識別され、ポーリング
制御動作を中断すると共にその旨の通知(ポーリング中
断通知)を中央処理装置lに送出しく514) 、中央
処理11afflからフレーム送信要求があると(S1
5)、その種別すなわちデータリンク確立、データリン
ク解放、中央処理装置1から端末へのデータ送信に応し
た処理を行ない(S L6〜318)、中央処理装置【
からポーリング再開指示があると(319)、ステップ
S1に戻ってポーリング制御動作を再開する。When the polling restart instruction is received from the central processing unit l, it is identified in step Sl, and the polling control operation is interrupted and a notification to that effect (polling interruption notification) is sent to the central processing unit l (514). When there is a frame transmission request from process 11affl (S1
5), performs processing according to its type, that is, data link establishment, data link release, and data transmission from the central processing unit 1 to the terminal (S L6 to 318), and the central processing unit [
When a polling restart instruction is issued from (319), the process returns to step S1 and the polling control operation is restarted.
次に、データリンク確立の際の動作を説明する。Next, the operation when establishing a data link will be explained.
第3図は端末T2.T3.T4がデータリンク確立法の
端末であり、新たに端末T5に対して中央処理装置lが
データリンクの確立を行なう場合のシーケンスを示し、
RR3P、RRIP、R1’?2P、RROPは通信制
御装置2から端末に送出されるフレーム中の送信制御フ
ィールドの内容、RR6F、RR5F、RR7F、
RROFは端末から通信制御装置2に送出されるフレー
ム中の受13制御■フィールドの内容、SNRMP(よ
データリンク確立用フレーム中の送信制御フィールドの
内容、UAFは端末からの了解信号である。また、第4
図は中央処理装置lのデータリンク確立処理の一例を示
す流れ図である。FIG. 3 shows terminal T2. T3. T4 is a terminal in the data link establishment method, and a sequence is shown in which the central processing unit l newly establishes a data link for the terminal T5,
RR3P, RRIP, R1'? 2P and RROP are the contents of the transmission control field in the frame sent from the communication control device 2 to the terminal, RR6F, RR5F, RR7F,
RROF is the content of the receiver control field in the frame sent from the terminal to the communication control device 2, SNRMP is the content of the transmission control field in the data link establishment frame, and UAF is the acknowledgment signal from the terminal. , 4th
The figure is a flowchart showing an example of the data link establishment process of the central processing unit l.
第3図に示すように通信制御装置2が端末′r2゜T3
との間でフレームの授受を行なっているポーリング中に
、中央処理装置lからポーリング中断指示が送出される
と(S20)、通信制御装置2はステップS1でこれを
識別してポーリング制御動作を中断し、ポーリング中断
通知を中央処理装置1へ送出する(S14)。中央処理
装置1はこの通知があると(S21)、データリンク確
立用フレームの送信要求を通信制御装置2に送出する(
S 22)。As shown in FIG.
When a polling interruption instruction is sent from the central processing unit 1 (S20) during polling in which frames are exchanged between Then, a polling interruption notification is sent to the central processing unit 1 (S14). When the central processing unit 1 receives this notification (S21), it sends a request to transmit a data link establishment frame to the communication control unit 2 (
S22).
なお、この要求はデータリンクの確立を行なう端末T5
の局アドレスA5.上記SNRMPを含む。Note that this request is made by the terminal T5 that establishes the data link.
Station address A5. Includes the above SNRMP.
通信制御装置2はこのフレーム送信要求を受けると(S
15)、データリンク確立処理(517)により端末T
5に対しデータリンク確立用フレームを送出し、端末T
5から了解信号を受けるとフレーム受信通知を中央処理
装置1へ送出し、ポーリング再開指示待ちとなるI S
19)。中央処理装置1はij1信制御装置2からフ
レーム受信通知を受けると(S23)、通信制御装置2
における局アドレステーブル21に端末T5の局アドレ
スA5を書込むと共に送信制御フィールドテーブル22
に端末T5の送信制御フィールドC5(S)を、受信制
御フィールドテーブル23に端末T5の受信制御フィー
ルドC3(R)をそれぞれ書込み(S24) 、ポーリ
ング再開指示を送出する(S25)。通信制御装置2は
このポーリング再開指示により中断していたポーリング
制御動作を再開する( S 19)。When the communication control device 2 receives this frame transmission request (S
15), terminal T through data link establishment processing (517)
Terminal T sends a data link establishment frame to terminal T.
Upon receiving an acknowledgment signal from IS 5, it sends a frame reception notification to central processing unit 1 and waits for an instruction to resume polling.
19). When the central processing unit 1 receives the frame reception notification from the ij1 communication control device 2 (S23), the central processing unit 1 receives the frame reception notification from the communication control device 2.
The station address A5 of the terminal T5 is written in the station address table 21 in the transmission control field table 22.
The transmission control field C5 (S) of the terminal T5 is written in the reception control field table 23, the reception control field C3 (R) of the terminal T5 is written in the reception control field table 23 (S24), and a polling restart instruction is sent (S25). The communication control device 2 resumes the polling control operation that had been interrupted by this polling restart instruction (S19).
このように、データリンクの確立は、中央処理装置lに
よって通信制御装置2のポーリング動作を一時的に中断
させ、通信制御装置2ヘデータリンクの確立を行なう端
末の局アドレス等を書込むことにより行なわれ、この結
果、第3図のシーケンスの最後に示すように端末T5が
ポーリング対象に加えられる。In this way, the data link is established by temporarily suspending the polling operation of the communication control device 2 by the central processing unit l, and writing the station address of the terminal for which the data link is to be established to the communication control device 2. As a result, the terminal T5 is added to the polling target as shown at the end of the sequence in FIG.
次にデータリンク解放の際の動作を説明する。Next, the operation when releasing the data link will be explained.
第5図は端末T2〜T6がデータリンク確立法の端末で
あり、ここから端末T5のデータリンクを解放する際の
シーケンスを示す。なお、第5図において第3図と同一
符号は同一部分を示し1、DISCPはデータリンク解
放用フレーム中の送信制御フィールドの内容を示す。ま
た、第6図は中央処理装置1のデータリンク解放処理の
一例を示す流れ図である。FIG. 5 shows the sequence in which the terminals T2 to T6 are the terminals in the data link establishment method, and the data link of the terminal T5 is released from there. In FIG. 5, the same reference numerals as in FIG. 3 indicate the same parts, and DISCP indicates the contents of the transmission control field in the data link release frame. Further, FIG. 6 is a flowchart showing an example of data link release processing of the central processing unit 1.
第5図に示すように通信制御装置2が端末T2゜T3と
の間でフレームの授受を行なっているポーリング中に、
中央処理装置1からポーリング中断指示が送出されると
(S30) 、通信制御装置2はステップSlでこれを
識別してポーリング制御動作を中断し、ポーリング中断
通知を中央処理装置1へ送出する( S 14)。中央
処理装置lはこの通知があると(S31) 、データリ
ンク解放用フレームの送信要求を通信制御装置2に送出
する( S 32)。As shown in FIG. 5, during polling when the communication control device 2 is exchanging frames with the terminals T2 and T3,
When a polling interruption instruction is sent from the central processing unit 1 (S30), the communication control device 2 identifies this in step Sl, interrupts the polling control operation, and sends a polling interruption notification to the central processing unit 1 (S 14). When the central processing unit 1 receives this notification (S31), it sends a data link release frame transmission request to the communication control unit 2 (S32).
なお、この要求はデータリンクの解放を行なう端末T5
の局アドレスA5.上記DISCPを含む。Note that this request is sent by the terminal T5 that releases the data link.
Station address A5. Includes the above DISCP.
通信制御装置2はこのフレーム送信要求を受けると(5
15) 、データリンク解放処理(31B)により端末
T5に対しデータリンク解放用フレームを送出し、端末
T5から了解信号を受けるとフレーム受信通知を中央処
理装置1へ送出し、ポーリング再開指示待ちとなる(3
19)。中央処理装置1は通信制御装置2からフレーム
受信通知を受けると(S33)、通信制御装置2におけ
る局アドレステーブル21中の端末T5の局アドレー″
、を抹消すなわち0としく534) 、ポーリング再開
指示を送出する(335)。通信制御装置2はこのポー
リング再開指示により中断していたポーリング制御動作
を再開する(S19)。Upon receiving this frame transmission request, the communication control device 2 transmits (5
15) Sends a data link release frame to terminal T5 through data link release processing (31B), and upon receiving an acknowledgment signal from terminal T5, sends a frame reception notification to central processing unit 1 and waits for polling restart instruction. (3
19). When the central processing unit 1 receives the frame reception notification from the communication control unit 2 (S33), the central processing unit 1 updates the station address of the terminal T5 in the station address table 21 in the communication control unit 2.
, or is set to 0 (534), and sends a polling restart instruction (335). The communication control device 2 resumes the suspended polling control operation in response to this polling restart instruction (S19).
このように、データリンクの解放は、中央処理装置lに
よって通信制御装置2のポーリング動作を一時的に中断
させ、中央処理装置20局アドレステーブル21から端
末の局アドレスを抹消することにより行なわれ、この結
果、第5図のシーケンスの最後に示すように端末T5が
ポーリング対象から除外される。In this way, the data link is released by temporarily suspending the polling operation of the communication control device 2 by the central processing unit 1, and deleting the station address of the terminal from the central processing unit 20 station address table 21. As a result, terminal T5 is excluded from the polling target as shown at the end of the sequence in FIG.
次に中央処理装置1から端末にデータを送信する際の動
作について説明する。Next, the operation when transmitting data from the central processing unit 1 to the terminal will be explained.
第7図は中央処理装置1から端末Tmヘデータを送(、
=する際のシーケンスを、端末Tmのみに着目して図示
したものであり、I O,OP、 + 1,0πは送
信データ用フレーム中の送信制御フィールドの内容を示
し、■はデータ有りを示すコード、最初のOと1は送信
データの通番1次の0とOは受信データの通番、rは最
後の送信データ用フレームでないことを示す識別符号で
ある。また、第8図は中央処理WRtのデータ送信処理
の一例を示す流れ図である。FIG. 7 shows data sent from the central processing unit 1 to the terminal Tm (,
The sequence when = is illustrated focusing only on the terminal Tm, where IO, OP, + 1, 0π indicate the contents of the transmission control field in the frame for transmission data, and ■ indicates the presence of data. The first O and 1 are the serial numbers of the transmitted data, the first 0 and O are the serial numbers of the received data, and r is an identification code indicating that the frame is not the last transmitted data frame. Further, FIG. 8 is a flowchart showing an example of data transmission processing by the central processing WRt.
第7図に示すように通信制御装置2が端末Tmとの間で
フレームの授受を行なっているポーリング中に、中央処
理装置1からポーリング中断指示が送出されると(S4
0) 、通信制御装置2はステップS1でこれを識別し
てポーリング制御動作を中断し、ポーリング中断通知を
中央処理装置1へ送出する(S14)。ここで、端末T
mからの最後のフレームの受信制御フィールドの内容は
RROFである。中央処理装置Iはこの通知があると(
S41) 、最初の送信データ用フレームの送信要求を
通信制御装置2に送出する( S 42)。なお、この
要求はデータ送信する端末Tmの局アドレスAm、上記
10.0百を含む。通信制御装置2はこのフレーム送信
要求を受けると(315)、データ送信処理(S 16
)により端末Tmに対しデータ送信用フレームを送出す
る。このような処理は送信フレームが終了するまで行な
われ(S43) 、i後の送信データ用フレームの送出
が終了すると中央処理装面1はポーリング再開指示を送
出しく544)、これにより通信制Vn装置2はステッ
プS1に戻ってポーリング制御動作を再開する(S19
)。この間、データを受信した端末Tmは受信データの
通番を更新するが、通信制御装置2の受信制御フィール
ドテーブル23における端末Tmの受信制御フィールド
の内容は中断時の内容(RROF)のまま保持されてい
る。従って、通信制御装置2がポーリング制御動作を再
開して端末Tmに対する次のポーリングを行なうと、ス
テップSIOにおいて端末Tmからの受信制御フィール
ドの内容(RR2F)と受信制御フィールドテーブル2
3中の端末Tm対応の受信制御フィールドの内容(RR
OF)との不一致が検出されることになる。中央処理装
置lは、この不一致による割込み通知を検出することで
(S45) 、送信の確認を行なうものであり、送信の
確認が終了すると通信制御装置2の受信側でコUフィー
ルドテーブル23における端末Tmの受信制御フィール
ドの内容をRROFからRR2Fに更新して通番の不一
致を解消する(346) 、そして、ポーリング開始指
示を送出して通信制御装置2のポーリング動作を再び開
始させる。As shown in FIG. 7, when a polling interruption instruction is sent from the central processing unit 1 during polling when the communication control device 2 is exchanging frames with the terminal Tm (S4
0), the communication control device 2 identifies this in step S1, interrupts the polling control operation, and sends a polling interruption notification to the central processing device 1 (S14). Here, terminal T
The content of the receive control field of the last frame from m is RROF. When the central processing unit I receives this notification (
S41), and sends a transmission request for the first transmission data frame to the communication control device 2 (S42). Note that this request includes the station address Am of the terminal Tm transmitting data, and the above 10.000. When the communication control device 2 receives this frame transmission request (315), it performs data transmission processing (S16).
) sends a data transmission frame to the terminal Tm. Such processing is carried out until the transmission frame ends (S43), and when the sending of the frame for transmission data after i is completed, the central processing unit 1 sends a polling restart instruction (544), which causes the communication system Vn device to 2 returns to step S1 and restarts the polling control operation (S19
). During this time, the terminal Tm that received the data updates the serial number of the received data, but the contents of the reception control field of the terminal Tm in the reception control field table 23 of the communication control device 2 are retained as they were at the time of interruption (RROF). There is. Therefore, when the communication control device 2 restarts the polling control operation and performs the next polling on the terminal Tm, in step SIO, the contents of the reception control field (RR2F) from the terminal Tm and the reception control field table 2
Contents of the reception control field corresponding to the terminal Tm in 3 (RR
OF) will be detected. The central processing unit 1 confirms the transmission by detecting the interrupt notification due to this mismatch (S45), and when the transmission confirmation is completed, the receiving side of the communication control unit 2 updates the terminal in the COU field table 23. The content of the reception control field of Tm is updated from RROF to RR2F to resolve the mismatch in serial numbers (346), and a polling start instruction is sent to cause the communication control device 2 to restart the polling operation.
次に中央処理装置?Hが端末からのデータを受信する際
の動作について説明する。Next is the central processing unit? The operation when H receives data from a terminal will be explained.
第9図は端末Tmからのデータを中央処理装置1が受信
する際のシーケンスを、端末Tmのみに着目して図示し
たものであり、I O,2F、 + 1,2πは受信
フレーム中の受信制御フィールドの内容を示し、Iはデ
ータをりを示すコード、最初のOと1は送信データの通
番1次の2と2は受信データの通番、Vは最後の受信フ
レームでないことを示す識別符号である。また、第10
図は中央処理袋ff1lのデータ受信処理の一例を示す
流れ図である。FIG. 9 shows the sequence when the central processing unit 1 receives data from the terminal Tm, focusing only on the terminal Tm. Indicates the contents of the control field, I is a code indicating the data, the first O and 1 are the serial number of the transmitted data, the second 2 and 2 are the serial number of the received data, and V is the identification code indicating that it is not the last received frame. It is. Also, the 10th
The figure is a flowchart showing an example of data reception processing of the central processing bag ff1l.
第9図に示すように通信制御装置2が端末Tmトノ間で
フレームの授受を行なっているポーリング中に、端末T
mからのフレーム中に送信データ有りを示す受信制御フ
ィールドI O,2Fが含まれると、受信制御フィール
ドテーブル23の端末Tmの受信制御フィールドCm
(R)の内容はデータ無しのRR2Fとなっている為に
ステップSIOで不一致が検出され、中央処理装置tに
割込みで通知される。中央処理装置1はこの受信データ
有りの割込み通知があると、第10図に示すように、最
終的な受信通知(第9図では受信制御フィールドにRR
2Fが含まれたフレームに対応する受信通知)を待って
(S50)、送信制御フィールドテーブル22における
端末Tmの送信制御フィールドの内容を、RROPから
RR2Pに更新しく551)、ポーリング再開指示を送
出する(S52)。このポーリング再開指示により、通
信制御装置2はステ。As shown in FIG. 9, during polling in which the communication control device 2 exchanges frames between the terminals Tm,
If the reception control field IO, 2F indicating that there is transmission data is included in the frame from m, the reception control field Cm of the terminal Tm in the reception control field table 23 is
Since the content of (R) is RR2F with no data, a mismatch is detected in step SIO, and the central processing unit t is notified by an interrupt. When the central processing unit 1 receives this interrupt notification that there is received data, it sends a final reception notification (in FIG. 9, an RR in the reception control field) as shown in FIG.
Waiting for a reception notification corresponding to a frame containing 2F (S50), the content of the transmission control field of the terminal Tm in the transmission control field table 22 is updated from RROP to RR2P (551), and a polling restart instruction is sent. (S52). In response to this polling restart instruction, the communication control device 2 enters the ST.
プ31からポーリング制御動作を再開する。The polling control operation is restarted from step 31.
次に相手局ビジーが発生した場合の動作について説明す
る。Next, the operation when the other station is busy will be explained.
第11図は端末Tmでビジーの発生、解除が行なわれた
際のシーケンスを、端末Tmのみに着目して図示したも
のであり、RNRは端末Tmからのフレームの受信制御
フィールドに含まれるビジー発生を示す符号である。ま
た、第“12図は中央処理装置1のビジー処理の一例を
示す流れ図である。FIG. 11 shows the sequence when a busy state is generated and released at the terminal Tm, focusing only on the terminal Tm, and RNR is the busy occurrence included in the reception control field of the frame from the terminal Tm. This is a code indicating. Further, FIG. 12 is a flowchart showing an example of busy processing of the central processing unit 1.
第11図に示すように通信制御装置2が端末Tmからビ
ジー発生を示すRNRを含むフレームを受信すると、受
信制御フィールドテーブル23の端末Tmの受信制御フ
ィールドCm(R)の内容はレシーブレディ状態(例え
ばRR6F)となっている為にステップSIOで不一致
が検出され、中央処理装置lに割込みで通知される。中
央処理装置lはこの割込み通知があると、ビジー発生時
は受信制御フィールドテーブル23の端末Tmに対応す
る受信制御フィールドの内容をR[?(レシーブレディ
)からRNR(レシーブノットレディ)に変更して(3
60,361) 、ポーリング再開指示を通信制御装置
2に送出する。通信制御装置2はこのポーリング再開指
示によりステップS1からポーリング制御動作を再開す
る。このため、端末Tmが次にポーリングされたとき、
ビジー発生を示すRNRが受信フレームの受信制御フィ
ールドに含まれていても、受信制御フィールドテーブル
23の端末Tmの受信制御フィールドの内容はRNRに
変更されているので、中央処理装置1への割込み通知は
行なわれない。これにより、中央処理装置1の負荷を軽
減することができる。端末Tmでビジーが解除され、そ
れを示すRRを含むフレーム(第11図ではRR6F)
が受信されると、再び通信制御装置2のステップ310
で不一致が検出され、中央処理装置1は今度は受信制御
フィールドテーブル23の端末Tmに対応する受信制御
フィールドをRNRからRRに変更しく360. 56
2) 、通信制御装置2にポーリング再開指示を送出し
て再開させる。As shown in FIG. 11, when the communication control device 2 receives a frame including an RNR indicating a busy occurrence from the terminal Tm, the content of the reception control field Cm(R) of the terminal Tm in the reception control field table 23 is set to the receive ready state ( For example, RR6F), a mismatch is detected in step SIO, and the central processing unit 1 is notified by an interrupt. When the central processing unit l receives this interrupt notification, it changes the contents of the reception control field corresponding to the terminal Tm in the reception control field table 23 to R[? (Receive Ready) to RNR (Receive Not Ready) (3
60, 361), sends a polling restart instruction to the communication control device 2. In response to this polling restart instruction, the communication control device 2 restarts the polling control operation from step S1. Therefore, when terminal Tm is polled next time,
Even if the RNR indicating the occurrence of a busy event is included in the reception control field of the reception frame, the content of the reception control field of the terminal Tm in the reception control field table 23 has been changed to RNR, so an interrupt notification to the central processing unit 1 is not sent. is not carried out. Thereby, the load on the central processing unit 1 can be reduced. A frame containing an RR indicating that the terminal Tm has been released from busy (RR6F in FIG. 11)
is received, step 310 of the communication control device 2 is performed again.
When a mismatch is detected in 360., the central processing unit 1 changes the reception control field corresponding to the terminal Tm in the reception control field table 23 from RNR to RR. 56
2) Send a polling restart instruction to the communication control device 2 to restart polling.
以上のように、本実施例では通信制御装置2にポーリン
グ機能を分担させることにより、通信制御装置2と中央
処理装置1との留部転送は、局アドレステーブル21.
送信制御フィールドテーブル22、受信制御フィールド
テーブル23の更新処理等の手続き上の回復処理と、端
末間との情報伝達の場合に限られ、中央処理装置の負荷
を充分に軽減することができる。As described above, in this embodiment, by assigning the polling function to the communication control device 2, the station address table 21.
This is limited to procedural recovery processing such as update processing of the transmission control field table 22 and reception control field table 23, and information transmission between terminals, and the load on the central processing unit can be sufficiently reduced.
以上説明したように、本発明は、中央処理装置から書換
え可能な局アドレステーブル、送信制御フィールドテー
ブル、受信制御フィールドテーブルの内容に従って端末
のポーリングを行なう機能を通信制御装置に付加したの
で、その分中央処理装置の負荷が軽減され、且つ、レス
ポンスフレーム中の受信制御フィールドと受信制御フィ
ールドテーブル中の受信制御フィールドとの比較結果に
より中央処理装置へ割込むか否かを切換えるようにした
ので、受信制御フィールドテーブルの内容を、例えばデ
ータ無しのレスポンスフレームと同し内容となるように
中央処理装置で更新しておけば、端末からデータ無しの
レスポンスフレームが受信された場合、中央処理装置へ
は割込みがかからず、中央処理装置の負荷をより軽減す
ることが可能となる。As explained above, the present invention adds to the communication control device the function of polling terminals according to the contents of the station address table, transmission control field table, and reception control field table that can be rewritten from the central processing unit. The load on the central processing unit is reduced, and whether or not to interrupt the central processing unit is switched based on the comparison result between the reception control field in the response frame and the reception control field in the reception control field table. If the content of the control field table is updated in the central processing unit so that it has the same content as a response frame with no data, for example, when a response frame with no data is received from the terminal, an interrupt will be sent to the central processing unit. This makes it possible to further reduce the load on the central processing unit.
第1図は本発明を適用するンステムの一例を示すブロッ
ク図、
第2図は通信制御装置2の処理の一例を示す流れ図、
第3図はデータリンクの確立を行なう場合のシーケンス
チャート、
第4図は中央処理装置1のデータリンク確立処理の一例
を示す流れ図、
第5図はデータリンクの解放を行なう場合のシーケンス
チャート、
第6図は中央処理装置1のデータリンク解放時における
処理の一例を示す流れ図、
第7図はデータ送信時のシーケンスチャート、第8図は
中央処理装置lのデータ送信処理の一例を示す流れ図、
第9図はデータ受信時のシーケンスチャート、第1O図
は中央処理装置1のデータ受信処理の一例を示す流れ図
、
第11図はビジー処理時のシーケンスチャート、第12
図は中央処理装置1のビジー処理の一例を示す流れ図で
ある。
図において、1は中央処理装置、2は通信制御装置、3
は通信回線、20はポインタテーブル、21は局アドレ
ステーブル、22は送信制御フィールドテーブル、23
は受信制御フィールドテーブル、24は送信フレーム、
25は受信フレーム、T1〜Tnは端末である。1 is a block diagram showing an example of a system to which the present invention is applied; FIG. 2 is a flowchart showing an example of processing of the communication control device 2; FIG. 3 is a sequence chart for establishing a data link; The figure is a flowchart showing an example of the data link establishment process of the central processing unit 1, Figure 5 is a sequence chart when releasing the data link, and Figure 6 is an example of the process of the central processing unit 1 when releasing the data link. FIG. 7 is a sequence chart when transmitting data, FIG. 8 is a flow chart showing an example of data transmission processing by the central processing unit l, FIG. 9 is a sequence chart when receiving data, and FIG. Figure 11 is a flowchart showing an example of data reception processing in No. 1. Figure 11 is a sequence chart during busy processing.
The figure is a flowchart showing an example of busy processing by the central processing unit 1. In the figure, 1 is a central processing unit, 2 is a communication control unit, and 3 is a central processing unit.
is a communication line, 20 is a pointer table, 21 is a station address table, 22 is a transmission control field table, 23
is a reception control field table, 24 is a transmission frame,
25 is a received frame, and T1 to Tn are terminals.
Claims (1)
装置と、該通信制御装置に接続された複数の端末とを備
えたシステムにおけるポーリング制御方式において、 前記通信制御装置に、前記中央処理装置から書換え可能
な局アドレステーブル、送信制御フィールドテーブル、
受信制御フィールドテーブルを設け、 前記通信制御装置は、前記局アドレステーブルに登録さ
れた端末に対し前記送信制御フィールドテーブルに格納
された送信制御フィールドを使用してポーリングを行な
い、該ポーリングにより送信権を与えた端末からレスポ
ンスフレームを受信したときは、該レスポンスフレーム
中の受信制御フィールドと前記受信制御フィールドテー
ブル中の前記送信権を与えた端末に対応する受信制御フ
ィールドとを比較し、一致したときは次の端末のポーリ
ングを行ない、不一致のときはポーリング制御動作を中
断して前記中央処理装置へ割込むようにしたことを特徴
とするポーリング制御方式。[Scope of Claims] A polling control method in a system including a central processing unit, a communication control device connected to the central processing unit, and a plurality of terminals connected to the communication control device, comprising: a station address table and a transmission control field table that can be rewritten by the central processing unit;
A reception control field table is provided, and the communication control device polls the terminals registered in the station address table using the transmission control field stored in the transmission control field table, and acquires the transmission right by the polling. When a response frame is received from the terminal that gave the transmission right, the reception control field in the response frame is compared with the reception control field corresponding to the terminal that gave the transmission right in the reception control field table, and if they match, A polling control method characterized in that the next terminal is polled, and if there is a mismatch, the polling control operation is interrupted and an interrupt is made to the central processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60287209A JPS62145945A (en) | 1985-12-20 | 1985-12-20 | Polling control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP60287209A JPS62145945A (en) | 1985-12-20 | 1985-12-20 | Polling control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62145945A true JPS62145945A (en) | 1987-06-30 |
JPH0564899B2 JPH0564899B2 (en) | 1993-09-16 |
Family
ID=17714465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP60287209A Granted JPS62145945A (en) | 1985-12-20 | 1985-12-20 | Polling control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62145945A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01157144A (en) * | 1987-07-22 | 1989-06-20 | Mitsubishi Electric Corp | Station address designation method for slave station in data transmission |
JPH02190050A (en) * | 1989-01-19 | 1990-07-26 | Fujitsu Ltd | Polling control method using HDLC-NRM procedure |
US5155857A (en) * | 1987-05-29 | 1992-10-13 | Hitachi, Ltd. | Communication processing system in which communication by terminals is controlled according to a terminal management table |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5652949A (en) * | 1979-10-05 | 1981-05-12 | Hitachi Ltd | Interruption control method |
JPS5860346A (en) * | 1981-10-06 | 1983-04-09 | Fujitsu Ltd | Controlling system for terminal connection status |
JPS59207762A (en) * | 1983-05-10 | 1984-11-24 | Mitsubishi Electric Corp | Information transmitting device |
-
1985
- 1985-12-20 JP JP60287209A patent/JPS62145945A/en active Granted
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5652949A (en) * | 1979-10-05 | 1981-05-12 | Hitachi Ltd | Interruption control method |
JPS5860346A (en) * | 1981-10-06 | 1983-04-09 | Fujitsu Ltd | Controlling system for terminal connection status |
JPS59207762A (en) * | 1983-05-10 | 1984-11-24 | Mitsubishi Electric Corp | Information transmitting device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5155857A (en) * | 1987-05-29 | 1992-10-13 | Hitachi, Ltd. | Communication processing system in which communication by terminals is controlled according to a terminal management table |
JPH01157144A (en) * | 1987-07-22 | 1989-06-20 | Mitsubishi Electric Corp | Station address designation method for slave station in data transmission |
JPH0683225B2 (en) * | 1987-07-22 | 1994-10-19 | 三菱電機株式会社 | Data transmission method to slave station in FA controller |
JPH02190050A (en) * | 1989-01-19 | 1990-07-26 | Fujitsu Ltd | Polling control method using HDLC-NRM procedure |
Also Published As
Publication number | Publication date |
---|---|
JPH0564899B2 (en) | 1993-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2526695B2 (en) | Online information processing device | |
JPS62145945A (en) | Polling control system | |
JPH11262068A (en) | Access network system | |
JPH09261269A (en) | Data delivery method | |
JPH0473178B2 (en) | ||
JPS6113839A (en) | Method for controlling data transmission | |
JPH04281656A (en) | Retrial wait time setting device | |
JP2611797B2 (en) | Communication control device | |
JPS5972853A (en) | Facsimile exchange system | |
JPH0278343A (en) | Communication control system | |
JP2645134B2 (en) | Message transmission control method to restoration signal link | |
JPH0381852A (en) | Connection control system | |
JPH0226436A (en) | Data communication system | |
JPH04188925A (en) | Polling system | |
JPH03237542A (en) | Data communication equipment | |
JPH0681153U (en) | Data communication processor | |
JPS6352829B2 (en) | ||
JPH04129346A (en) | Communication system provided with duplicate address detection function | |
JPH01103046A (en) | Communication control system | |
JPS61210742A (en) | Data communication system | |
JPH01212141A (en) | Signal control system | |
JPH01162962A (en) | Session control system | |
JPS6387841A (en) | Terminal registration control system | |
JPS63278440A (en) | Multiple address communication system in loop data transmission system | |
JPS61242437A (en) | Call setting control system for pvc call between stations |