JPH07131467A - Polling resending device - Google Patents

Polling resending device

Info

Publication number
JPH07131467A
JPH07131467A JP27862693A JP27862693A JPH07131467A JP H07131467 A JPH07131467 A JP H07131467A JP 27862693 A JP27862693 A JP 27862693A JP 27862693 A JP27862693 A JP 27862693A JP H07131467 A JPH07131467 A JP H07131467A
Authority
JP
Japan
Prior art keywords
station
response data
polling
timer
data
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
JP27862693A
Other languages
Japanese (ja)
Inventor
Takemi Kato
武巳 加藤
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 JP27862693A priority Critical patent/JPH07131467A/en
Publication of JPH07131467A publication Critical patent/JPH07131467A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the polling resending device which can efficiently transfer data to other slave stations by shortening the time required for retransmission by polling. CONSTITUTION:This device includes one group of transmission lines, plural stations (6, 7, and 8) which are connected to the transmission lines and can freely send response data including messages indicating the length of data according to a supplied polling signal, and a main station (1) which are connected in multidrop form to the respective stations through the transmission lines, and calculates the time required to receive the response data based on the message of the received response data when sending the polling signal to the respective station and receiving the response data from each station, but resends the polling signal to the stations according to the calculated reception required time when not receiving the response data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はポーリング再送装置に係
り、詳細にはマルチドロップ形式で接続された主局と複
数の従属局との間で行われるデータ転送におけるポーリ
ング再送装置に係る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a polling retransmission device, and more particularly to a polling retransmission device for data transfer between a master station and a plurality of dependent stations connected in a multi-drop format.

【0002】[0002]

【従来の技術】図を参照して一般例を説明する。2. Description of the Related Art A general example will be described with reference to the drawings.

【0003】図11はマルチドロップ形式の形態を説明
するためのブロック構成図、図12は主局−従属局間の
データ転送方式における、一般的な再送時のデータ送受
信状態を示すポーリングシーケンス図である。
FIG. 11 is a block diagram for explaining the multi-drop format, and FIG. 12 is a polling sequence diagram showing a general data transmission / reception state at the time of retransmission in a data transfer system between a master station and a slave station. is there.

【0004】図11に示すように、主局10と複数の従
属局11〜13は、一組の伝送路にマルチドロップ式に
接続されていて、主局は各従属局に対してポーリング信
号(下り信号)を送信し、従属局からの応答データ(上
り信号)を受信する。
As shown in FIG. 11, the master station 10 and a plurality of slave stations 11 to 13 are connected to a set of transmission lines in a multi-drop manner, and the master station sends a polling signal () to each slave station. Downlink signal) is transmitted and response data (uplink signal) from the dependent station is received.

【0005】ここで主局は、各従属局からの応答が得ら
れない場合には、図12に示すように、データの下りか
ら上りに要する時間より十分長い時間の後に、応答が得
られなかった従属局に対して、ポーリング信号を再送す
る。なお、図12において、T0はタイマ満了を示し、
×は従属局からの応答が消滅してしまったことを示す。
Here, in the case where the main station cannot obtain a response from each subordinate station, as shown in FIG. 12, no response is obtained after a time sufficiently longer than the time required from the downlink to the uplink of the data. The polling signal is retransmitted to the dependent station. In FIG. 12, T0 indicates that the timer has expired,
× indicates that the response from the dependent station has disappeared.

【0006】[0006]

【発明が解決しようとする課題】一般的なポーリング再
送方式では、何らかの原因により、従属局からの応答が
得られなかった場合に、主局は前記従属局に対して再送
を行うが、タイマ満了値を初めに設定するときは、ポー
リングに対して応答データを受信するまでの時間に比べ
て、十分長い時間に設定しておく必要があるので、その
まま継続していると、再送を開始するのに要する時間が
長くなってしまうという問題点や、また適切に設定した
としても、従属局の数を増減してシステムを再構築した
際には、それまで設定していたタイマ満了値が新たなシ
ステムに対しては適切ではなくなるなどの問題点があ
り、本来のデータ転送に支障があった。
In the general polling retransmission method, when the response from the subordinate station is not obtained for some reason, the main station retransmits to the subordinate station, but the timer expires. When setting the value for the first time, it is necessary to set a sufficiently long time compared to the time until the response data is received in response to polling, so if it continues as it is, retransmission will start. However, when the system is rebuilt by increasing or decreasing the number of dependent stations, the timer expiration value that was set up to that point will not be updated. There was a problem that it was not appropriate for the system, which hindered the original data transfer.

【0007】本発明の目的は、ポーリングの再送に要す
る時間を短縮し他の従属局に対してデータ転送を効率的
に行い得るポーリング再送装置を提供することにある。
An object of the present invention is to provide a polling / retransmission device which can reduce the time required for polling retransmission and can efficiently perform data transfer to other subordinate stations.

【0008】[0008]

【課題を解決するための手段】1組の伝送路と、該1組
の伝送路に接続されており供給されるポーリング信号に
したがってデータの長さを示すメッセージを含む応答デ
ータを送信自在な複数の局と、1組の伝送路を介して各
局とマルチドロップ形式で接続されており、各局にポー
リング信号を送信し局から応答データを受信した場合に
は受信した応答データのメッセージに基づいて応答デー
タの受信所要時間を算出し局から応答データを受信しな
かった場合には算出した受信所要時間に応じてポーリン
グ信号を局に再送する主局とを含むことを特徴とする。
A plurality of transmission lines, which are connected to the transmission lines and are capable of transmitting response data including a message indicating the length of data according to a polling signal supplied thereto. Is connected to each station in a multi-drop format via a set of transmission lines, and when a polling signal is sent to each station and response data is received from the station, a response is sent based on the received response data message. It is characterized by including a main station for calculating a data reception required time and retransmitting a polling signal to the station according to the calculated reception required time when no response data is received from the station.

【0009】[0009]

【作用】1組の伝送路に接続された複数の局が供給され
るポーリング信号にしたがってデータの長さを示すメッ
セージを含む応答データを送信自在であり、主局が1組
の伝送路を介して各局とマルチドロップ形式で接続され
ており、各局にポーリング信号を送信し局から応答デー
タを受信した場合には受信した応答データのメッセージ
に基づいて応答データの受信所要時間を算出し局から応
答データを受信しなかった場合には算出した受信所要時
間に応じてポーリング信号を局に再送するので、ポーリ
ング信号の再送を開始するのに要する時間を短縮し得、
各局に対してデータ転送を効率的に行い得る。
According to the polling signal supplied from a plurality of stations connected to one set of transmission lines, response data including a message indicating the length of the data can be transmitted freely, and the main station can transmit via one set of transmission lines. When a polling signal is sent to each station and response data is received from the station, the response data reception time is calculated based on the received response data message and the station responds. If no data is received, the polling signal is retransmitted to the station according to the calculated reception time, so the time required to start retransmission of the polling signal can be shortened.
Data can be efficiently transferred to each station.

【0010】[0010]

【実施例】本発明のポーリング再送装置の実施例は、主
局と複数の従属局が一組の伝送路に、マルチドロップ式
に接続されているシステムで、主局が各従属局に対して
ポーリング信号(下り信号)を送信し、従属局からの応
答データ(上り信号)を受信するポーリング方式におい
て、従属局は主局からのポーリング信号に対する応答デ
ータの中に、応答データの長さを現すメッセージを付加
することにより、主局はすでに既知となっている主局と
従属局の伝送速度と、前記応答データの長さを表すメッ
セージとから、従属局からの応答データの受信所用時間
を算出することができ、タイマ満了の値を、前記受信所
用時間より若干大きめの値に設定することにより上記問
題点を解決し得るものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the polling retransmission device of the present invention is a system in which a master station and a plurality of slave stations are connected in a set of transmission lines in a multi-drop manner, and the master station operates for each slave station. In the polling method of transmitting a polling signal (downstream signal) and receiving response data (upstream signal) from the dependent station, the dependent station indicates the length of the response data in the response data to the polling signal from the master station. By adding the message, the master station calculates the reception time of the response data from the slave station from the transmission speeds of the master station and the slave stations that are already known and the message indicating the length of the response data. The above problem can be solved by setting the timer expiration value to a value slightly larger than the receiving station time.

【0011】すなわち、一組の伝送路に主局と、この主
局にマルチドロップ形式で接続された複数の従属局間
で、前記主局からポーリングを行い、それに対する応答
データを各従属局が返送するポーリング応答方式におい
て、前記従属局は前記主局への応答データの中にその応
答データ自信の長さを表すメッセージを付加することに
より、主局は、そのメッセージから前記応答データの受
信所用時間を算出することで、前記主局は前記従属局へ
のポーリング信号を送信し、前記従属局からの応答デー
タが受信できなかった場合や、従属局の数を増減した場
合などに、前記受信所用時間を、タイマ満了値に設定す
る手段を前記主局内に備えていることを特徴とするポー
リング再送装置である。
That is, between a main station and a plurality of subordinate stations connected to the main station in a multi-drop format on a set of transmission lines, polling is performed from the main station, and each subordinate station transmits response data to the polling. In the return polling response method, the dependent station adds a message indicating the length of the response data confidence to the response data to the master station, so that the master station uses the message for receiving the response data. By calculating the time, the master station transmits a polling signal to the dependent station, and when the response data from the dependent station cannot be received, or when the number of dependent stations is increased or decreased, the reception The polling retransmission apparatus is characterized in that the main station is provided with means for setting a required time to a timer expiration value.

【0012】以下本実施例を図を参照して詳細に説明す
る。
This embodiment will be described in detail below with reference to the drawings.

【0013】図1は本発明のポーリング再送装置の実施
例を示すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of a polling retransmission device of the present invention.

【0014】図1中、1は主局であり、入出力処理部
2、メモリ3、タイマ管理部4、通信制御部5から構成
される。主局1にはn個の従属局がパラレルに接続さ
れ、6は従属局1、7は従属局2、8は従属局nであ
る。
In FIG. 1, reference numeral 1 is a main station, which comprises an input / output processing unit 2, a memory 3, a timer management unit 4, and a communication control unit 5. N subordinate stations are connected in parallel to the main station 1, 6 is a subordinate station 1, 7 is a subordinate station 2, and 8 is a subordinate station n.

【0015】次に上述の各構成部分の動作を説明する。
従属局1、従属局2、…従属局nは、主局1からのポー
リング信号を受信したなら、すべての送信が終了するま
で送信権を得ることができる。つまり従属局1、従属局
2、…従属局nは、主局1からのポーリング信号を受信
するまでは主局1に対して送信を行なってはならない。
Next, the operation of each of the above components will be described.
When the subordinate station 1, the subordinate station 2, ... Dependent station n receives the polling signal from the master station 1, the subordinate station 1 can obtain the transmission right until all the transmissions are completed. That is, the dependent station 1, the dependent station 2, ... The dependent station n must not transmit to the master station 1 until it receives the polling signal from the master station 1.

【0016】通信制御部5は入出力処理部2を介して、
一つの従属局から正常な応答データを受信した場合、次
の従属局に対するポーリング処理へ移行する。また、通
信制御部5は、後述する図10に示すような従属局から
の応答データに付加されている、応答データ自身の長さ
を表すメッセージと、予め定められている伝送路の伝送
速度とから、応答データの受信所用時間を算出し、メモ
リ3にその値を記録する。また、通信制御部5は、タイ
マ満了値変更要求をタイマ管理部4へ送信する。入出力
処理部2は、通信制御部5から送られてくるポーリング
信号を、伝送路を介して従属局へ送信し、従属局からの
返送されてくる応答データを通信制御部5へ送信する。
また、入出力処理部2は、タイマ管理部4に対してタイ
マ起動要求やタイマ停止要求を送信する。メモリ3は通
信制御部5から送信される従属局からの応答データの受
信所用時間を記録しておき、タイマ管理部4がタイマ満
了値として参照する。
The communication control unit 5 is connected via the input / output processing unit 2 to
When normal response data is received from one subordinate station, the process shifts to polling processing for the next subordinate station. The communication control unit 5 also adds a message indicating the length of the response data itself, which is added to the response data from the dependent station as shown in FIG. 10 described later, and the transmission rate of the predetermined transmission line. Then, the time required for receiving the response data is calculated, and the value is recorded in the memory 3. The communication control unit 5 also transmits a timer expiration value change request to the timer management unit 4. The input / output processing unit 2 transmits the polling signal sent from the communication control unit 5 to the subordinate station via the transmission path, and the response data returned from the subordinate station to the communication control unit 5.
Further, the input / output processing unit 2 transmits a timer start request and a timer stop request to the timer management unit 4. The memory 3 records the reception time of the response data from the subordinate station transmitted from the communication control unit 5, and the timer management unit 4 refers to it as the timer expiration value.

【0017】タイマ管理部4は入出力処理部2からタイ
マ起動要求やタイマ停止要求を受信し、またタイマ起動
要求を受信した後、規定時間内に入出力処理部2からタ
イマ停止要求を受信しなければ、タイマ満了通知を通信
制御部5に対して送信する。さらに通信制御部5からタ
イマ満了値変更要求を受信したら、従属局に対するタイ
マ満了値を変更する。
The timer management unit 4 receives the timer start request and the timer stop request from the input / output processing unit 2, and after receiving the timer start request, receives the timer stop request from the input / output processing unit 2 within a specified time. If not, the timer expiration notification is transmitted to the communication control unit 5. Further, when the timer expiration value change request is received from the communication control unit 5, the timer expiration value for the dependent station is changed.

【0018】次に図1に示す入出力処理部2、タイマ管
理部4および通信制御部5における処理を順次フローチ
ャートを用いて説明する。
Next, the processing in the input / output processing unit 2, the timer management unit 4 and the communication control unit 5 shown in FIG.

【0019】図2は通信制御部5の状態遷移を示す図、
図3は通信制御部5の第1状態での処理を表すフローチ
ャート、図4は通信制御部5の第2状態での処理を表す
フローチャート、図5は通信制御部5の第3状態での処
理を表すフローチャート、図6は通信制御部5の第4状
態での処理を表すフローチャートである。
FIG. 2 is a diagram showing the state transition of the communication control unit 5,
3 is a flow chart showing the processing in the first state of the communication control unit 5, FIG. 4 is a flow chart showing the processing in the second state of the communication control unit 5, and FIG. 5 is a processing in the third state of the communication control unit 5. FIG. 6 is a flowchart showing the process of the communication control unit 5 in the fourth state.

【0020】図2に示すように、通信制御部5に「アイ
ドル状態α」、「タイマ満了値設定状態β」、「データ
送受信状態γ」、そした「タイマ回復状態δ」の4つの
状態を設けることにする。
As shown in FIG. 2, the communication control unit 5 is provided with four states of "idle state α", "timer expiration value setting state β", "data transmission / reception state γ", and "timer recovery state δ". I will provide it.

【0021】各状態の遷移は例として、α状態からβ状
態へ遷移する際に、R/Tなる条件があった場合には
「α状態においてRなる信号を受信したら、Tなる信号
を送信してβ状態へ遷移する」ことを示している。
As an example of the transition of each state, when there is a condition of R / T at the time of transition from the α state to the β state, “When the signal of R is received in the α state, the signal of T is transmitted. Transition to the β state. ”

【0022】以下、各状態での処理を図を参照して説明
する。
The processing in each state will be described below with reference to the drawings.

【0023】図3に示す「アイドル状態α」とは、何も
しない状態を表し、通信制御部5は上位モジュールから
ポーリング信号送信要求を受け(ステップ3−1)、従
属局に対してポーリング信号を送信し(ステップ3−
2)、タイマ満了値を初期値設定しなおして後 (ステ
ップ3−3)、タイマ満了値を新規に設定するため、
「タイマ満了値設定状態β」へと遷移する(ステップ3
−4、図2のA参照)。
The "idle state α" shown in FIG. 3 represents a state in which nothing is done, and the communication control unit 5 receives a polling signal transmission request from the upper module (step 3-1) and sends a polling signal to the subordinate station. (Step 3-
2) After resetting the timer expiration value to the initial value (step 3-3), the timer expiration value is newly set.
Transition to "timer expiration value setting state β" (step 3)
-4, see A in FIG. 2).

【0024】図4に示す「タイマ満了値設定状態β」
は、従属局に対してのタイマ満了値を、新規にもしくは
再度、設定する状態を示し、タイマ満了値は初期値にて
処理する。通信制御部5は従属局から受信データ待ちの
状態において(ステップ4−1)、入出力処理部2を介
して従属局からの応答データを受信した場合(ステップ
4−2)、前記応答データの中にある、応答データ自身
の長さを表すメッセージを参照し、伝送路の伝送速度と
前記応答データの長さから、受信に要する時間を算出し
(ステップ4−4)、前記時間を従属局ごとにメモリ3
に記録し(ステップ4−5)、入出力処理部2を介して
ポーリング信号を従属局へ送信する(ステップ4−
6)。また詳細は後述するが、ステップ4−5において
前回記録した時間と比較し、時間が長い方を記録するよ
うにする。また通信制御部5は、従属局に対する数周の
ポーリングが終わったか否かを判断し(ステップ4−
7)、終わったと判断した場合には各従属局に対する受
信所用時間の中で最大値を抽出し、その値をタイマ満了
値に設定し、タイマ管理部4へ、タイマ満了値の変更要
求を送信した後(ステップ4−9)、「データ送受信状
態γ」へ遷移する(ステップ4−10、図2の遷移B参
照)。
"Timer expiration value setting state β" shown in FIG.
Indicates a state in which a timer expiration value for a dependent station is newly or again set, and the timer expiration value is processed with an initial value. When the communication control unit 5 receives the response data from the dependent station via the input / output processing unit 2 (Step 4-2) while waiting for the received data from the dependent station (Step 4-1), the response data By referring to the message in the message indicating the length of the response data itself, the time required for reception is calculated from the transmission rate of the transmission line and the length of the response data (step 4-4), and the time is set as the dependent station. Memory for each 3
(Step 4-5), and the polling signal is transmitted to the dependent station via the input / output processing unit 2 (step 4-).
6). Although details will be described later, in step 4-5, the longer time is compared with the previously recorded time, and the longer time is recorded. Further, the communication control unit 5 determines whether polling of the dependent station for several rounds has been completed (step 4-
7) If it is determined that the processing has ended, the maximum value is extracted from the reception time for each subordinate station, that value is set as the timer expiration value, and a request to change the timer expiration value is sent to the timer management unit 4. After that (step 4-9), the state transits to the “data transmission / reception state γ” (step 4-10, see transition B in FIG. 2).

【0025】またステップ4−1において、受信データ
待ちではないときはタイマ管理部4からタイマ満了通知
を示す信号を受信して(ステップ4−3)、応答データ
が得られなかった従属局に対して再送を行う(ステップ
4−8)。
In step 4-1, when the received data is not awaited, a signal indicating a timer expiration notification is received from the timer management section 4 (step 4-3), and the dependent stations for which no response data is obtained are received. And retransmit (step 4-8).

【0026】図5に示す「データ送受信状態γ」は、従
属局に対しデータを送受信している状態を表し、通信制
御部5は従属局から受信データ待ちの状態の場合は(ス
テップ5−1)、入出力処理部2を介して従属局からの
応答データを受信して(ステップ5−2)、入出力処理
部2を介して、次の従属局へポーリング信号を送信する
(ステップ5−3)。受信データ待ちの状態ではない場
合にはタイマ管理部4からタイマ満了通知を示す信号を
受信して(ステップ5−4)、応答データが得られなか
った従属局に対して再送を行い(ステップ5−5)、
「タイマ回復状態δ」へ遷移する(ステップ5−6、図
2の遷移C参照)。
"Data transmission / reception state γ" shown in FIG. 5 represents a state in which data is transmitted / received to / from the subordinate station, and when the communication control unit 5 is in a state of waiting for reception data from the subordinate station (step 5-1). ), The response data from the subordinate station is received via the input / output processing unit 2 (step 5-2), and the polling signal is transmitted to the next subordinate station via the input / output processing unit 2 (step 5-). 3). If not waiting for received data, a signal indicating a timer expiration notification is received from the timer management unit 4 (step 5-4) and retransmitted to the dependent station for which response data was not obtained (step 5). -5),
Transition to "timer recovery state δ" (step 5-6, see transition C in FIG. 2).

【0027】図6に示す「タイマ回復状態δ」は、応答
が得られなかった従属局へ再送を繰り返す状態を表し、
通信制御部5は従属局から受信データ待ちの状態におい
て(ステップ6−1)入出力処理部2を介して従属局か
らの応答データを受信した場合(ステップ6−2)、入
出力処理部2を介して従属局へポーリング信号を送信し
(ステップ6−3)、「データ送受信状態γ」へ遷移す
る(ステップ6−4、図2の遷移D参照)。また受信デ
ータ待ちの状態ではない場合にはタイマ管理部4からタ
イマ満了通知を示す信号を受信し(ステップ6−5)、
通信制御部5は再現性を確かめるため、規定回数再送を
行ったか否かを判断し(ステップ6−6)、規定回数行
った場合には「メッセージが長いためタイマ満了してし
まった」と判断し、タイマ満了値を再度設定するため
に、タイマ満了値を初期値に設定し直した後(ステップ
6−8)、「タイマ満了値設定状態β」へ遷移する(ス
テップ6−9、図2の遷移E参照)。また規定回数行っ
ていないのであれば応答データが得られなかった従属局
に対して再送を行う(ステップ6−7)。
The "timer recovery state δ" shown in FIG. 6 represents a state in which retransmission is repeated to a dependent station for which no response has been obtained,
When the communication control unit 5 receives the response data from the dependent station via the input / output processing unit 2 (step 6-1) while waiting for the received data from the dependent station (step 6-2), the input / output processing unit 2 A polling signal is transmitted to the subordinate station via (step 6-3), and the state transits to "data transmission / reception state γ" (step 6-4, see transition D in FIG. 2). If the received data is not in a waiting state, a signal indicating a timer expiration notification is received from the timer management unit 4 (step 6-5),
In order to confirm the reproducibility, the communication control unit 5 judges whether or not the specified number of times of retransmission has been performed (step 6-6), and when the specified number of times has been executed, it is judged that "the timer has expired because of a long message". Then, in order to set the timer expiration value again, after resetting the timer expiration value to the initial value (step 6-8), the state transits to "timer expiration value setting state β" (step 6-9, FIG. 2). See transition E). If it has not been performed the specified number of times, it is retransmitted to the dependent station for which response data was not obtained (step 6-7).

【0028】次に通信制御部5がメモリ3内にある各従
属局に対するタイマ満了値を書き換える手順を図7を用
いて説明する。
Next, the procedure by which the communication control unit 5 rewrites the timer expiration value for each subordinate station in the memory 3 will be described with reference to FIG.

【0029】図7はメモリにタイマ満了値を記録する手
順を示す図である。
FIG. 7 is a diagram showing a procedure for recording the timer expiration value in the memory.

【0030】通信制御部5は前記した「タイマ満了値設
定状態β」で、メモリ3内にある各従属局のタイマ満了
値が記録されているテーブルを参照し、前回記録した値
と、今回新たに計算して得られた値とを比較する。図7
では例として従属局1と従属局2の場合を示していて、
従属局1により得た値は前回記録した値と比較して小さ
いので、テーブルは書き換えていない。逆に従属局2の
場合は、得た値の方が大きいのでテーブルを書き換えて
いる。この例の場合書き換えた値が受信所用時間の中で
最大値を表しているのでその値をタイマ満了値に設定し
ている。メッセージが長いことによりタイマを満了する
場合には、このようにタイマ満了値を変更することによ
り対応が可能となる。
In the "timer expiration value setting state β" described above, the communication control unit 5 refers to the table in the memory 3 in which the timer expiration values of the subordinate stations are recorded, and compares the previously recorded value with the newly recorded value. Compare with the value obtained by calculation. Figure 7
Then, as an example, the case of dependent station 1 and dependent station 2 is shown.
Since the value obtained by the dependent station 1 is smaller than the value recorded last time, the table is not rewritten. On the contrary, in the case of the dependent station 2, since the obtained value is larger, the table is rewritten. In the case of this example, the rewritten value represents the maximum value in the receiving time, so that value is set as the timer expiration value. When the timer expires due to a long message, it is possible to deal with it by changing the timer expiration value in this way.

【0031】次に図1に示す入出力処理部2の処理を図
8のフローチャートを用いて説明する。
Next, the processing of the input / output processing unit 2 shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0032】図8は図1における入出力処理部2の処理
を示すフローチャートである。
FIG. 8 is a flow chart showing the processing of the input / output processing unit 2 in FIG.

【0033】入出力処理部2は、従属局からメッセージ
受信待ちの状態において(ステップ8−1)、通信制御
部5から従属局へポーリング信号送信の旨を受信した場
合(ステップ8−2)、伝送路を介して従属局へポーリ
ング信号を送信し(ステップ8−3)、その後タイマ管
理部4へタイマ起動要求を示す信号を発生する(ステッ
プ8−4)。またステップ8−1において、伝送路を介
して従属局から応答データを受信した場合は(ステップ
8−5)、タイマ停止要求を示す信号をタイマ管理部4
へ送信し(ステップ8−6)、受信した応答データを通
信制御部5へ送信する(ステップ8−7)。
When the input / output processing unit 2 receives a polling signal transmission from the communication control unit 5 to the subordinate station while waiting for a message from the subordinate station (step 8-1), A polling signal is transmitted to the subordinate station via the transmission line (step 8-3), and then a signal indicating a timer activation request is generated to the timer management unit 4 (step 8-4). In step 8-1, when the response data is received from the dependent station via the transmission line (step 8-5), the timer management unit 4 sends a signal indicating the timer stop request.
To the communication control unit 5 (step 8-7).

【0034】次に図1に示すタイマ管理部4の処理を図
9のフローチャートを用いて説明する。
Next, the processing of the timer management unit 4 shown in FIG. 1 will be described with reference to the flowchart of FIG.

【0035】図9は図1におけるタイマ管理部4の処理
を示すフローチャートである。
FIG. 9 is a flowchart showing the processing of the timer management unit 4 in FIG.

【0036】タイマ管理部4は、入出力処理部2から受
信データ待ちの状態において(ステップ9−1)、入出
力処理部2からタイマ起動要求を受信した場合(ステッ
プ9−2)、タイマを起動させる(ステップ9−3)。
またタイマ管理部4は、タイマ稼働中に(ステップ9−
4)、予め規定した時間内に入出力処理部2からタイマ
停止要求を受信した場合には、タイマを停止させる(ス
テップ9−5)。またステップ9−4において予め規定
した時間内に入出力処理部2からタイマ停止要求を受信
しない場合は、タイマ満了通知を通信制御部5へ送信す
る(ステップ9−8)。また、ステップ9−1におい
て、通信制御部5からタイマ満了変更要求を示す信号を
受信した場合は(ステップ9−6)、図7に示すように
メモリ3を参照し、その時間にしたがって最も大きい値
を従属局に対するタイマ満了値として変更する(ステッ
プ9−7)。
When the timer management section 4 waits for received data from the input / output processing section 2 (step 9-1) and receives a timer start request from the input / output processing section 2 (step 9-2), it starts the timer. It is activated (step 9-3).
In addition, the timer management unit 4 (step 9-
4) When the timer stop request is received from the input / output processing unit 2 within the predetermined time, the timer is stopped (step 9-5). If the timer stop request is not received from the input / output processing unit 2 within the predetermined time in Step 9-4, the timer expiration notification is transmitted to the communication control unit 5 (Step 9-8). Further, in step 9-1, when the signal indicating the timer expiration change request is received from the communication control unit 5 (step 9-6), the memory 3 is referred to as shown in FIG. The value is changed as the timer expiration value for the dependent station (step 9-7).

【0037】図10はデータのメッセージフォアマット
の1例を示す図である。
FIG. 10 is a diagram showing an example of a data message format.

【0038】図10を参照して主局−従属局間でやりと
りするデータのメッセージフォアマットについて説明す
る。
The message format of data exchanged between the master station and the slave stations will be described with reference to FIG.

【0039】各メッセージの先頭には、メッセージの種
別を示す「メッセージ識別子」が付加され、さらに応答
データの場合にはメッセージの長さを表す「lengt
h」が「メッセージ識別子」の後に、さらにその後には
データが付加されている。通信制御部5は前記「len
gth」を参照することにより、応答データの長さを認
識することが可能となる。
A "message identifier" indicating the type of message is added to the beginning of each message, and in the case of response data, "length" indicating the length of the message.
Data is added after “h” after the “message identifier”. The communication control unit 5 uses the "len"
It is possible to recognize the length of the response data by referring to “gth”.

【0040】上述のように本実施例によれば、タイマ満
了の値を、従属局からの応答データの長さに応じて初期
値より小さくすることにより、何らかの原因で万が一従
属局からの応答データが消失して際でも、ポーリングの
効率を低下させることなく、他の従属局に対しても効率
的にデータ転送を行うことができる。
As described above, according to the present embodiment, the timer expiration value is made smaller than the initial value in accordance with the length of the response data from the subordinate station, so that for some reason the response data from the subordinate station should occur. Even when is lost, data can be efficiently transferred to other dependent stations without lowering polling efficiency.

【0041】[0041]

【発明の効果】1組の伝送路に接続された複数の局が供
給されるポーリング信号にしたがってデータの長さを示
すメッセージを含む応答データを送信自在であり、主局
が1組の伝送路を介して各局とマルチドロップ形式で接
続されており、各局にポーリング信号を送信し局から応
答データを受信した場合には受信した応答データのメッ
セージに基づいて応答データの受信所要時間を算出し局
から応答データを受信しなかった場合には算出した受信
所要時間に応じてポーリング信号を局に再送するので、
ポーリング信号の再送を開始するのに要する時間を短縮
し得、各局に対してデータ転送を効率的に行い得る。
EFFECTS OF THE INVENTION Response data including a message indicating the length of data can be freely transmitted in accordance with a polling signal supplied from a plurality of stations connected to one set of transmission lines, and a main station can form one set of transmission lines. When the station is connected to each station in a multi-drop format via a polling signal and the response data is received from the station, the required reception time of the response data is calculated based on the received response data message. If no response data is received from, the polling signal is retransmitted to the station according to the calculated time required for reception.
The time required to start retransmission of the polling signal can be shortened, and data transfer can be efficiently performed to each station.

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

【図1】本発明のポーリング再送装置の実施例を示すブ
ロック構成図である。
FIG. 1 is a block configuration diagram showing an embodiment of a polling retransmission device of the present invention.

【図2】通信制御部の状態遷移を示す図である。FIG. 2 is a diagram showing a state transition of a communication control unit.

【図3】通信制御部の第1状態での処理を表すフローチ
ャートある。
FIG. 3 is a flowchart showing processing in a first state of a communication control unit.

【図4】通信制御部の第2状態での処理を表すフローチ
ャートである。
FIG. 4 is a flowchart showing processing in a second state of the communication control unit.

【図5】通信制御部の第3状態での処理を表すフローチ
ャートである。
FIG. 5 is a flowchart showing processing in a third state of the communication control unit.

【図6】通信制御部の第4状態での処理を表すフローチ
ャートである。
FIG. 6 is a flowchart showing processing in a fourth state of the communication control unit.

【図7】メモリにタイマ満了値を記録する手順を示す図
である。
FIG. 7 is a diagram showing a procedure for recording a timer expiration value in a memory.

【図8】入出力処理部の処理を示すフローチャートであ
る。
FIG. 8 is a flowchart showing processing of an input / output processing unit.

【図9】タイマ管理部の処理を示すフローチャートであ
る。
FIG. 9 is a flowchart showing processing of a timer management unit.

【図10】メッセージフォアマットの1例を示す図であ
る。
FIG. 10 is a diagram showing an example of a message format.

【図11】マルチドロップ形式の形態を説明するための
ブロック構成図である。
FIG. 11 is a block diagram illustrating a multi-drop format.

【図12】主局−従属局間のデータ転送方式における、
一般的な再送時のデータ送受信状態を示すポーリングシ
ーケンス図である。
FIG. 12 shows a data transfer method between a master station and a slave station,
FIG. 7 is a polling sequence diagram showing a data transmission / reception state during general retransmission.

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

1 主局 2 入出力処理部 3 メモリ 4 タイマ管理部 5 通信制御部 6、7、8 従属局 1 main station 2 input / output processing unit 3 memory 4 timer management unit 5 communication control unit 6, 7, 8 dependent station

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1組の伝送路と、該1組の伝送路に接続
されており供給されるポーリング信号にしたがってデー
タの長さを示すメッセージを含む応答データを送信自在
な複数の局と、前記1組の伝送路を介して各局とマルチ
ドロップ形式で接続されており、各局にポーリング信号
を送信し局から応答データを受信した場合には受信した
応答データのメッセージに基づいて応答データの受信所
要時間を算出し局から応答データを受信しなかった場合
には算出した受信所要時間に応じてポーリング信号を局
に再送する主局とを含むことを特徴とするポーリング再
送装置。
1. A set of transmission lines, and a plurality of stations connected to the set of transmission lines and capable of transmitting response data including a message indicating a length of data according to a polling signal supplied thereto. It is connected to each station in the multi-drop format via the one set of transmission lines, and when the polling signal is transmitted to each station and the response data is received from the station, the response data is received based on the received response data message. A polling retransmission device comprising: a main station that calculates a required time and, when no response data is received from the station, retransmits a polling signal to the station according to the calculated required reception time.
JP27862693A 1993-11-08 1993-11-08 Polling resending device Pending JPH07131467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27862693A JPH07131467A (en) 1993-11-08 1993-11-08 Polling resending device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27862693A JPH07131467A (en) 1993-11-08 1993-11-08 Polling resending device

Publications (1)

Publication Number Publication Date
JPH07131467A true JPH07131467A (en) 1995-05-19

Family

ID=17599905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27862693A Pending JPH07131467A (en) 1993-11-08 1993-11-08 Polling resending device

Country Status (1)

Country Link
JP (1) JPH07131467A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115743A (en) * 2011-11-30 2013-06-10 Tdk Corp Data communication system and dc power distribution system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115743A (en) * 2011-11-30 2013-06-10 Tdk Corp Data communication system and dc power distribution system

Similar Documents

Publication Publication Date Title
US4896151A (en) Simultaneous communication method and system
US9014206B2 (en) Method and device for improving the transmission efficiency in a communicaton system with a layerd protocol stack
JP2925678B2 (en) Data communication method and data communication system
EP2107713B1 (en) Method and system for reliable broadcast or multicast communication in wireless networks
JP3115451B2 (en) Communication network
JPH07131467A (en) Polling resending device
JPH1132074A (en) System and method for transmitting data
JPH11298477A (en) Transmission control method and transmission controller
JP2581180B2 (en) Time information transmission method
JPH04263545A (en) Data communication equipment
JPH09233153A (en) Network system
JP2001326663A (en) Flow control system by token passing and its method
JP2865463B2 (en) Data transmission method
JP2590719B2 (en) Satellite communication system
JP3175202B2 (en) Method of storing received data in communication control circuit
JPH09130382A (en) Polling communication method
JP3205823B2 (en) Monitoring device for devices connected by communication line
JP3267348B2 (en) Simultaneous download method for data communication system
JPS5963831A (en) Data transmission system
JPH0547143B2 (en)
JPS60254947A (en) Communication controller
JPS6342897B2 (en)
JPH11112536A (en) Vehicle multiplex communication equipment
JPH0799498A (en) Line connection device for data transmission
JPS63257349A (en) Communication controller for network