JP2590635B2 - Data transmission processing method - Google Patents

Data transmission processing method

Info

Publication number
JP2590635B2
JP2590635B2 JP3201029A JP20102991A JP2590635B2 JP 2590635 B2 JP2590635 B2 JP 2590635B2 JP 3201029 A JP3201029 A JP 3201029A JP 20102991 A JP20102991 A JP 20102991A JP 2590635 B2 JP2590635 B2 JP 2590635B2
Authority
JP
Japan
Prior art keywords
data
transmission
polling
assembling
driver
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.)
Expired - Lifetime
Application number
JP3201029A
Other languages
Japanese (ja)
Other versions
JPH0548620A (en
Inventor
龍三 藤田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3201029A priority Critical patent/JP2590635B2/en
Publication of JPH0548620A publication Critical patent/JPH0548620A/en
Application granted granted Critical
Publication of JP2590635B2 publication Critical patent/JP2590635B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央制御方式・分岐方
式で接続されている二次局が通信回線を介して一次局に
HDLC.NRM手順でデータを送出する際のデータ送
信処理方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to a secondary station connected by a central control system / branch system to a primary station via a communication line. The present invention relates to a data transmission processing method when transmitting data in the NRM procedure.

【0002】[0002]

【従来の技術】ディジタル通信網等では、ネットワーク
を構成する複数の伝送装置の障害を迅速に検出して復旧
処置を講ずる必要があり、中央制御局が分散配置された
被監視装置からポーリングにより障害データ等を一定周
期で収集している。
2. Description of the Related Art In a digital communication network or the like, it is necessary to quickly detect a failure of a plurality of transmission devices constituting the network and take a recovery procedure. Data is collected at regular intervals.

【0003】図3は、本発明が適用される中央制御・分
岐方式で接続されているデータ通信システムの構成図で
ある。 この方式で接続されているシステムのデータの
受け渡しは、中央制御局(ホストコンピュータを有する
一次局;以下一次局と称す)Aが、接続されている端末
(以下二次局と称す)B1〜B3に対して自己の都合で
きめた時刻にデータ送信要求RRを出し二次局はこの要
求に応答してデータを送信する。
FIG. 3 is a configuration diagram of a data communication system connected by a central control / branch method to which the present invention is applied. The central control station (primary station having a host computer; hereinafter referred to as a primary station) A transmits and receives data to and from the connected terminals (hereinafter referred to as secondary stations) B1 to B3. Sends a data transmission request RR at a time determined by itself, and the secondary station transmits data in response to this request.

【0004】このとき、一次局と二次局間のデータ送信
はHDLC・NRM手順で行われる。即ち、例えば二次
局B2の端末は送信したいデータを送信できる形に組立
てて送信準備をしておき、一次局からの送信要求を受け
取ると送信する。
At this time, data transmission between the primary station and the secondary station is performed by the HDLC / NRM procedure. That is, for example, the terminal of the secondary station B2 assembles in a form capable of transmitting data to be transmitted, prepares for transmission, and transmits when receiving a transmission request from the primary station.

【0005】図4はHLDC・NRM手順における従来
の二次局のデータ送信処理方法である。図4において、
図示せぬデータ発生部からランダムなタイミングで発生
するデータは、データ入力処理1にて受信されて受信バ
ッファ11に格納され、受信バッファ11は常に最新のデー
タを保持する。送受信完了通知処理4はドライバ5を常
時監視しており、ドライバ5が一次局からのデータ送信
要求を受信したことを検出すると、データ送信処理3に
通知する。すると、データ送信処理3は、送信バッファ
31に準備してある組立済みのデータをドライバ5を介し
て通信回線に送出する。データの送信が終了すると送受
信完了通知処理4はデータ組立処理2へ送信完了を通知
するので、その時点での最新データを受信バッファ11か
ら取り出して所定の順番に配列する等で次回に送出する
送信データの組立を行い、データ送信処理3に送信依頼
し、送信バッファ31に組立済データ格納する。
FIG. 4 shows a conventional secondary station data transmission processing method in the HLDC / NRM procedure. In FIG.
Data generated at random timing from a data generator (not shown) is received in the data input processing 1 and stored in the reception buffer 11, and the reception buffer 11 always holds the latest data. The transmission / reception completion notification process 4 constantly monitors the driver 5 and, when detecting that the driver 5 has received a data transmission request from the primary station, notifies the data transmission process 3. Then, the data transmission process 3 includes a transmission buffer
The assembled data prepared in 31 is transmitted to the communication line via the driver 5. When the data transmission is completed, the transmission / reception completion notification process 4 notifies the data assembling process 2 of the completion of the transmission. Therefore, the latest data at that time is taken out from the reception buffer 11 and arranged in a predetermined order. The data is assembled, a transmission request is sent to the data transmission process 3, and the assembled data is stored in the transmission buffer 31.

【0006】次のポーリング周期にドライバ5が一次局
からの送信要求を受信すると、ドライバは送信バッファ
31に準備してある組立済データを通信回線に送出する。
When the driver 5 receives a transmission request from the primary station in the next polling cycle, the driver 5
The assembled data prepared in 31 is transmitted to the communication line.

【0007】[0007]

【発明が解決しようとする課題】伝送装置監視システム
等では、発生した最新のデータを一次局に送信すること
が望ましい。一次局は通常は一定のポーリング周期で二
次局に対してポーリングを行う。ところが上記従来の方
法では、今回の送信要求に対して前回送信完了時に組み
立てたデータを送信することになり、ポーリング周期が
長いとその分だけ古いデータが送信さるという問題があ
る。
In a transmission device monitoring system or the like, it is desirable to transmit the latest data generated to the primary station. The primary station usually polls the secondary station at a fixed polling cycle. However, in the above-described conventional method, the data assembled at the time of the previous transmission completion is transmitted in response to the current transmission request, and there is a problem that if the polling cycle is long, old data is transmitted correspondingly.

【0008】また、データ組立を行う時間間隔を予め固
定しておき、一次局からの送信要求とは無関係にデータ
を組立て送信バッファに準備しておく方式もあるが、こ
のデータ組立周期に対してポーリング周期が短いと次回
送信データを組立完了する以前に送信要求がきてしま
い、送信データが欠損するという問題もある。
There is also a method in which a time interval for assembling data is fixed in advance, and data is assembled and prepared in a transmission buffer irrespective of a transmission request from a primary station. If the polling cycle is short, there is a problem in that a transmission request is issued before the next transmission data is assembled, and the transmission data is lost.

【0009】このようなことが起きると、監視制御シス
テムでは中央制御局がポーリングで収集したデータの信
頼性が低下するという問題が生じる。本願発明は上記問
題に鑑み創出されたもので、一次局からの送信要求に対
して、ポーリング間隔が長くても二次局から最新のデー
タを送出できるようにすることを目的とする。
When such a situation occurs, a problem occurs in the supervisory control system in that the reliability of data collected by the central control station by polling is reduced. The present invention has been made in view of the above problems, and has as its object to enable the secondary station to transmit the latest data to a transmission request from the primary station even if the polling interval is long.

【0010】[0010]

【課題を解決するための手段】図1は本発明のデータ送
信処理方法の構成図である。上記課題は図1に示すよう
に、一次局からのポーリングに応答してドライバ6を介
して通信回線にデータを送出する二次局におけるデータ
送信処理方法であって、入力するデータを入力バッファ
11に上書きして最新データを保持させるデータ入力処理
1と、該入力バッファ11のデータを用いて送信データを
組み立てるデータ組立処理2と、組立済みデータを送信
バッファ31に格納しドライバ6を介して送信するデータ
送信処理3と、前記ドライバ6における送受信完了を検
出する送受信完了通知処理4と、タイマ監視処理5とを
有し、該タイマ監視処理5は送受信完了通知処理4が検
出する一次局からの送信要求時刻をもとにポーリング間
隔を求め、ポーリングの直前にデータ組立が行われるよ
うなデータ組立タイミングを算出し、該タイミングでデ
ータ組立処理2にデータ組立を依頼することを特徴とす
る本発明のデータ送信処理方法により解決される。
FIG. 1 is a block diagram of a data transmission processing method according to the present invention. As shown in FIG. 1, the above-mentioned problem is a data transmission processing method in a secondary station for transmitting data to a communication line via a driver 6 in response to polling from a primary station.
A data input process 1 for overwriting the latest data 11 and retaining the latest data, a data assembling process 2 for assembling transmission data using the data in the input buffer 11, and storing the assembled data in the transmission buffer 31 via the driver 6. It includes a data transmission process 3 for transmission, a transmission / reception completion notification process 4 for detecting the completion of transmission / reception in the driver 6, and a timer monitoring process 5, wherein the timer monitoring process 5 is transmitted from the primary station detected by the transmission / reception completion notification process 4. A polling interval is calculated based on the transmission request time, and a data assembling timing at which data assembling is performed immediately before the polling is calculated, and the data assembling process 2 is requested to perform data assembling at the timing. The problem is solved by the data transmission processing method of the invention.

【0011】[0011]

【作用】タイマ監視処理が、ポーリング間隔の監視を行
いデータの組立のタイミングをポーリング間隔より算出
するので、一次局からのポーリング間隔が変更されて
も、常に最新のデータが送信される。
The timer monitoring process monitors the polling interval and calculates the data assembling timing from the polling interval. Therefore, even if the polling interval from the primary station is changed, the latest data is always transmitted.

【0012】[0012]

【実施例】以下添付図により本発明の実施例を説明す
る。図1は本発明のデータ送信処理方法の構成図、図2
は本発明におけるデータ送信状態を示す図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a block diagram of a data transmission processing method according to the present invention.
FIG. 3 is a diagram showing a data transmission state in the present invention.

【0013】図1において、7は任意なタイミングに発
生データが変化するデータ発生部、1はデータ発生部か
らのデータを受信し、受信バッファ11に上書きすること
によって書込んで常に最新のデータを保持させ、要求に
よって受信バッファ11からデータを送出するデータ入力
処理、2はデータ入力処理1からのデータを受け取って
通信回線へ送信可能な形に組み立てるデータ組立処理、
3はデータ組立処理2から組立済データを受け取って送
信バッファ31に蓄積しておき、送受信完了通知処理4か
らの送信要求受信通知によりこの組立データをドライバ
6へ送出するデータ送信処理、4はドライバ6の送受信
完了を検出して各部へ通知する送受信完了通知処理であ
る。5はタイマ監視処理で、送受信完了通知処理4から
の送受信完了通知を受け取る時間間隔を計測して、一次
局からのポーリング周期を算出する。そして、今回の受
信完了処理通知時刻と算出さたポーリング周期から次回
の送信要求時刻を求め、この時刻よりデータ組立に必要
な時間だけ前の時点でデータ組立処理2へ次回データの
組立処理を依頼する。
In FIG. 1, reference numeral 7 denotes a data generating unit in which generated data changes at an arbitrary timing; 1 denotes data received from the data generating unit, which is written by overwriting a reception buffer 11 so that the latest data is always written; A data input process for storing data from the reception buffer 11 upon request and a data assembling process for receiving the data from the data input process 1 and assembling the data into a form that can be transmitted to a communication line;
A data transmission process 3 receives the assembled data from the data assembling process 2 and accumulates the data in the transmission buffer 31, and sends the assembled data to the driver 6 in response to a transmission request reception notification from the transmission / reception completion notification process 4. 6 is a transmission / reception completion notification process of detecting completion of transmission / reception and notifying each unit. Reference numeral 5 denotes a timer monitoring process which measures a time interval for receiving a transmission / reception completion notification from the transmission / reception completion notification process 4 and calculates a polling cycle from the primary station. Then, the next transmission request time is obtained from the current reception completion processing notification time and the calculated polling cycle, and a request for data assembling processing 2 is made to the data assembling processing 2 at a time before the time required for data assembling. I do.

【0014】このポーリング周期の算出は、一次局から
の最近の例えば3回のポーリング間隔を平均することに
よって、次回のポーリング時刻を推定する。一次局から
のポーリング間隔が変更になると少なくとも3周期後に
は変更されたポーリング周期が求まり、4周期目からは
送信要求の直前の最新データを組み立てて準備しておく
ことができる。
In calculating the polling period, the next polling time is estimated by averaging the latest three polling intervals from the primary station, for example. When the polling interval from the primary station is changed, the changed polling cycle is obtained at least three cycles later, and from the fourth cycle, the latest data immediately before the transmission request can be assembled and prepared.

【0015】6はドライバで送信処理部3からの組立済
データを通信回線に送出し、また通信回線からのデータ
を受信する。上記構成に基づくデータの送信処理は以下
の手順で行われる。ドライバ6が一次局から送信要求
RRを受信すると、これを受信完了通知処理が検出し
てデータ送信要求受信完了をデータ送信処理3に通知す
ると、データ送信処理3はその時点で準備してあった
組立済みデータを送信バッファ31からドライバ6を介し
て一次局に直ちに送信する。該送信の完了を送受信完
了処理4が検出して、タイマ監視処理5に通知する
。この通知を受けたタイマ監視処理5は所定の遅延時
間後にデータ組立処理2へデータ組立を依頼する。デ
ータ組立処理は依頼された時点に受信バッファに格納さ
れているデータを用いて送信データの組立を行い、組
立済データを送信処理4へ送信を依頼し、送信バッファ
31に格納する。
Reference numeral 6 denotes a driver which sends the assembled data from the transmission processing unit 3 to a communication line and receives data from the communication line. The data transmission process based on the above configuration is performed in the following procedure. When the driver 6 receives the transmission request RR from the primary station, the reception completion notification process detects this and notifies the data transmission process 3 of the completion of the data transmission request reception, and the data transmission process 3 has been prepared at that time. The assembled data is immediately transmitted from the transmission buffer 31 to the primary station via the driver 6. The transmission / reception completion processing 4 detects the completion of the transmission and notifies the timer monitoring processing 5. Upon receiving this notification, the timer monitoring process 5 requests the data assembling process 2 to assemble the data after a predetermined delay time. The data assembling process assembles the transmission data using the data stored in the reception buffer at the time requested, and requests the transmission process 4 to transmit the assembled data.
Store in 31.

【0016】このようにすることによって、図2に示す
様に、ポーリングインターバルがTpが長い場合でも、
アプリケーションプログラムは今回データ送信完了通知
を受けた後、次回送信要求によってデータ送信を行う直
前(Ts前)の時点までデータ組立処理の起動を遅延
(遅延時間Td=Tp −Ts)させるので、この間に入力
データがaからbに変化しても次回の一次局からのポー
リングに対して変化後の最新データbを送信することが
できる。
By doing so, as shown in FIG. 2, even if the polling interval Tp is long,
After receiving the data transmission completion notification this time, the application program delays the start of the data assembling process until immediately before data transmission by the next transmission request (before Ts) (delay time Td = Tp−Ts). Even if the input data changes from a to b, the latest data b after the change can be transmitted for the next polling from the primary station.

【0017】また、ポーリング間隔が変更になると、そ
れをタイマ監視処理が検出し所定周期以後は、変更後の
間隔に対応した時点でデータ組立処理を行って次のポー
リングに備えるので、送信データの欠損が発生せず、送
信データの信頼度が向上する。
When the polling interval is changed, the timer monitoring process detects the change. After a predetermined period, the data assembling process is performed at the time corresponding to the changed interval to prepare for the next polling. No loss occurs, and the reliability of transmission data is improved.

【0018】[0018]

【発明の効果】以上の説明から明らかなように、本発明
によれば、タイマ監視処理がポーリング間隔の監視を行
いデータの組立のタイミングをポーリング間隔より算出
するので、一次局からのポーリング間隔が変更されて
も、常に最新のデータが送信されるので、送信データの
信頼度が向上するという効果がある。
As is apparent from the above description, according to the present invention, the timer monitoring process monitors the polling interval and calculates the data assembly timing from the polling interval. Even if it is changed, the latest data is always transmitted, so that the reliability of the transmitted data is improved.

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

【図1】 本発明のデータ送信処理方法の構成図FIG. 1 is a configuration diagram of a data transmission processing method of the present invention.

【図2】 本発明におけるデータの送信状態を示す図FIG. 2 is a diagram showing a data transmission state according to the present invention.

【図3】 本発明が適用されるデータ通信システムの構
成図
FIG. 3 is a configuration diagram of a data communication system to which the present invention is applied;

【図4】 HDLC・NRM手順における従来のデータ
送信処理方法を示す図
FIG. 4 is a diagram showing a conventional data transmission processing method in the HDLC / NRM procedure.

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

1…データ入力処理、11…入力バッファ、2…データ組
立処理、3…データ送信処理、31…出力バッファ、4…
送受信完了通知処理、5…タイマ監視処理、6…ドライ
バ、
DESCRIPTION OF SYMBOLS 1 ... Data input processing, 11 ... Input buffer, 2 ... Data assembly processing, 3 ... Data transmission processing, 31 ... Output buffer, 4 ...
Transmission / reception completion notification processing, 5: timer monitoring processing, 6: driver,

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 一次局からのポーリングに応答してドラ
イバ(6) を介して通信回線にデータを送出する二次局に
おけるデータ送信処理方法であって、 入力するデータを入力バッファ(11)に上書きして最新デ
ータを保持させるデータ入力処理(1) と、該入力バッフ
ァ(11)のデータを用いて送信データを組み立てるデータ
組立処理(2) と、組立済みデータを送信バッファ(31)に
格納しドライバ(6) を介して送信するデータ送信処理
(3) と、前記ドライバ(6) における送受信完了を検出す
る送受信完了通知処理(4) と、タイマ監視処理(5) とか
らなり、 該タイマ監視処理(5) は送受信完了通知処理(4) が検出
する一次局からの送信要求時刻をもとにポーリング間隔
を求め、ポーリングの直前にデータ組立が行われるよう
なデータ組立タイミングを算出し、該タイミングでデー
タ組立処理2にデータ組立を依頼することを特徴とする
データ送信処理方法。
1. A data transmission processing method in a secondary station for sending data to a communication line via a driver (6) in response to polling from a primary station, wherein data to be input is input to an input buffer (11). Data input processing (1) to overwrite and retain the latest data, data assembling processing (2) to assemble transmission data using the data in the input buffer (11), and storing the assembled data in the transmission buffer (31) Data transmission processing for transmission via the driver (6)
(3), a transmission / reception completion notification process (4) for detecting the completion of transmission / reception in the driver (6), and a timer monitoring process (5), and the timer monitoring process (5) is a transmission / reception completion notification process (4). , A polling interval is calculated based on the transmission request time from the primary station detected, a data assembling timing at which data assembling is performed immediately before the polling is calculated, and a data assembling process 2 is requested at this timing. A data transmission processing method characterized by the above-mentioned.
JP3201029A 1991-08-12 1991-08-12 Data transmission processing method Expired - Lifetime JP2590635B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3201029A JP2590635B2 (en) 1991-08-12 1991-08-12 Data transmission processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3201029A JP2590635B2 (en) 1991-08-12 1991-08-12 Data transmission processing method

Publications (2)

Publication Number Publication Date
JPH0548620A JPH0548620A (en) 1993-02-26
JP2590635B2 true JP2590635B2 (en) 1997-03-12

Family

ID=16434269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3201029A Expired - Lifetime JP2590635B2 (en) 1991-08-12 1991-08-12 Data transmission processing method

Country Status (1)

Country Link
JP (1) JP2590635B2 (en)

Also Published As

Publication number Publication date
JPH0548620A (en) 1993-02-26

Similar Documents

Publication Publication Date Title
US5163055A (en) Communications system using a fault tolerant protocol
US4896151A (en) Simultaneous communication method and system
JP2003523130A (en) Clock synchronization method between nodes in packet network
KR910005999B1 (en) Communication control system
JP2590635B2 (en) Data transmission processing method
JP2730493B2 (en) Controlled station monitoring method
JPS6352089A (en) Time synchronizing system for network
JPH0740702B2 (en) Remote test circuit
JP4254048B2 (en) Transmission system of digital protection relay system
JPH10336177A (en) Health check system in communication network
JP2541492B2 (en) Microprocessor remote reset method
JPH0520015B2 (en)
JPS63290428A (en) Data transfer system
JPS59127450A (en) Transmission control system
JPH11261607A (en) Phase synchronization system between devices and its method
JPH02113654A (en) Communication equipment
JPH0758999B2 (en) How to match clocks in communication network systems
JPH02217039A (en) Poling/selecting control procedure system
JPH0418738B2 (en)
JPS5941623B2 (en) Line monitoring method
JPH09237110A (en) Remote io transmitting device
JPS6367386B2 (en)
JPH08307950A (en) Time adjusting method for remote system
JPH0420143A (en) Multi-address communication replay system and its circuit
JPS58104535A (en) Transmission system with priority

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19961022