JP3294256B2 - Data communication method and device - Google Patents

Data communication method and device

Info

Publication number
JP3294256B2
JP3294256B2 JP04828599A JP4828599A JP3294256B2 JP 3294256 B2 JP3294256 B2 JP 3294256B2 JP 04828599 A JP04828599 A JP 04828599A JP 4828599 A JP4828599 A JP 4828599A JP 3294256 B2 JP3294256 B2 JP 3294256B2
Authority
JP
Japan
Prior art keywords
station
slave
data
master station
master
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 - Fee Related
Application number
JP04828599A
Other languages
Japanese (ja)
Other versions
JP2000253027A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP04828599A priority Critical patent/JP3294256B2/en
Publication of JP2000253027A publication Critical patent/JP2000253027A/en
Application granted granted Critical
Publication of JP3294256B2 publication Critical patent/JP3294256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データ通信方法及
び装置に関し、特に、マルチドロップネットワークにお
けるポーリング機能を有するデータ通信方法及び装置に
関する。
The present invention relates to a data communication method and apparatus, and more particularly, to a data communication method and apparatus having a polling function in a multidrop network.

【0002】[0002]

【従来の技術】従来、マルチドロップネットワークに複
数の局を接続し、全ての局間においてデータ通信を行う
データ通信方式は、ある1個の局を親局としその他を子
局として、親局が順次子局にポーリングをかけ、各子局
は自局がポーリングされた際に親局にデータ送信し、親
局は子局から受信したデータを宛先の子局に送信するよ
うにして全ての局間の通信を行うことを可能に構成して
いる。
2. Description of the Related Art Conventionally, a data communication system in which a plurality of stations are connected to a multi-drop network and data communication is performed between all the stations, is based on the assumption that one station is a master station and the other is a slave station. Polling the slave stations sequentially, and each slave station transmits data to the master station when the own station is polled, and the master station transmits data received from the slave station to the destination slave station to all the stations. It is configured to be able to perform communication between them.

【0003】[0003]

【発明が解決しようとする課題】マルチドロップネット
ワークに接続された局同士が通信を行う従来のデータ通
信方式では、親局が全ての子局からの通信を仲介する方
式であるため、親局の故障や親局との間の通信路障害な
どが発生した場合には子局同士の通信は全く行えなくな
るという問題点があった。
In a conventional data communication system in which stations connected to a multi-drop network communicate with each other, the master station mediates communication from all slave stations. When a failure or a communication path failure with the master station occurs, there is a problem that communication between slave stations cannot be performed at all.

【0004】(発明の目的)本発明の目的は、マルチド
ロップネットワークに接続された局同士の通信において
親局の障害等にも子局同士の通信の継続を可能とするデ
ータ通信方法及び装置を提供することにある。
(Object of the Invention) It is an object of the present invention to provide a data communication method and apparatus which enables communication between stations connected to a multi-drop network to continue communication between slave stations even when a failure occurs in a master station. To provide.

【0005】[0005]

【課題を解決するための手段】本発明のデータ通信方法
及び装置は、マルチドロップネットワークに接続された
親局が複数の子局に対しポーリングを行うことにより、
子局の通信を管理するデータ通信方法及び装置におい
て、親局が障害を起こし又は親局との接続が切れた場合
に代わりの局が親局となって他の子局へのポーリングと
通信の仲介を行うことによりデータ通信を継続する。つ
まり、本発明のデータ通信方法は、マルチドロップネッ
トワークに接続された複数の局間でポーリングによる通
信を行うデータ通信方法において、複数の局のうち特定
の局を親局とし他の局を子局として、親局は、子局に対
しポーリングを行うことにより、当該子局から自局宛の
受信データを取り込むとともに、他の子局宛の受信デー
タを当該他の子局へ転送するポーリング制御を行い、親
局又は親局側の伝送路が障害を起こした場合に、子局の
1つが親局となって正常な他の子局への前記ポーリング
制御を行い、データ通信を継続することを特徴とする。
SUMMARY OF THE INVENTION A data communication method and apparatus according to the present invention is characterized in that a master station connected to a multi-drop network polls a plurality of slave stations.
In a data communication method and apparatus for managing communication of a slave station, when a master station fails or loses connection with the master station, a substitute station becomes the master station to perform polling and communication with another slave station. Data communication is continued by mediating. That is, the data communication method of the present invention is a data communication method in which polling communication is performed between a plurality of stations connected to a multi-drop network. By polling the slave station, the master station takes in the received data addressed to the own station from the slave station and performs polling control for transferring the received data addressed to another slave station to the other slave station. When a failure occurs in the master station or the transmission line on the master station side, one of the slave stations serves as the master station to perform the polling control to another normal slave station to continue data communication. Features.

【0006】また、前記データ通信方法において、前記
マルチドロップネットワークは、親局から複数の子局に
向けた前記ポーリング及び前記受信データの転送を行う
伝送路と、複数の子局から親局に向けた他の局へのデー
タの送信を行う伝送路とを有し、障害状態の親局は障害
回復時にポーリングを開始し、新たな親局は、適宜一定
期間、子局として前記ポーリングを待ち受け前記ポーリ
ングが検出された場合に子局として切り替えることを特
徴とする。
In the data communication method, the multi-drop network includes a transmission path for performing the polling and transferring the received data from the master station to a plurality of slave stations, and a transmission path for transferring the received data from the master station to the master station. A transmission path for transmitting data to another station, and the master station in the failure state starts polling when the failure is recovered, and the new master station waits for the polling as a slave station for a predetermined period as appropriate. Switching is performed as a slave station when polling is detected.

【0007】更に、本発明のデータ通信装置は、マルチ
ドロップネットワークに接続され親局又は子局として切
り替え可能なポーリングにより通信を行うデータ通信装
置であって、親局として子局に対するポーリングを行
い、受信データが自局宛か否かを判断し、自局宛の場合
は前記受信データを取り込み、受信データが他の子局宛
のデータの場合は前記受信データを当該他の子局宛に送
信する親局処理部と、子局として親局からのポーリング
に対し、他局に対する送信データがあればデータを送信
し、親局からの受信データが自局宛か否かを判断し、受
信データが自局宛の場合は前記受信データを受信する子
局処理部と、前記親局処理部と前記子局処理部の何れか
を動作状態に切り替える親局子局切り替え部と、を有
し、前記親局子局切り替え部は、子局処理部の動作状態
の設定時において親局又は親局側の伝送路が障害状態に
なった場合に、子局処理部の動作状態から親局処理部の
動作状態への切り替え操作が可能であることを特徴とす
る。
Further, the data communication apparatus of the present invention is a data communication apparatus which is connected to a multi-drop network and performs communication by polling which can be switched as a master station or a slave station. Judge whether the received data is addressed to the own station, and if the data is addressed to the own station, fetch the received data.If the received data is data addressed to another slave station, transmit the received data to the other slave station. In response to polling from the master station as a slave station, if there is data to be transmitted to another station, the data is transmitted, and it is determined whether the data received from the master station is addressed to the own station. A slave station processing unit that receives the received data when is addressed to the own station, and a master station slave station switching unit that switches one of the master station processing unit and the slave station processing unit to an operation state, The parent station child station cut The transfer unit changes the operation state of the slave station processing unit to the operation state of the master station processing unit when the operation state of the slave station processing unit is set and the master station or the transmission path on the master station side fails. A switching operation is possible.

【0008】また、前記データ通信装置において、前記
マルチドロップネットワークは、親局から子局への前記
ポーリング及び前記受信データの転送を行う信号線と、
子局から親局に向けた他の局へのデータの送信を行う信
号線を有し、前記親局子局切り替え部の切り替えにより
前記各信号線への接続を切り替える送受信切替部を有
し、更に、前記親局子局切り替え部は、子局処理部の動
作状態の設定時において親局が障害状態になった場合
に、子局処理部の動作状態から親局処理部の動作状態へ
の切り替え後、適宜、子局処理部の動作状態に一定期間
切り替え、ポーリングが検出された場合は子局処理部の
動作状態に切り替えることを特徴とする。
In the data communication device, the multi-drop network includes a signal line for performing the polling from the master station to the slave station and transferring the reception data.
A signal line for transmitting data from the slave station to another station directed to the master station, and a transmission / reception switching unit that switches the connection to each signal line by switching the master station / slave station switching unit, Further, the master station slave station switching unit is configured to change the operation state of the slave station processing unit from the operation state of the master station processing unit to the operation state of the master station processing unit when the master station is in a failure state when setting the operation state of the slave station processing unit. After the switching, the operation state of the slave station processing unit is appropriately switched to the operation state of the slave station processing unit for a certain period of time, and when polling is detected, the operation state is switched to the operation state of the slave station processing unit.

【0009】(作用)通常状態では、親局は一定周期毎
に各子局に送信データがあるか否かを確かめるためにポ
ーリングを行い、各子局は親局又は他の子局に送信した
いデータがある場合に親局に対して送信を行う。親局は
受信したデータが自局宛であればデータを取り込み、他
の子局宛であれば受信したデータを宛先の局に送信す
る。
(Operation) In the normal state, the master station performs polling at regular intervals to confirm whether or not each slave station has transmission data, and each slave station wants to transmit to the master station or another slave station. If there is data, transmit to the master station. If the received data is addressed to the own station, the master station takes in the data. If the received data is addressed to another slave station, the master station transmits the received data to the destination station.

【0010】親局故障又は親局との間の通信路障害が発
生した場合は、何れかの子局が送信と受信の通信線の接
続を切り替えて、それまでの親局に代わる親局として他
の子局に対するポーリングを行い通信の仲介を行う。
[0010] When a master station failure or a communication path failure with the master station occurs, one of the slave stations switches the connection of the transmission and reception communication lines to another master station as a master station replacing the previous master station. It polls slave stations and mediates communication.

【0011】[0011]

【発明の実施の形態】(構成の説明)本発明のデータ通
信方法及び装置の一実施の形態を以下詳細に説明する。
図1は、本実施の形態のデータ通信方法及び方式のネッ
トワーク構成を示す図である。本実施の形態のネットワ
ークは、マルチドロップネットワークに接続された複数
の局からなり、1つの局が親局となり、他の複数の局が
子局1、2、3…Nとなるように構成される。マルチド
ロップネットワークの伝送路11は親局から全子局1、
2、3…Nに対するデータ信号線、伝送路12は全子局
1、2、3…Nから親局に対するデータ信号線である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS (Explanation of Configuration) One embodiment of a data communication method and apparatus according to the present invention will be described in detail below.
FIG. 1 is a diagram showing a network configuration of a data communication method and system according to the present embodiment. The network according to the present embodiment includes a plurality of stations connected to a multi-drop network, and one station is a master station, and the other stations are slave stations 1, 2, 3,... You. The transmission path 11 of the multi-drop network is from the master station to all slave stations 1,
Data signal lines for 2, 3,... N, and transmission lines 12 are data signal lines from all the slave stations 1, 2, 3,.

【0012】図2は、本実施の形態における親局を含む
各局のデータ通信装置の構成を示すブロック図である。
局の構成は、親局処理部21と、子局処理部22と、親
局子局切り替え部23と、送受信部24と、送受信切り
替え部25とから構成されている。また、親局処理部2
1は、受信データ処理部211とポーリング処理部21
2とから構成されている。各部の機能の概要は次のとお
りである。親局子局切り替え部23は、各局が親局とし
て動作するか子局として動作するかの動作状態を変更す
る機能を有する。つまり、当該局が親局として動作する
場合、親局処理部21を使用し子局処理部22は使用し
ない。逆に子局として動作する場合は子局処理部22を
使用し親局処理部21は使用しない。親局処理部21
は、親局として機能するように切り替えられた場合に動
作状態となり、ポーリング処理部において子局1〜Nに
対し順次ポーリングをかけることにより親局と子局間及
び子局間の通信を制御し、受信データ処理部211にお
いてデータ受信を自局に取り込み又は他の子局に転送す
る制御を行う。子局処理部22は、子局として機能する
ように切り替えられた場合に動作状態となり、親局から
のポーリングにより、例えば親局又は他の子局宛のデー
タを送信する。親局子局切り替え部23の変更機能は通
信状態に関する情報又は手動等による操作により行うこ
とができる。
FIG. 2 is a block diagram showing the configuration of the data communication device of each station including the master station in the present embodiment.
The station configuration includes a master station processing unit 21, a slave station processing unit 22, a master station / slave station switching unit 23, a transmission / reception unit 24, and a transmission / reception switching unit 25. In addition, the master station processing unit 2
1 is a reception data processing unit 211 and a polling processing unit 21
And 2. The outline of the function of each part is as follows. The master / slave switching unit 23 has a function of changing an operation state of each station operating as a master station or a slave station. That is, when the station operates as a master station, the master station processing unit 21 is used and the slave station processing unit 22 is not used. Conversely, when operating as a slave station, the slave station processing unit 22 is used and the master station processing unit 21 is not used. Master station processing unit 21
Becomes active when switched to function as a master station, and controls communication between the master station and slave stations and between slave stations by sequentially polling slave stations 1 to N in a polling processing unit. Then, the reception data processing unit 211 performs control to take in data reception into its own station or transfer it to another slave station. The slave station processing unit 22 enters an operation state when switched to function as a slave station, and transmits data addressed to, for example, the master station or another slave station by polling from the master station. The changing function of the master / slave switching unit 23 can be performed by information regarding the communication state or by manual operation.

【0013】親局処理部21の受信データ処理部211
は、受信したデータが自局宛か否かを判断し、自局宛の
ポーリング応答であった場合、当該データの受信処理を
行い、次の子局のポーリング処理をポーリング処理部2
12に要求する。受信データが他局宛のデータだった場
合、受信データをその局宛に送信する。
The received data processing unit 211 of the master station processing unit 21
Determines whether the received data is addressed to the own station, and if the received data is a polling response addressed to the own station, performs the receiving process of the data, and performs the polling process of the next slave station in the polling processing unit 2
Request 12 If the received data is data addressed to another station, the received data is transmitted to the station.

【0014】また、子局処理部22は、親局からのデー
タ受信が自局宛か否かを判断して自局宛であった場合、
親局からのポーリングに対しては、送信データがあれば
データを送信し、送信データがなければ親局に対してポ
ーリング応答を送信する。また、親局からの実データ送
信に対してはデータ正常受信応答を返す。
Further, the slave station processing unit 22 determines whether or not data reception from the master station is addressed to the own station.
For polling from the master station, if there is transmission data, the data is transmitted, and if there is no transmission data, a polling response is transmitted to the master station. In addition, it returns a data normal reception response to actual data transmission from the master station.

【0015】送受信切り替え部25は、親局子局切り替
え部23からの要求により親局又は子局としてデータ送
信線とデータ受信線を切り替える機能を有する。送受信
部24は、他局に対するデータ送信線及びデータ受信線
のデータの送受信処理を行う。
The transmission / reception switching section 25 has a function of switching between a data transmission line and a data reception line as a master station or a slave station in response to a request from the master station / slave station switching section 23. The transmission / reception unit 24 performs transmission / reception processing of data on the data transmission line and the data reception line with respect to another station.

【0016】図3は、本実施の形態の送受信データであ
るデータパケットのフォーマットを示す図である。本デ
ータパケットは、送信元アドレス、送信先アドレス、デ
ータ種別及びデータから構成される。ここで、データ種
別には、親局からのポーリング、ポーリングに対する応
答、実データ送信及びデータの正常受信の応答等を示す
情報が格納され、ポーリング、データ通信の制御に利用
される。
FIG. 3 is a diagram showing a format of a data packet which is transmission / reception data according to the present embodiment. This data packet includes a source address, a destination address, a data type, and data. Here, the data type stores information indicating polling from the master station, a response to the polling, a response to actual data transmission and normal reception of data, and the like, and is used for controlling polling and data communication.

【0017】(動作の説明)次に、本実施の形態の正常
時の動作を、図1に示すマルチドロップネットワークを
例として図4を参照して説明する。本例では、親局のア
ドレスは「0」、子局nのアドレスは「n」とし、子局
1と子局3は他の局へ送信するデータがなく、子局2が
子局3へ送信するデータがある場合について考える。
(Explanation of Operation) Next, the normal operation of this embodiment will be described with reference to FIG. 4 taking the multi-drop network shown in FIG. 1 as an example. In this example, the address of the master station is "0", the address of the slave station n is "n", the slave stations 1 and 3 have no data to send to other stations, and the slave station 2 sends the slave station 3 to the slave station 3. Consider the case where there is data to be transmitted.

【0018】図4は、このような設定による本実施の形
態の動作のデータフローを示す図である。まず、親局は
子局1に対しポーリングを行う。子局1へのポーリング
はデータ信号線11を介し全ての子局に送信される。子
局1では受信されたデータは子局処理部22に渡され
る。子局処理部22は受信したデータが自局宛か否かを
判断する。子局1は自局宛のポーリング要求と判断する
が、自局から他局宛の送信データがないので、親局に対
してポーリング応答を返送する。
FIG. 4 is a diagram showing a data flow of the operation of the present embodiment by such setting. First, the master station polls the slave station 1. Polling to the slave station 1 is transmitted to all slave stations via the data signal line 11. In the slave station 1, the received data is passed to the slave station processing unit 22. The slave station processing unit 22 determines whether the received data is addressed to the own station. The slave station 1 determines that the polling request is addressed to the own station, but returns no polling response to the master station because there is no transmission data addressed to the other station from the own station.

【0019】次に、親局は子局2に対してポーリングを
行う。子局2は受信されたデータを子局2の子局処理部
22で同様に処理し自局宛のポーリング要求と判断する
と、子局3への送信データがあるので、送信先アドレス
に「3」、送信元アドレスに「2」をセットしたパケッ
トにより実データの送信を行う。親局の受信データ処理
部21は子局2からの受信データの送信先アドレスを調
べ自分宛ではないので、送信先アドレス「3」の子局に
対に対して同様なパケットにより実データを送信する。
子局3は親局からの実データの送信を受信すると、受信
データ処理部211によりデータを取り込み、親局には
データ正常受信応答を送信する。
Next, the master station polls the slave station 2. When the slave station 2 processes the received data in the same manner in the slave station processing unit 22 of the slave station 2 and determines that the request is a polling request addressed to the own station, there is data to be sent to the slave station 3. , And the actual data is transmitted by a packet in which the source address is set to “2”. The received data processing unit 21 of the master station checks the destination address of the received data from the slave station 2 and is not addressed to itself. Therefore, the actual data is transmitted to the slave station with the destination address "3" by a similar packet to the pair. I do.
When the slave station 3 receives the transmission of the actual data from the master station, the slave station 3 fetches the data by the reception data processing unit 211 and transmits a data normal reception response to the master station.

【0020】更に、親局は子局3に対しポーリングを行
う。子局3は他局へ送信するデータがないので親局にポ
ーリング応答を送信する。親局は、以上のように他の子
局に対しても順次ポーリングを行うことにより、全子局
とのデータの送受及び仲介を行う通信の制御を行う。
Further, the master station polls the slave station 3. The slave station 3 transmits a polling response to the master station because there is no data to send to the other station. As described above, the master station controls communication for transmitting / receiving data and mediating data to / from all slave stations by sequentially polling other slave stations.

【0021】次に、親局に関連する通信障害が発生した
場合について説明する。本例においいては、親局と子局
1の間の通信路に障害が起きた場合を想定して以下説明
する。親局と子局1の間の通信路に障害が発生すると、
全子局の中からある子局を選び、その子局の役割を子局
から親局に切り替える。ここでは子局2が親局に切り替
わるものとして説明する。
Next, a case where a communication failure related to the master station has occurred will be described. In the present example, a description will be given below on the assumption that a failure occurs in a communication path between the master station and the slave station 1. If a failure occurs in the communication path between the master station and slave station 1,
A slave station is selected from all slave stations, and the role of the slave station is switched from the slave station to the master station. Here, a description will be given assuming that the slave station 2 is switched to the master station.

【0022】子局2の送受信切り替え部25は、親局子
局切り替え部23からの要求により、送信受信の信号デ
ータ線11、12の接続状態を反転させる。また、子局
処理部22を使用不可にして親局処理部21を使用可能
に切り替える。これによって子局2は親局としての機能
を有することになり、それぞれまでの親局に代わり他の
子局を順次ポーリングする動作を開始する。実際には子
局1、子局3、子局4、子局5・・子局Nの順番のポー
リング動作を行い、障害が発生したそれぞれまでの親局
及び子局2を除く局間での上述のような通信制御を行い
ネットワークの通信を可能とする。本例では親局及び子
局2が障害として扱っているが、親局のみの障害状態と
して子局2を切り替えるようにすることができる。
The transmission / reception switching unit 25 of the slave station 2 inverts the connection state of the transmission / reception signal data lines 11 and 12 in response to a request from the master station / slave station switching unit 23. Further, the slave station processing unit 22 is disabled and the master station processing unit 21 is switched to be usable. As a result, the slave station 2 has a function as a master station, and starts an operation of sequentially polling other slave stations in place of the master stations. Actually, the polling operation is performed in the order of the slave station 1, the slave station 3, the slave station 4, the slave station 5,..., The slave station N. The communication control as described above is performed to enable network communication. In this example, the master station and the slave station 2 are treated as failures, but the slave station 2 can be switched as a failure state of only the master station.

【0023】(他の実施の形態)前述の実施の形態にお
いては、親局に関連する障害が生じると残りの局による
縮小したネットワークを実現するように動作するが、元
の親局が障害状態等から回復した場合には、自動的に元
の親局のポーリング制御による通常時のネットワーク機
能を回復できるようにすると好適である。
(Other Embodiments) In the above-described embodiment, when a failure related to the master station occurs, the operation is performed to realize a reduced network by the remaining stations, but the original master station is in a failure state. In the case where the network function is recovered from the above, it is preferable that the normal network function can be automatically recovered by the polling control of the original master station.

【0024】本実施の形態では、ある子局が親局の通信
障害により代わりに親局に切り替わった後、元の親局の
障害回復時に本来のポーリング動作にもどることを可能
とする。
In the present embodiment, it is possible to return to the original polling operation at the time of recovery from the failure of the original master station after a certain slave station is switched to the master station instead due to the communication failure of the master station.

【0025】通信障害等に陥った元の親局は、障害状態
を排除し正常に復するための対策を講じ、障害回復時に
は、例えば、子局として立ち上げる。この場合、元の親
局は、障害から回復すると新しい親局からのポーリング
信号が所定のポーリング周期で受信側の信号線から受信
される。元の親局は子局としてこのポーリングのタイミ
ングを検出した後、親局子局切り替え部を切り替え子局
の動作から親局の動作に切り替えポーリング信号を子局
側に送信する。
The original master station that has suffered a communication failure or the like takes measures to eliminate the failure state and restore the normal state, and starts up, for example, as a slave station when the failure is recovered. In this case, when the original master station recovers from the failure, a polling signal from the new master station is received from the signal line on the receiving side at a predetermined polling cycle. After detecting the timing of the polling as the slave station, the original master station switches the master station slave station switching unit from the operation of the slave station to the operation of the master station, and transmits a polling signal to the slave station.

【0026】一方、新しい親局は、例えば、ポーリング
制御を行わない期間等に、自局の親局子局切り替え部を
切り替え、一旦、子局の動作に戻り、予め決められた一
定時間の間、元の親局からのポーリングの受信待ちを行
なう。
On the other hand, the new master station switches its own master station / slave station switching section, for example, during a period in which polling control is not performed, and returns to the operation of the slave station once, for a predetermined period of time. And waits for a polling reception from the original master station.

【0027】新しい親局は受信待ち状態においてもし元
の親局からのポーリング要求が受信されたら元の親局が
障害から回復し正常に動作すると判断して、本来の子局
の動作に戻り子局の制御を行う。しかし、一定時間の間
に親局からのポーリング要求が受信されなければ、再び
親局に戻り子局のポーリングの制御を再開する。新しい
親局は以上のような制御を周期的等、適宜に行うことで
元の親局のポーリング制御による本来の通信制御への復
帰を可能とする。本実施の形態の機能を付け加えること
により、親局の通信異常の回復時に本来のシステム動作
への自動復旧が実現される。
The new master station waits for reception, if a polling request is received from the original master station, determines that the original master station has recovered from the failure and operates normally, and returns to the original operation of the slave station. Control the station. However, if the polling request from the master station is not received within a certain period of time, the process returns to the master station again and restarts the polling control of the slave station. The new master station can return to the original communication control by the polling control of the original master station by appropriately performing the above-described control, for example, periodically. By adding the function of the present embodiment, automatic recovery to the original system operation can be realized when the communication abnormality of the master station is recovered.

【0028】[0028]

【発明の効果】本発明のデータ通信によれば、親局が故
障した場合や親局との通信路が異常な場合に、子局が代
わりに親局と同じ動作をするように構成しているので、
元の親局が機能しない場合にも残りの局同士の間での通
信を正常に実現することができる。
According to the data communication of the present invention, when the master station breaks down or the communication path with the master station is abnormal, the slave station performs the same operation as the master station instead. Because
Even when the original master station does not function, communication between the remaining stations can be normally realized.

【0029】また、切り替わった新たな親局が定期的等
適宜、当初の子局の機能に切り替えるように構成するこ
とにより、障害状態に陥った親局の回復時に当初の状態
に復帰することが可能となる。
Further, by configuring the switched new master station to switch to the function of the original slave station as appropriate such as periodically, it is possible to return to the original state when the master station that has fallen into a faulty state is recovered. It becomes possible.

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

【図1】本発明の一実施の形態のマルチドロップネット
ワーク構成を示す図である。
FIG. 1 is a diagram showing a multi-drop network configuration according to an embodiment of the present invention.

【図2】本実施の形態の局機能構成を示す図である。FIG. 2 is a diagram showing a station functional configuration of the present embodiment.

【図3】本実施の形態における送受信データのデータパ
ケットを示す図である。
FIG. 3 is a diagram showing a data packet of transmission / reception data in the present embodiment.

【図4】本実施の形態における動作のデータフローを示
す図である。
FIG. 4 is a diagram showing a data flow of an operation in the present embodiment.

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

11、12 信号線 21 親局処理部 23 親局子局切り替え部 24 送受信部 25 送受信切り替え部 211 受信データ処理部 212 ポーリング処理部 11, 12 signal line 21 master station processing unit 23 master station slave station switching unit 24 transmission / reception unit 25 transmission / reception switching unit 211 reception data processing unit 212 polling processing unit

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マルチドロップネットワークに接続され
た複数の局間でポーリングによる通信を行うデータ通信
方法において、複数の局のうち特定の局を親局とし他の局を子局とし
て、親局は、子局に対しポーリングを行うことにより、
当該子局から自局宛の受信データを取り込むとともに、
他の子局宛の受信データを当該他の子局へ転送するポー
リング制御を行い、親局又は親局側の伝送路が障害を起
こした場合に、子局の1つが親局となって正常な他の子
局への前記ポーリング制御を行い、データ通信を継続
し、障害状態の親局は障害回復時にポーリングを開始
し、新たな親局は、適宜一定期間、子局として前記ポー
リングを待ち受け前記ポーリングが検出された場合に子
局として切り替える ことを特徴とするデータ通信方法。
1. A data communication method for performing polling communication between a plurality of stations connected to a multi-drop network, wherein a specific station among a plurality of stations is a master station and other stations are slave stations.
Therefore, the master station polls the slave stations,
While receiving received data addressed to the own station from the slave station,
A port that transfers received data addressed to another slave station to the other slave station.
Performs ring control and causes a failure in the master station or the transmission path on the master station side.
In this case, one of the slave stations becomes the master station and other normal slave stations
Performs the polling control to the station and continues data communication
And the failed master starts polling when the fault is recovered.
Then, the new master station is set as a slave station for a certain period of time as a slave station.
Waits for a ring.
A data communication method characterized by switching as a station .
【請求項2】 前記マルチドロップネットワークは、親
局から複数の子局に向けた前記ポーリング及び前記受信
データの転送を行う伝送路と、複数の子局から親局に向
けた他の局へのデータの送信を行う伝送路とを有するこ
とを特徴とする請求項1記載のデータ通信方法。
2. The multi-drop network according to claim 1, wherein
Polling and receiving from a station to a plurality of slave stations
A transmission path for transferring data and a route from multiple slave stations to the master station.
Transmission path for transmitting data to other stations.
2. The data communication method according to claim 1, wherein:
【請求項3】 マルチドロップネットワークに接続され
親局又は子局として切り替え可能なポーリングにより通
信を行うデータ通信装置であって、 親局として子局に対するポーリングを行い、受信データ
が自局宛か否かを判断し、自局宛の場合は前記受信デー
タを取り込み、受信データが他の子局宛のデータの場合
は前記受信データを当該他の子局宛に送信する親局処理
部と、 子局として親局からのポーリングに対し、他局に対する
送信データがあればデータを送信し、親局からの受信デ
ータが自局宛か否かを判断し、受信データが自局宛の場
合は前記受信データを受信する子局処理部と、 前記親局処理部と前記子局処理部の何れかを動作状態に
切り替える親局子局切り替え部と、を有し、 前記親局子局切り替え部は、子局処理部の動作状態の設
定時において親局又は親局側の伝送路が障害状態になっ
た場合に、子局処理部の動作状態から親局処理部の動作
状態への切り替え操作が可能であり、子局処理部の動作
状態から親局処理部の動作状態への切り替え後、適宜、
子局処理部の動作状態に一定期間切り替 え、ポーリング
が検出された場合は親局処理部の動作状態から子局処理
部の動作状態に切り替える ことを特徴とするデータ通信
装置。
3. A multi-drop network connected to
Communication by polling that can be switched as a master station or slave station
A data communication device that performs polling of a slave station as a master station, and
Judge whether it is addressed to the own station or not.
When the received data is data addressed to another slave station
Is a master station process for transmitting the received data to the other slave station.
And polling from the master station as a slave station,
If there is transmit data, transmit the data and receive data from the master station.
Data is addressed to the local station, and if the received data is addressed to the local station,
In the case, the slave station processing unit that receives the reception data, and sets any one of the master station processing unit and the slave station processing unit to the operating state.
A switching unit for switching the operation status of the slave station processing unit.
At regular time, the master station or the transmission line on the master station side becomes faulty.
The operation status of the master station processing unit
Switching to the state is possible, and the operation of the slave station processing unit
After switching from the state to the operation state of the master station processing unit,
It switches a certain period in the operating state of the slave station processing unit, a polling
Is detected, slave station processing is performed based on the operation status of the master station processing unit.
A data communication device for switching to an operation state of a unit.
【請求項4】 前記マルチドロップネットワークは、親
局から子局への前記ポーリング及び前記受信データの転
送を行う信号線と、子局から親局に向けた他の局へのデ
ータの送信を行う信号線を有し、前記親局子局切り替え
部の切り替えにより前記各信号線への接続を切り替える
送受信切替部を有することを特徴とする請求項3記載の
データ通信装置。
4. The multi-drop network according to claim 1, wherein
Polling from the station to the slave station and transfer of the received data.
Signal line for transmission and data from the slave station to the other station to the master station.
A signal line for transmitting data, and switching between the master station and the slave station.
Switching the connection to each signal line by switching the unit
The data communication device according to claim 3, further comprising a transmission / reception switching unit .
JP04828599A 1999-02-25 1999-02-25 Data communication method and device Expired - Fee Related JP3294256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04828599A JP3294256B2 (en) 1999-02-25 1999-02-25 Data communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04828599A JP3294256B2 (en) 1999-02-25 1999-02-25 Data communication method and device

Publications (2)

Publication Number Publication Date
JP2000253027A JP2000253027A (en) 2000-09-14
JP3294256B2 true JP3294256B2 (en) 2002-06-24

Family

ID=12799175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04828599A Expired - Fee Related JP3294256B2 (en) 1999-02-25 1999-02-25 Data communication method and device

Country Status (1)

Country Link
JP (1) JP3294256B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111007788B (en) * 2019-09-17 2021-06-04 杭州易闻科技有限公司 Free port communication polling system and method based on PLC and communication module
CN115277284B (en) * 2022-05-26 2024-04-09 广东逸动科技有限公司 Communication method, communication device, communication system, and computer-readable storage medium

Also Published As

Publication number Publication date
JP2000253027A (en) 2000-09-14

Similar Documents

Publication Publication Date Title
US5781715A (en) Fault-tolerant bridge/router with a distributed switch-over mechanism
US5983360A (en) Information processing system with communication system and hot stand-by change-over function therefor
JP6121067B2 (en) Bus participant apparatus and method of operation of bus participant apparatus
US7817538B2 (en) Fault-tolerant Ethernet network
JPH04261246A (en) Transmission system and transmission method
JP3294256B2 (en) Data communication method and device
JP2677693B2 (en) How to monitor computer networks
JP2001237889A (en) Bypass control method and system in data communication network
JP3380957B2 (en) Redundant communication controller
JP3604008B2 (en) LAN control device, driver, switching hub, and LAN control device automatic switching system having them
JPH11177550A (en) Monitor system for network
JPS62169543A (en) Network extending system
JPH08149145A (en) Lan system
JP3419979B2 (en) Device state management method and data communication system
JPH05304528A (en) Multiplex communication node
JPH0991233A (en) Network connection device
JP2001060959A (en) High reliability system
JP2000244520A (en) Abnormality diagnostic method for duplex network
JP2003018172A (en) Network system and control method
JPH0556049A (en) Communication controller
JPS61287351A (en) Data communication equipment test control system
JP2000349900A (en) Fault processing system for exchange
JPH0398320A (en) Switching control system for active/standby package constituting redundant system
JPH07295945A (en) Information processor and communication processing method
JPH01175338A (en) Method for doubling transmission system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080405

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090405

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100405

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees