JP4433935B2 - Relay master device and remote monitoring control system - Google Patents
Relay master device and remote monitoring control system Download PDFInfo
- Publication number
- JP4433935B2 JP4433935B2 JP2004239008A JP2004239008A JP4433935B2 JP 4433935 B2 JP4433935 B2 JP 4433935B2 JP 2004239008 A JP2004239008 A JP 2004239008A JP 2004239008 A JP2004239008 A JP 2004239008A JP 4433935 B2 JP4433935 B2 JP 4433935B2
- Authority
- JP
- Japan
- Prior art keywords
- relay
- monitoring control
- communication
- control device
- communication signal
- 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
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
- Communication Control (AREA)
- Monitoring And Testing Of Transmission In General (AREA)
Description
本発明は、機器を監視及び/又は制御する監視制御装置と前記機器との間で通信信号を中継する中継親装置に関する。そして、中継親装置を備える遠隔監視制御システムに関する。 The present invention relates to a relay master device that relays communication signals between a monitoring control device that monitors and / or controls a device and the device. And it is related with a remote monitoring control system provided with a relay parent apparatus.
戸建て住宅、集合住宅、庁舎、ホール、商業ビル、オフィスビル及び工場等の建物には、照明機器、空調機器、計測機器及び防犯機器等の様々な機器が設置されている。近年では、通信技術等の進展により、これら機器は、有線又は無線の伝送路によって相互に通信可能に接続されることによってネットワーク化され、さらに監視制御装置がネットワークに接続されて監視制御装置によって集中的に監視及び/又は制御されるようになっている。 Various devices such as lighting devices, air conditioning devices, measuring devices, and security devices are installed in buildings such as detached houses, apartment buildings, government buildings, halls, commercial buildings, office buildings, and factories. In recent years, due to the advancement of communication technology and the like, these devices are networked by being connected to each other via a wired or wireless transmission path, and the monitoring control device is connected to the network and concentrated by the monitoring control device. Monitored and / or controlled.
図10は、遠隔監視制御システムの構成を示す図である。図10において、遠隔監視制御システム1000は、複数の通信機能付きの機器11と、これら機器11に第1伝送路12を介して通信可能に接続され、これら機器11を監視及び/又は制御する監視制御装置10とを備えて構成される。複数の機器11は、図10に示す例では、機器11−a及び機器11−bの2個である。このような遠隔監視制御システム1000では、監視制御装置10は、監視情報を要求する監視要求を機器11に送信し、機器11から監視情報を受信することによって機器11を監視する。また、監視制御装置10は、制御を要求する制御要求を機器11に送信し、機器11から制御結果として監視情報を受信することによって機器11を制御する。
FIG. 10 is a diagram showing the configuration of the remote monitoring control system. In FIG. 10, a remote monitoring control system 1000 is connected to a plurality of
ここで、機器11が増設される場合や機器11の設置場所に起因して第1伝送路12に直接接続できない場合等がある。特に、機器11の設置場所によっては、第1伝送路12の伝送媒体(例えば通信線)と同一の伝送媒体を用いることができない場合や遠隔監視制御システム1000と同一の通信プロトコルを用いることができない場合がある。このような場合に、通信信号の中継を行う中継装置700を遠隔監視制御システム1000にさらに設け、機器11を遠隔監視制御システム1000に組み込むことが行われる。
Here, there is a case where the
図10に示す例は、4個の機器11−c〜11−fが3個の中継装置700−x〜700−zによって遠隔監視制御システム1000に組み込まれる場合である。中継装置700−xは、第1伝送路12で監視制御装置10に通信可能に直接接続されて遠隔監視制御システム1000に組み込まれる。機器11−c及び機器11−dは、第2伝送路13−aを介して中継装置700−yに通信可能に接続され、中継装置700−yが第3伝送路14で中継装置700−xに通信可能に接続されることによって監視制御装置10と通信可能となり、遠隔監視制御システム1000に組み込まれる。そして、機器11−e及び機器11−fは、第2伝送路13−bを介して中継装置700−zに通信可能に接続され、中継装置700−zが第3伝送路14で中継装置700−xに通信可能に接続されることによって監視制御装置10と通信可能となり、遠隔監視制御システム1000に組み込まれる。
The example shown in FIG. 10 is a case where four devices 11-c to 11-f are incorporated into the remote monitoring control system 1000 by three relay devices 700-x to 700-z. The relay device 700-x is directly connected to the
第3伝送路14は、新たに通信線を布設する必要がないことから、通常、例えば無線媒体や電力線であり、第1伝送路12、第2伝送路13−a及び第2伝送路13−bは、通信プロトコルが同一の専用の通信線である。このため、中継装置700は、第1通信プロトコルによって有線通信で通信信号を送受信する第1通信インタフェース部(以下、「第1通信IF部」と略記する。)701と、第1通信プロトコルとは異なる通信プロトコルである第2通信プロトコルによって無線通信で通信信号を送受信する第2通信部(以下、「第2通信IF部」と略記する。)702とを備えて構成されている。また、中継装置700には、自己が管理する機器11に関する情報、例えば、後述の機器IDが記憶されている。
Since there is no need to newly lay a communication line, the third transmission line 14 is usually a wireless medium or a power line, for example. The
ここで、通信上において他の中継装置700を介することなく監視制御装置10と直接通信を行う中継装置を中継親装置と呼称し、監視制御装置10と機器11との間の通信信号を中継親装置700を介して中継する中継装置700を中継子装置と呼称することとする。図10に示す例では、中継装置700−xが中継親装置であり、中継装置700−y、700−zが中継子装置である。
Here, a relay device that communicates directly with the
なお、本明細書において、総称する場合にはアルファベットの添え字を省略した参照符号で示し、個別の構成を指す場合にはアルファベットの添え字を付した参照符号で示す。 In addition, in this specification, when referring generically, it shows with the reference symbol which abbreviate | omitted the alphabetic suffix, and when referring to an individual structure, it shows with the reference symbol which attached | subjected the alphabetic suffix.
このような中継親装置700−x及び中継子装置700−y、700−zを含む遠隔監視制御システム1000では、次のようなシーケンスによって監視及び/又は制御される。 In the remote monitoring and control system 1000 including the relay master device 700-x and the relay slave devices 700-y and 700-z, monitoring and / or control is performed according to the following sequence.
図11は、背景技術に係る遠隔監視制御システムの動作を示すシーケンス図である。図11において、中継親装置700−x及び中継子装置700−y、700−zを介することなく直接第1伝送路12を介して通信を行う機器11(11−a、11−b)から監視情報を監視制御装置10が収集する場合、例えば図11に示す例では機器11−aから監視制御装置10が監視情報を収集する場合には、監視制御装置10は、監視情報を収集すべき機器11−aの機器ID(=1)及び監視情報を要求する旨の情報を収容した通信信号(監視要求信号)を第1伝送路12に送信する(C1001)。この監視要求信号を受信した機器11−aは、監視制御装置10宛てに監視情報を収容した通信信号(応答信号)を返信する(C1002)。そして、監視制御装置10は、この応答信号を受信することによって機器11−aから監視情報を収集して監視する。
FIG. 11 is a sequence diagram showing the operation of the remote monitoring control system according to the background art. In FIG. 11, monitoring is performed from the device 11 (11-a, 11-b) that communicates directly via the
ここで、機器IDは、機器11を識別し特定するために当該機器11に固有に割り当てられた記号列(1個の記号から成る場合も含む。)であり、通信プロトコルの通信アドレスの役割を兼ねている。機器11−a、機器11−b、機器11−c、機器11−d、機器11−e及び機器11−fの機器ID(通信アドレス)は、例えば、それぞれ、1、2、3、4、5及び6である。
Here, the device ID is a symbol string (including a case where the
一方、中継親装置700−x及び中継子装置700−y、700−zを介して通信を行う機器11(11−c〜11−f)から監視情報を監視制御装置10が収集する場合、例えば図11に示す例では機器11−cから監視情報を監視装置10が収集する場合には、監視制御装置10は、監視情報を収集すべき機器11−c宛てに監視要求信号を第1伝送路12に送信する(C1011)。この監視要求信号は、中継親装置700−xで第1通信プロトコルから第2通信プロトルに変換されて第3伝送路14で中継子装置700−yに送信され(C1012)、中継子装置700−yで第2通信プロトコルから第1通信プロトコルに再変換されることによって元の通信プロトコルに戻されて第2伝送路13−aに送信される(C1013)。この監視要求信号を受信した機器11−cは、監視制御装置10宛てに監視情報を収容した通信信号(応答信号)を返信する(C1014)。返信の応答信号は、中継子装置700−yで第1通信プロトコルから第2通信プロトルに変換されて第3伝送路14で中継親装置700−xに送信され(C1015)、中継親装置700−xで第2通信プロトコルから第1通信プロトコルに再変換されることによって元の通信プロトコルに戻されて第1伝送路12に送信される(C1016)。そして、監視制御装置10は、この応答信号を受信することによって機器11−cから監視情報を収集して監視する。
On the other hand, when the
なお、有線通信を行う有線通信装置部と、有線用プロトコルと無線用プロトコルとの相互間で通信プロトコルの変換を行う有線・無線プロトコル変換機能内蔵の演算処理部と、無線通信を行う無線通信装置部とを備えた通信中継器が、例えば、特許文献1に開示されている。
ところで、監視制御装置と中継親装置との間の通信に半二重通信が採用される場合がある。半二重通信は、1本の通信線で送信と受信とを切替ながら通信を行う通信方式であるため、送信用の通信線と受信用の通信線との2本の通信線を用いる全二重通信よりも通信線が少ない分、施工が容易であり施工費も廉価であって施工性が高いが、通信信号の衝突を避ける必要がある。 By the way, half-duplex communication may be employed for communication between the monitoring control device and the relay master device. Half-duplex communication is a communication method in which communication is performed while switching between transmission and reception using a single communication line. Therefore, all two communication lines using a communication line for transmission and a communication line for reception are used. Since there are fewer communication lines than heavy communication, construction is easy, construction costs are low, and workability is high, but it is necessary to avoid collision of communication signals.
この通信信号の衝突は、監視制御装置が送信した通信信号に対する応答信号が遅延すると監視制御装置がこの通信信号をリトライで送信するので、監視制御装置が送信した通信信号に対する応答信号が遅延することによって増加してしまう。通信信号の衝突が増加すると、監視制御装置と中継親装置との間の通信レートが低下してしまう。 When the response signal for the communication signal transmitted from the supervisory control device is delayed, the supervisory control device transmits this communication signal by retrying, so that the response signal for the communication signal transmitted from the supervisory control device is delayed. Will increase. When the collision of communication signals increases, the communication rate between the monitoring control device and the relay master device decreases.
この応答信号の遅延原因は、監視制御装置と機器との間の通信に中継親装置及び中継子装置が介する場合、監視制御装置と機器とが直接通信を行う場合に較べて、その第1原因として中継親装置及び中継子装置における通信プロトコルの変換処理を最低4回要すること、その第2原因として中継親装置及び中継子装置で通信信号の送受信が最低2回発生すること、その第3原因として中継親装置と中継子装置との間における伝送路は無線媒体や電力線が通常用いられるのでその通信状態が不安定であるため中継親装置と中継子装置との間でリトライが生じること、その第4原因として監視制御装置と中継親装置との間の通信速度が通常中継親装置と中継子装置との間の通信速度より低速であること等である。 This response signal delay is caused by the first cause when the relay master device and the relay child device are in communication between the monitoring control device and the device, compared to when the monitoring control device and the device communicate directly. The communication protocol conversion process in the relay master device and the relay slave device is required at least four times, and the second cause is that the transmission and reception of communication signals occurs at least twice in the relay master device and the relay slave device, the third cause As the transmission path between the relay master device and the relay slave device is usually a wireless medium or power line, the communication state is unstable, so that a retry occurs between the relay master device and the relay slave device. The fourth cause is that the communication speed between the monitoring control device and the relay parent device is lower than the communication speed between the normal relay parent device and the relay child device.
これら応答信号の遅延原因のうちの第3原因は、通信状態によってリトライ回数が左右されるため、第3原因による遅延時間は、設計段階や施工段階等で予め予測することが難しい。また、このリトライ処理は、他の原因による遅延時間に較べて比較的長時間であり、容易に対応することができない。 Of these response signal delay causes, the number of retries depends on the communication state. Therefore, it is difficult to predict the delay time due to the third cause in the design stage, the construction stage, or the like. Further, this retry process is relatively long compared to the delay time due to other causes, and cannot be easily handled.
一方、第3原因による遅延時間を、最大リトライ回数に基づいて設定すると、監視制御装置における通信信号の送信からその応答信号を受信するまでに許容される最大時間であるタイムアウト時間が長すぎてしまい、目的に適った遠隔監視制御システムを提供できなくなってしまう。 On the other hand, if the delay time due to the third cause is set based on the maximum number of retries, the timeout time that is the maximum time allowed from the transmission of the communication signal to the reception of the response signal in the supervisory control device is too long. Therefore, it becomes impossible to provide a remote monitoring control system suitable for the purpose.
また、上記特許文献1には、通信信号の衝突に関した記載はない。 In addition, the above-mentioned Patent Document 1 has no description regarding collision of communication signals.
本発明は、上述の事情に鑑みて為された発明であり、監視制御装置と中継親装置との間における通信が半二重通信である場合に、通信信号の衝突を抑制することができる中継親装置を提供することを目的とする。そして、このような中継親装置を用いた遠隔監視制御システムを提供することを目的とする。 The present invention has been made in view of the above-described circumstances, and is capable of suppressing collision of communication signals when communication between the monitoring control device and the relay master device is half-duplex communication. An object is to provide a parent device. And it aims at providing the remote monitoring control system using such a relay parent apparatus.
上述の目的を達成するために、本発明に係る、機器を監視及び/又は制御する監視制御装置に第1伝送路で接続されると共に、前記機器に第2伝送路で接続して通信信号を中継する中継子装置に第3伝送路で接続され、前記監視制御装置と前記機器との間の通信信号を前記中継子装置を介して中継する中継親装置において、前記監視制御装置との間の通信は、半二重通信であって、前記監視制御装置から受信した前記監視制御装置の前記機器に宛てた第1通信信号を前記中継子装置に送信することによって前記第1通信信号を中継すると共に、前記第1通信信号の返信であって前記中継子装置から受信した前記機器の前記監視制御装置に宛てた第2通信信号を前記監視制御装置に送信することによって中継する中継処理部と、前記監視制御装置が前記第1通信信号をリトライする時間間隔である監視制御装置のリトライ時間間隔を測定し、前記測定した監視制御装置のリトライ時間間隔よりも短い時間に前記中継親装置のタイムアウト時間を設定するタイムアウト時間設定部とを備え、前記中継処理部は、前記第2通信信号を前記中継子装置から受信するまでの間にリトライによる前記第1通信信号を前記監視制御装置から受信した場合に、前記リトライによる前記第1通信信号を破棄し、前記第1通信信号を前記中継子装置に送信してから当該中継親装置のタイムアウト時間を経過した後に、前記第2通信信号を前記中継子装置から受信した場合に、前記第2通信信号の前記監視制御装置への送信を保留し、前記第2通信信号を前記中継子装置から受信した時刻と前記監視制御装置による次のリトライの前記第1通信信号を受信する時刻との差が所定値以内である場合には、前記監視制御装置による次のリトライの前記第1通信信号に対する応答として前記第2通信信号を送信することを特徴とする。 In order to achieve the above-described object, the present invention is connected to a monitoring control device for monitoring and / or controlling a device according to the present invention via a first transmission line, and also connected to the device via a second transmission line to send a communication signal In the relay master device that is connected to the relay slave device to be relayed via the third transmission path and relays the communication signal between the monitoring control device and the device via the relay slave device, The communication is half-duplex communication, and relays the first communication signal by transmitting a first communication signal received from the monitoring control device to the device of the monitoring control device to the relay device. And a relay processing unit that relays the second communication signal that is a reply to the first communication signal and that has been received from the relay device and addressed to the monitoring control device of the device, to the monitoring control device ; The monitoring control device Measures the retry time interval of the monitoring control device, which is the time interval for retrying the first communication signal, and sets the timeout time of the relay parent device to a time shorter than the measured retry time interval of the monitoring control device A time setting unit, and when the relay processing unit receives the first communication signal from the monitoring control device until the second communication signal is received from the relay device, the retry processing unit The second communication signal is received from the relay device after a time-out period of the relay parent device has elapsed since the first communication signal was discarded by and the first communication signal was transmitted to the relay device. The suspension of transmission of the second communication signal to the monitoring control device, and the time when the second communication signal is received from the relay device and the monitoring control device. When the difference from the time when the first communication signal of the next retry is received is within a predetermined value, the second communication signal is used as a response to the first communication signal of the next retry by the monitoring controller. It is characterized by transmitting .
そして、この中継親装置において、前記中継子装置を介した前記機器との間の通信における通信信号を送信してからその返信を受信するまでの最短の応答時間を記憶する記憶部をさらに備え、前記中継処理部は、さらに、前記監視制御装置のタイムアウト時間と前記最短の応答時間と前記中継子装置との間の通信における当該中継親装置のリトライ時間間隔に基づいて前記中継子装置との間の通信における当該中継親装置のリトライ回数を求めることを特徴とする。 And in this relay parent device, further comprising a storage unit for storing the shortest response time from transmission of a communication signal in communication with the device via the relay child device until reception of the reply, The relay processing unit further communicates with the relay slave device based on a retry time interval of the relay master device in communication between the timeout time of the monitoring control device, the shortest response time, and the relay slave device. The number of retries of the relay master device in the communication is obtained.
また、この中継親装置において、前記中継処理部は、さらに、前記中継子装置を介した前記機器との間の通信における通信信号を送信してからその返信を受信するまでの応答時間を通信ごとに測定し、前記測定した応答時間が前記最短の応答時間よりも短い場合に前記最短の応答時間を前記測定した応答時間で更新することを特徴とする。 Further, in this relay master device, the relay processing unit further sets a response time from transmission of a communication signal in communication with the device via the relay slave device to reception of the response for each communication. When the measured response time is shorter than the shortest response time, the shortest response time is updated with the measured response time.
そして、本発明に係る、監視及び/又は制御対象の機器と、前記機器を監視及び/又は制御する監視制御装置と、前記機器に第2伝送路で接続して通信信号を中継する中継子装置と、前記監視制御装置に第1伝送路で接続されると共に前記中継子装置に第3伝送路で接続され前記監視制御装置と前記機器との間の通信信号を前記中継子装置を介して中継する中継親装置とを備える遠隔監視制御システムにおいて、前記監視制御装置と前記中継親装置との間の通信は、半二重通信であって、前記中継親装置は、前記監視制御装置から受信した前記監視制御装置の前記機器に宛てた第1通信信号を前記中継子装置に送信することによって前記第1通信信号を中継すると共に、前記第1通信信号の返信であって前記中継子装置から受信した前記機器の前記監視制御装置に宛てた第2通信信号を前記監視制御装置に送信することによって中継する中継処理部と、前記監視制御装置が前記第1通信信号をリトライする時間間隔である監視制御装置のリトライ時間間隔を測定し、前記測定した監視制御装置のリトライ時間間隔よりも短い時間に前記中継親装置のタイムアウト時間を設定するタイムアウト時間設定部とを備え、前記中継処理部は、前記第2通信信号を前記中継子装置から受信するまでの間にリトライによる前記第1通信信号を前記監視制御装置から受信した場合に、前記リトライによる前記第1通信信号を破棄し、前記第1通信信号を前記中継子装置に送信してから当該中継親装置のタイムアウト時間を経過した後に、前記第2通信信号を前記中継子装置から受信した場合に、前記第2通信信号の前記監視制御装置への送信を保留し、前記第2通信信号を前記中継子装置から受信した時刻と前記監視制御装置による次のリトライの前記第1通信信号を受信する時刻との差が所定値以内である場合には、前記監視制御装置による次のリトライの前記第1通信信号に対する応答として前記第2通信信号を送信することを特徴とする。 Further, according to the present invention, a device to be monitored and / or controlled, a monitoring control device that monitors and / or controls the device, and a relay device that relays a communication signal by connecting to the device via a second transmission path And connected to the supervisory control device via a first transmission line and connected to the relay device via a third transmission line, and relays communication signals between the supervisory control device and the device via the relay device. In the remote monitoring control system including the relay master device, the communication between the monitor control device and the relay master device is half-duplex communication, and the relay master device has received from the monitor control device The first communication signal addressed to the device of the supervisory control device is relayed to the relay device, thereby relaying the first communication signal, and the reply of the first communication signal received from the relay device. Said equipment Retries the monitoring and control device and the relay processing unit for relaying by a second communication signal transmitted to the monitoring control device addressed to the monitoring control device is a time interval to retry the first communication signal monitoring controller A time-out time setting unit that measures a time interval and sets a time-out time of the relay parent device at a time shorter than the measured retry time interval of the monitoring and control device, and the relay processing unit includes the second communication signal When the first communication signal by retry is received from the monitoring and control device until it is received from the relay device, the first communication signal by the retry is discarded , and the first communication signal is relayed by the relay When the second communication signal is received from the relay child device after the time-out time of the relay parent device has elapsed since the transmission to the child device, Suspending transmission of the second communication signal to the monitoring control device, receiving the second communication signal from the relay device, and receiving the first communication signal of the next retry by the monitoring control device; If the difference is within a predetermined value, the second communication signal is transmitted as a response to the first communication signal of the next retry by the monitoring control device .
このような構成の中継親装置及び遠隔監視システムでは、中継親装置と監視制御装置との間の通信が半二重通信であって、中継親装置の中継処理部が監視制御装置から受信した監視制御装置の機器に宛てた第1通信信号を中継子装置に送信してから中継親装置のタイムアウト時間を経過した後に、第1通信信号の返信である機器から監視制御装置に宛てた第2通信信号を中継子装置から受信した場合に、第2通信信号の監視制御装置への送信を保留する。このため、監視制御装置が中継親装置に送信する第1通信信号との衝突を抑制することができる。 In the relay master device and the remote monitoring system configured as described above, the communication between the relay master device and the monitoring control device is half-duplex communication, and the monitoring received by the relay processing unit of the relay parent device from the monitoring control device The second communication addressed to the monitoring control device from the device that is the reply of the first communication signal after the time-out time of the relay master device has elapsed since the transmission of the first communication signal addressed to the device of the control device to the relay slave device When the signal is received from the relay device, the transmission of the second communication signal to the monitoring control device is suspended. For this reason, the collision with the 1st communication signal which a supervisory control apparatus transmits to a relay parent apparatus can be suppressed.
以下、本発明に係る実施形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、その説明を省略する。
(第1の実施形態の構成)
図1は、実施形態に係る遠隔監視制御システムの構成を示す図である。図2は、第1の実施形態に係る中継親装置の構成を示すブロック図である。
Embodiments according to the present invention will be described below with reference to the drawings. In addition, the structure which attached | subjected the same code | symbol in each figure shows that it is the same structure, The description is abbreviate | omitted.
(Configuration of the first embodiment)
FIG. 1 is a diagram illustrating a configuration of a remote monitoring control system according to the embodiment. FIG. 2 is a block diagram illustrating a configuration of the relay master device according to the first embodiment.
図1において、第1の実施形態に係る遠隔監視制御システム1は、背景技術に係る中継装置700−xの代わりに以下に説明する第1の実施形態に係る中継親装置20を用いる点を除き、図10を用いて説明した遠隔制御システム1000と同様である。そのため、監視装置10、第1乃至第3伝送路12、13、14及び中継子装置700−y、700−zの説明を省略する。
In FIG. 1, the remote monitoring control system 1 according to the first embodiment uses a
ここで、機器11についてさらに詳述すると、機器11は、遠隔監視制御システム1の監視及び/又は制御の対象であり、電気エネルギと関係して動作する装置である。機器11は、通信を行う通信部と、機器11の機能を実行する機能部とを備えて構成され、自発的に、あるいは、機器監視制御装置10から直接又は中継親装置20と中継子装置700とを介して受信した機能部の状態を要求する監視要求に従って、機能部の状態(例えば、電源のオン・オフ、稼動状態、故障状態、検知状態等)を機器監視制御装置10に直接又は中継親装置20と中継子装置700とを介して送信したり、機能部の状態を制御する制御要求を機器監視制御装置10から直接又は中継親装置20と中継子装置700とを介して受信し制御要求の通りに制御したりするものである。機能部は、機器11が、例えば、照明器具である場合には、光を生じる発光機能である。照明器具の他に、例えば、空調装置等の住戸環境やオフィス環境等を調整する装置、電気錠、給湯装置及び換気扇等の住戸設備、誘導灯及び非常灯等の防災設備、テレビジョン、ビデオテープレコーダ、DVDレコーダ及び洗濯機等の家電製品、コンピュータ等の情報処理装置、電話機及びファクシミリ装置等の通信機器、脈拍計、体温計、血中酸素濃度計及び心電図計等の医療機器、ガスメータ、電力メータ及び水道メータ等の計量メータ、防災センサ、防犯センサ、温度センサ及び湿度センサ等のセンサ等である。
Here, the
これら機器のうち、照明器具、空調装置、浴槽にお湯を張る給湯装置、防災設備、計量メータ、電気錠、防災センサ及び防犯センサ等の建物に備え付けられる建物用機器が好適である。照明器具や空調装置や給湯装置の場合には、建物に入る前に遠隔制御によって快適な環境を提供することができる。防災設備の場合には、遠隔監視によって点検を行うことで災害時に安全を確保することができる。計量メータの場合には、使用量を遠隔に検針することで課金の効率化を図ることができる。また、各箇所の使用量を遠隔に集中的にモニタして使用実態を把握することで無駄を省くことができる。電気錠の場合には、鍵の掛け忘れに対処することができる。防災センサや防犯センサの場合には、遠隔監視によって被害の防止や拡大を防ぐことができる。 Of these devices, lighting devices, air conditioners, hot water supply devices for hot water in bathtubs, disaster prevention facilities, metering meters, electric locks, disaster prevention sensors, security sensors, and the like are preferable for building equipment. In the case of lighting fixtures, air conditioners, and hot water heaters, a comfortable environment can be provided by remote control before entering a building. In the case of disaster prevention facilities, safety can be ensured in the event of a disaster by performing inspections by remote monitoring. In the case of a metering meter, the metering efficiency can be improved by measuring the amount of use remotely. In addition, waste can be eliminated by monitoring the amount of usage at each location remotely and grasping the actual usage. In the case of an electric lock, it can cope with forgetting to lock. In the case of a disaster prevention sensor or crime prevention sensor, it is possible to prevent damage and prevent expansion by remote monitoring.
図2において、第1の実施形態に係る中継親装置20は、第1通信インタフェース部(以下、「第1通信IF部」と略記する。)21と、制御部22と、記憶部23と、第2通信インタフェース部(以下、「第2通信IF部」と略記する。)24とを備えて構成される。
In FIG. 2, the
第1通信IF部21は、第1伝送路12を用いて通信を行うための通信インタフェース回路であり、制御部22からのデータを第1伝送路12の第1通信プロトコルに従った通信信号を生成すると共に第1伝送路12からの通信信号を制御部22が処理可能な形式のデータに変換する。
The first communication IF
第2通信IF部24は、第3伝送路14を用いて通信を行うための通信インターフェース回路であり、制御部22からのデータを第3伝送路14の第2通信プロトコルに従った通信信号を生成すると共に、第3伝送路14の通信信号を制御部22が処理可能な形式のデータに変換する。
The second communication IF
ここで、第1伝送路12の伝送媒体及び通信プロトコルと第2伝送路13の伝送媒体及び通信プロトコルは、異なってもよいが、本実施形態では、同じ伝送媒体及び通信プロトコルを採用している。このため、中継子装置700の第1及び第2通信IF部702、701は、第1及び第2通信IF部21、24とそれぞれ同様である。
Here, the transmission medium and communication protocol of the
また、第2通信IF部24は、例えば、送信する場合には第1通信プロトコルに従った形式のデータを第2通信プロトコルでカプセル化する一方、受信する場合にはデカプセル化するものでもよい。即ち、第2通信IF部24は、送信する場合には、制御部22から通知された第1通信プロトコルに従った形式のデータを、第2通信プロトコルのペイロード部に収容することによってカプセル化して、第3伝送路14に送信すべき通信信号を生成する。一方、第2通信IF部24は、受信する場合には、第2伝送路14から受信した通信信号のペイロード部からデータを取り出すことによってデカプセル化して、制御部22に出力すべきデータを生成する。このように第1通信プロトコルから第2通信プロトコルへの変換は、カプセル化によって行われるので、第1通信プロトコルから第2通信プロトコルへ変換する際に、第1通信プロトコルの通信信号に収容されているデータを第2通信プロトコルのフォーマットに合わせて入れ替え等を行って第2通信プロトコルの通信信号を生成する必要がない。また、逆に、第2通信プロトコルから第1通信プロトコルへの変換は、デカプセル化によって行われるので、第2通信プロトコルから第1通信プロトコルへ変換する際に、第2通信プロトコルの通信信号に収容されているデータをそのまま取り出せばよい。このため、変換処理が容易であり、高速に処理することができる。従って、通信プロトコルの変換にカプセリングを採用することによって、中継親装置20と中継子装置700との間における通信信号の中継処理に要する時間をより短くすることができる。
In addition, for example, the second communication IF
第1通信プロトコルと第2通信プロトコルとは、互いに異なる通信プロトコルであり、例えば、第1通信プロトコルは、RS485のデータ信号線プロトコルであり、第2通信プロトコルは、電力線通信プロトコル、微弱無線、特定小電力無線及びブルーツゥース(Bluetooth;登録商標)等の近距離無線プロトコル等である。 The first communication protocol and the second communication protocol are different from each other. For example, the first communication protocol is a data signal line protocol of RS485, and the second communication protocol is a power line communication protocol, weak wireless, specific Short-range radio protocols such as low-power radio and Bluetooth (registered trademark).
制御部22は、例えば、マイクロプロセッサ及びその周辺回路等で構成され、中継処理部31と、タイムアウト時間設定部32とを備えると共に、各プログラムに従い第1通信IF部21、記憶部23及び第2通信IF部24を当該機能に応じてそれぞれ制御する。
The
中継処理部31は、後述の動作によって、機器11宛ての通信信号を監視制御装置10から受信した場合に中継子装置700に送信することによってこの機器11宛ての通信信号を中継すると共に機器11からの監視制御装置10宛ての通信信号を中継子装置700から受信した場合に監視制御装置10に送信することによって機器11からの監視制御装置10宛ての通信信号を中継する。タイムアウト時間設定部32は、後述の動作によって当該中継親装置12のタイムアウト時間を設定する。
The
記憶部23は、中継情報を記憶する中継情報記憶部41と、監視制御装置タイムアウト情報を記憶する監視制御装置タイムアウト情報記憶部42と、最短応答時間を記憶する最短応答時間記憶部43と、中継親装置タイムアウト情報を記憶する中継親装置タイムアウト記憶部44とを備え、本中継親装置20を動作させるための制御プログラム等の各プログラム、各プログラムの実行に必要な情報等を記憶すると共に、制御部22に対する所謂ワーキングメモリである。記憶部23は、例えばRAM(Random Access Memory)等の揮発性記憶素子、EEPROM(Electrically Erasable Programmable Read Only Memory)等の書換え可能な不揮発性記憶素子、及び、ROM(Read Only Memory)等の不揮発性記憶素子等の半導体記憶素子を備えて構成される。
The
中継情報は、監視制御装置10と機器11との間における通信信号を中継するために必要な情報であり、例えば、中継子装置700と当該中継子装置700に第2伝送路13を介して接続している機器11との対応関係を示す情報である。この対応関係は、例えば、中継子装置700の通信アドレスと機器11の通信アドレスとを対応付けることによって示される。中継子装置700の通信アドレスは、中継子装置700を識別し特定するために当該中継子装置700に固有に割り当てられた記号列(1個の記号から成る場合も含む。)である中継子装置IDであり、通信アドレスとIDとが兼用されている。機器11の通信アドレスは、機器11を識別し特定するために当該機器11に固有に割り当てられた記号列である機器IDであり、通信アドレスとIDとが兼用されている。
The relay information is information necessary for relaying a communication signal between the
図1に示す例では、中継子装置700−y及び中継子装置700−zの通信アドレス(中継子装置ID)は、例えば、それぞれ「y」及び「z」であり、機器11−a、機器11−b、機器11−c、機器11−d、機器11−e及び機器11−fの通信アドレス(機器ID)は、例えば、それぞれ、「1」、「2」、「3」、「4」、「5」及び「6」である。 In the example illustrated in FIG. 1, the communication addresses (relay child device IDs) of the relay child device 700-y and the relay child device 700-z are, for example, “y” and “z”, respectively, and the device 11-a and the device The communication addresses (device IDs) of 11-b, device 11-c, device 11-d, device 11-e, and device 11-f are, for example, “1”, “2”, “3”, “4”, respectively. ”,“ 5 ”and“ 6 ”.
また、中継親装置20の通信アドレスは、同様に、中継親装置20を識別し特定するために当該中継親装置20に固有に割り当てられた記号列である中継親装置IDであり、通信アドレスとIDとが兼用されている。図1に示す例では、中継親装置20の通信アドレス(中継親装置ID)は、例えば、「x」である。
Similarly, the communication address of the
監視制御装置タイムアウト情報は、監視制御装置10が機器11宛ての通信信号(コマンド信号)を第1伝送路12に送信してからこの機器11宛ての通信信号(コマンド信号)に対する返信である通信信号(応答信号)を第1伝送路12から受信するまでの返信として許容され得る時間である監視制御装置10のタイムアウト時間TOsc、監視制御装置10がコマンド信号のリトライを行う時間間隔である監視制御装置10のリトライ時間間隔TRsc、監視制御装置10がコマンド信号のリトライを行う回数である監視制御装置10のリトライ回数NRsc、及び、監視制御装置10の予備時間TSscである。監視制御装置10の予備時間TSscは、予め監視制御装置タイムアウト情報記憶部42に記憶される。一方、これら監視制御装置10のタイムアウト時間TOsc、リトライ時間間隔TRsc及びリトライ回数NRscは、後述するように、当該中継親装置20が起動後に測定によって取得し、監視制御装置タイムアウト情報記憶部42に記憶される。
The monitoring control device timeout information is a communication signal that is a response to the communication signal (command signal) addressed to the
監視制御装置10の予備時間TSscは、監視制御装置10がコマンド信号を第1伝送路12に送信してからこのコマンド信号に対する応答信号を受信するまでの通常要する時間以上の時間であり、仕様によって決定されるが、例えば、第1伝送路12の通信速度及びコマンド信号のデータ量等に応じて予め設定される。監視制御装置10の予備時間TSscは、第1伝送路12の通信速度が速ければ短くなり、また、コマンド信号のデータ量が少なければ短くなる。
The spare time TSsc of the
コマンドは、監視要求及び/又は制御要求のことであり、コマンド信号は、監視要求を収容した通信信号(監視要求信号)と、制御要求を収容した通信信号(制御要求信号)と、監視要求及び制御要求を収容した通信信号(監視制御要求信号)とがある。応答信号には、監視情報が収容される。 The command is a monitoring request and / or a control request, and the command signal includes a communication signal (monitoring request signal) containing a monitoring request, a communication signal (control request signal) containing a control request, a monitoring request and There is a communication signal (monitoring control request signal) containing a control request. Monitoring information is accommodated in the response signal.
監視情報は、遠隔監視制御システム1の監視目的及び/又は制御目的に応じた機器11に関する情報であり、機器11の機能部で検出したデータや機能部の状態(例えば、電源のオン・オフ、稼動状態、故障状態等)に関するデータである。例えば、遠隔監視制御システム1の監視目的が負荷の消費電力である場合には、機器11は、電力メータであり、監視情報は、電力メータの電力量である。また例えば、遠隔監視制御システム1の監視目的が防犯である場合には、機器11は、防犯センサであり、監視情報は、防犯センサにおけるイベントの発報の有無である。また例えば、遠隔監視制御システム1の制御目的が照明器具の点灯制御である場合には、機器11は、照明器具であり、監視情報は、照明器具のオン・オフである。また例えば、遠隔監視制御システム1の制御目的が空調装置の稼動である場合には、機器11は、空調装置であり、監視情報は、空調装置のオン・オフ、設定温度及び設定風量等である。
The monitoring information is information related to the
最短応答時間TAminは、監視制御装置10から受信したコマンド信号を中継子装置700を介して機器11に送信(中継)する場合に、コマンド信号を第3伝送路14に送信してからこのコマンド信号に対する応答信号を受信するまでに要する応答時間のうち、最も短い応答時間である。
The shortest response time TAmin is obtained when the command signal received from the
中継親装置タイムアウト情報は、監視制御装置10から受信した中継すべきコマンド信号を当該中継親装置20が第3伝送路14に送信してからこのコマンド信号に対する応答信号を第3伝送路14から受信するまでの返信として許容され得る時間である中継親装置20のタイムアウト時間TOpr、中継親装置20のリトライ時間間隔TRsc及び中継親装置20のリトライ回数NRscである。中継親装置20のリトライ時間間隔TRprは、予め中継親装置タイムアウト情報記憶部44に記憶される。一方、これら中継親装置20のタイムアウト時間TOpr及びリトライ回数NRprは、後述するように、当該中継親装置20が起動後に所定の諸量を測定することによって取得され、中継親装置タイムアウト情報記憶部44に記憶される。
The relay master device time-out information is received from the third transmission line 14 after the
次に、第1の実施形態の動作について説明する。
(第1の実施形態の動作)
まず、中継親装置20のタイムアウト時間を設定するタイムアウト時間設定処理について説明する。図3は、第1の実施形態に係る中継親装置のタイムアウト時間を設定する動作を示すフローチャートである。
Next, the operation of the first embodiment will be described.
(Operation of the first embodiment)
First, a timeout time setting process for setting the timeout time of the
機器11の設置場所に起因して第1伝送路12に直接接続できない場合や機器11が増設される場合等のために、第1伝送路12を介して監視制御装置10に通信可能に中継親装置20が配置され、例えば、その電源が投入されると、中継親装置20の制御部22におけるタイムアウト時間設定部32が起動し、以下の動作を実行する。
When the
図3において、タイムアウト時間設定部32は、監視制御装置タイムアウト情報記憶部42に監視制御装置タイムアウト情報が設定済みであるか否かを判断する(S11)。判断の結果、監視制御装置タイムアウト情報が設定済みである場合(YES)には、タイムアウト時間設定部32は、このタイムアウト時間設定処理を終了する。一方、判断の結果、監視制御装置タイムアウト情報が未設定である場合(NO)には、監視制御装置10のタイムアウト時間TOsc、そのリトライ時間間隔TRsc及びそのリトライ回数NRscを測定すべく、タイムアウト時間設定部32は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号Mを受信すると、この受信したコマンド信号Mを記憶部23に記憶する(S12)。そして、タイムアウト時間設定部32は、第1回目として、監視制御装置10のリトライ時間間隔TRsc(1)の計測を開始する(S13)。
In FIG. 3, the timeout
タイムアウト時間設定部32は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号Nを受信すると(S14)、この受信したコマンド信号Nが記憶部23に記憶しているコマンド信号Mに一致するか否かを判断する(S15)。即ち、タイムアウト時間設定部32は、監視制御装置10がコマンド信号Mをリトライ(再送信)したか否かを判断する。この判断は、例えば、コマンド信号Mとコマンド信号Nとの全ビットを比較したり、シーケンス番号を比較したりすることによって行う。
The timeout
判断の結果、一致しない場合(NO)には、タイムアウト時間設定部32は、タイムアウト時間設定動作を最初から開始すべく、処理を処理S12に戻して通信信号の受信待ちを行う。一方、判断の結果、一致する場合(YES)には、監視制御装置10のリトライ時間間隔TRsc(1)の計測を終了し、第1回目における監視制御装置10のリトライ時間間隔TRsc(1)を記憶部23に記憶する(S16)。
As a result of the determination, if they do not match (NO), the timeout
次に、タイムアウト時間設定部32は、監視制御装置10のリトライ回数NRscを1だけインクリメントする(S17)。即ち、監視制御装置10のリトライ回数NRsc=1である。
Next, the timeout
そして、タイムアウト時間設定部32は、監視制御装置タイムアウト情報の測定時間が終了したか否かを判断する(S18)。監視制御装置タイムアウト情報の測定時間は、監視制御装置10のタイムアウト時間を測定するために充分な時間であり、例えば、通常、監視制御装置10にそのタイムアウト時間として設定されると想定される時間以上の時間である。
Then, the timeout
判断の結果、監視制御装置タイムアウト情報の測定時間が終了していない場合には、タイムアウト時間設定部32は、次の監視制御装置10のリトライ時間間隔TRsc(2)を測定すべく、処理を処理S13に戻す。そして、タイムアウト時間設定部32は、処理S13乃至処理S18を実行することにより、第2回目における監視制御装置10のリトライ時間間隔TRsc(2)を測定し、リトライ回数NRscを計数する。このようにタイムアウト時間設定部32は、監視制御装置タイムアウト情報の測定時間が経過するまで、処理S13乃至処理S18を繰り返し実行して、1又は複数の監視制御装置10のリトライ時間間隔TRsc(n)及びリトライ回数NRscを測定する。
If the measurement time of the monitoring control device timeout information has not ended as a result of the determination, the timeout
一方、処理S18における判断の結果、監視制御装置タイムアウト情報の測定時間が終了している場合には、タイムアウト時間設定部32は、記憶部23に記憶されている監視制御装置10のリトライ時間間隔TRsc(1)〜TRsc(n)及びリトライ回数NRscに基づいて監視制御装置10のリトライ時間間隔TRsc(1)〜TRsc(n)の平均値を演算し、演算結果の平均値を監視制御装置10のリトライ時間間隔TRscとし、これを監視制御装置タイムアウト情報記憶部42に記憶する。タイムアウト時間設定部32は、記憶部23に記憶されている監視制御装置10のリトライ時間間隔TRsc(1)〜TRsc(n)の和に監視制御装置10の予備時間TSscを加算し、この結果を監視情報装置10のタイムアウト時間TOscとし、これを監視制御装置タイムアウト情報記憶部42に記憶する。そして、タイムアウト時間設定部32は、記憶部23に記憶されている監視制御装置10のリトライ回数を監視制御装置タイムアウト情報記憶部42に記憶する(S19)。
On the other hand, if the measurement time of the monitoring control device timeout information has ended as a result of the determination in step S18, the timeout
次に、タイムアウト時間設定部32は、監視制御装置10のリトライ時間間隔TRscに基づいて中継親装置20のタイムアウト時間TOprを算出し、この算出した中継親装置20のタイムアウト時間TOprを中継親装置タイムアウト情報記憶部44に記憶する(S20)。
Next, the timeout
例えば、タイムアウト時間設定部32は、中継親装置20のタイムアウト時間TOprを監視制御装置10のリトライ時間間隔TRscよりも短い値に設定する。より具体的には、例えば、タイムアウト時間設定部32は、監視制御装置10のリトライ時間間隔TRscから監視制御装置10の予備時間TSscを減算することによって中継親装置20のタイムアウト時間TOprを算出し、設定する。
For example, the timeout
次に、タイムアウト時間設定部32は、処理S20で設定した中継親装置20のタイムアウト時間TOpr及びリトライ時間間隔TRpr等に基づいてリトライ回数NRprを算出し、この算出したリトライ回数NRprを中継親装置タイムアウト情報記憶部44に記憶する(S21)。
Next, the timeout
例えば、中継親装置タイムアウト情報記憶部44に中継親装置20の予備時間TSprを予め記憶しておき、タイムアウト時間設定部32は、中継親装置20のタイムアウト時間間隔TOprから中継親装置20の予備時間TSprを減算し、その減算結果を中継親装置20のリトライ時間間隔TRprで除算し、除算結果の最大の整数値を中継親装置20のリトライ回数NRprとする。中継親装置20の予備時間TSprは、中継親装置20がコマンド信号を第3伝送路14に送信してからこのコマンド信号に対する応答信号を受信するまでに通常要する時間であり、仕様によって決定されるが、例えば、第3伝送路14の通信速度及びコマンド信号のデータ量等に応じて予め設定される。
For example, the standby time TSpr of the
また例えば、タイムアウト時間設定部32は、機器11から受信応答を要求する通信信号(ピング、ping)を同報通信で第3伝送路14に送信し、その送信してから最初に受信応答を受信するまでの時間を測定し、これを初期値の最短応答時間TAmin0として最短応答時間記憶部43に記憶する。そして、タイムアウト時間設定部32は、中継親装置20のタイムアウト時間間隔TOprからこの初期値の最短応答時間TAmin0を減算し、その減算結果を中継親装置20のリトライ時間間隔TRprで除算し、除算結果の最大の整数値を中継親装置20のリトライ回数NRprとする。
Further, for example, the timeout
次に、タイムアウト時間設定部32は、記憶部23に記憶してあるコマンド信号M及びコマンド信号N(1)〜コマンド信号N(n)を破棄し、処理を終了する(S22)。
Next, the timeout
このように動作することによって、中継親装置20は、監視制御装置10のリトライ時間間隔TRsc及びリトライ回数NRscを自動的に取得することができる。また、中継親装置20は、この取得した監視制御装置10のリトライ時間間隔TRscから中継親装置20のタイムアウト時間TOpr及びリトライ回数NRprを自動的に算出し、設定することができる。特に、中継親装置20のリトライ回数NRprは、上述のように算出されるので、監視制御装置10のリトライ時間間隔TRscの範囲内で最大回数に設定され得る。
By operating in this way, the
このようなタイムアウト時間設定処理が終了すると、中継親装置20の運用が開始され、監視制御装置10と機器11との間における通信信号の中継が開始される。
When such a timeout time setting process is completed, the operation of the
図4は、第1の実施形態に係る中継親装置の中継動作を示すフローチャートである。図4において、中継処理部31は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号を受信すると、リトライの実行回数を計数するリトライカウンタRCpr等の各種変数の初期化を行って(S31)、タイムアウト用に経過時間の測定を開始し(S32)、さらに、リトライ用に経過時間の測定を開始する(S33)。そして、中継処理部31は、第1通信IF部21で受信したコマンド信号を中継すべく、第2通信IF部24からこのコマンド信号を送信する(S34)。
FIG. 4 is a flowchart showing a relay operation of the relay master apparatus according to the first embodiment. In FIG. 4, the
次に、中継処理部31は、第2通信IF部24において通信信号の受信待ちを行って、第2通信IF部24で応答信号を受信したか又はリトライ用に測定している経過時間が中継親装置20のリトライ時間間隔TRprに達したかを判断する(S35)。
Next, the
判断の結果、第2通信IF部24で応答信号を受信した場合(応答信号の受信)には、中継処理部31は、タイムアウト用に測定している経過時間を応答時間TAとすると共に、このタイムアウト用に測定している経過時間が中継親装置20のタイムアウト時間間隔TOprに達しているか否かを判断する(S36)。
As a result of the determination, when the response signal is received by the second communication IF unit 24 (reception of the response signal), the
判断の結果、中継親装置20のタイムアウト時間間隔TOprに達している場合(YES)には、タイムアウトと判断され、中継処理部31は、第2通信IF部24で受信した応答信号を監視制御装置10に中継することなく保留し(S37)、処理をS31に戻す。
As a result of the determination, if the timeout time interval TOpr of the
一方、処理S36における判断の結果、中継親装置20のタイムアウト時間間隔TOprに達していない場合(NO)には、中継処理部31は、第2通信IF部24で受信した応答信号を監視制御装置10へ中継すべく、第1通信IF部21からこの応答信号を送信する(S51)。
On the other hand, if the result of determination in step S36 is that the timeout time interval TOpr of the
次に、中継処理部31は、処理S36の応答時間TAが最短応答時間記憶部43に記憶されている最短応答時間TAminより短いか否かを判断する(S52)。判断の結果、応答時間TAが最短応答時間TAminより短くない場合(NO)には、中継処理部31は、処理を処理S31に戻す。一方、応答時間TAが最短応答時間TAminより短い場合(NO)には、中継処理部31は、この応答時間TAを新たな最短応答時間TAminとして最短応答時間記憶部43に記憶して最短応答時間TAminを更新する(S53)。
Next, the
次に、最短応答時間TAminが更新されたので、中継処理部31は、中継親装置20のリトライ回数NRprを更新してから、処理を処理S31に戻す(S54)。中継親装置20のリトライ回数NRprの更新は、新たな最短応答時間TAminを用いて、中継親装置20のタイムアウト時間間隔TOprからこの最短応答時間TAminを減算し、その減算結果を中継親装置20のリトライ時間間隔TRprで除算し、除算結果の最大の整数値を中継親装置20のリトライ回数NRprとする。
Next, since the shortest response time TAmin has been updated, the
一方、処理S35における判断の結果、リトライ時間間隔TRprに達している場合(リトライ時間)には、中継処理部31は、リトライカウンタRCprが中継親装置20のリトライ回数NRprに達しているか否かを判断する(S41)。
On the other hand, if the result of determination in step S35 is that the retry time interval TRpr has been reached (retry time), the
判断の結果、リトライカウンタが中継親装置20のリトライ回数NRprに達していない場合(YES)には、中継処理部31は、コマンド信号のリトライを行うべく、リトライカウンタRCprを1だけインクリメントを行って更新し(S42)、処理を処理S33に戻す。これによって中継処理部31は、処理S33及び処理S34を実行することによってリトライを実行し、コマンド信号がリトライで第2通信IF部24から送信される。一方、判断の結果、リトライカウンタRCprが中継親装置20のリトライ回数NRprに達している場合(NO)には、中継処理部31は、第2通信IF部24において通信信号の受信待ちを行って、第2通信IF部24から応答信号を受信したか又はタイムアウト用に測定している経過時間が中継親装置20のタイムアウト時間間隔TOprに達したかを判断する(S43)。
As a result of the determination, if the retry counter has not reached the retry count NRpr of the relay master device 20 (YES), the
判断の結果、タイムアウト時間TOprに達している場合(タイムアウト)には、中継処理部31は、処理を処理S31に戻す。この場合は、処理S31で受信したコマンド信号を中継したがその応答信号を受信できなかった場合である。一方、判断の結果、タイムアウト時間TOprに達していない場合(応答信号の受信)には、中継処理部31は、処理S36を実行する。
As a result of the determination, when the timeout time TOpr has been reached (timeout), the
次に、監視制御装置10が中継親装置20及び中継子装置700を介して機器11を監視及び/又は制御する遠隔監視制御について説明する。
Next, remote monitoring control in which the
図5は、第1の実施形態に係る監視制御装置、中継親装置、中継子装置及び機器における動作を示すシーケンス図である。図5(A)は、中継親装置のタイムアウト前に中継親装置が中継子装置から応答信号を受信した場合であり、図5(B)は、中継親装置のタイムアウト後に中継親装置が中継子装置から応答信号を受信した場合である。 FIG. 5 is a sequence diagram illustrating operations in the monitoring control device, the relay parent device, the relay child device, and the device according to the first embodiment. FIG. 5A shows a case where the relay master device receives a response signal from the relay child device before the relay parent device times out. FIG. 5B shows a case where the relay parent device relays the relay child after the relay parent device times out. This is a case where a response signal is received from the device.
図5(A)において、監視制御装置10が機器ID=「3」の機器11宛てにコマンド信号を第1伝送路12に送信すると(C11)、このコマンド信号は、中継親装置20に受信される。中継親装置20は、上述の処理S31乃至処理S34を実行し、中継すべくこのコマンド信号を第3伝送路14に送信する(C12)。このコマンド信号は、中継子装置700−yに受信される。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11にこのコマンド信号を送信する(C13)。機器ID=「3」の機器11は、このコマンド信号を受信すると、コマンド信号に収容されている指示に基づく動作を行って監視情報を収容した応答信号を中継子装置700−yに返信する(C14)。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11からこの応答信号を受信すると、中継すべくこのコマンド信号を第3伝送路14に送信する(C15)。このコマンド信号は、中継親装置20に受信される。中継親装置20は、上述の処理S35及び処理S36を実行する。ここで、この応答信号は、中継親装置20のタイムアウト前に中継親装置20から受信されるから、処理S36で中継親装置20のタイムアウト時間間隔TOprに達していないと判断される。そのため、中継親装置20は、上述の処理S51を実行し、監視制御装置10へ中継すべくこの応答信号を第1伝送路12に送信し(C16)、処理S52乃至処理S54を実行する。この応答信号は、監視制御装置10に受信され、監視制御装置10は、機器ID=「3」の機器11に宛てたコマンド信号の実行結果を知ることができる。
In FIG. 5A, when the
C16において、中継親装置20のタイムアウト時間TOprは、上述したように、監視制御装置10のリトライ時間間隔TRscよりも短い値に設定されるから、中継親装置20が送信する応答信号は、監視制御装置10が送信するリトライのコマンド信号と第1伝送路12で衝突する可能性が低い。従って、中継親装置20の応答信号と監視制御装置10のリトライのコマンド信号との第1伝送路12における衝突が抑制される。特に、中継親装置20のタイムアウト時間TOprが、監視制御装置10のリトライ時間間隔TRscから監視制御装置10の予備時間TSscを減算した値に設定された場合には、中継親装置20の応答信号と監視制御装置10のリトライのコマンド信号との第1伝送路12における衝突を略回避することができる。
In C16, the timeout time TOpr of the
また、処理S52乃至処理S54を実行することによって、最短応答時間の更新によって中継親装置20のリトライ回数NRprが更新され得るから、第3伝送路14の通信状態が安定しない場合でも、自動的に第3伝送路14の通信状態が最も安定している場合に中継親装置20のリトライ回数NRprを最適化することができる。
Further, by executing the processing S52 to S54, the retry count NRpr of the
一方、図5(B)において、監視制御装置10が機器ID=「3」の機器11宛てにコマンド信号を第1伝送路12に送信すると(C21)、このコマンド信号は、中継親装置20に受信される。中継親装置20は、上述の処理S31乃至処理S34を実行し、中継すべくこのコマンド信号を第3伝送路14に送信する(C22)。ここで、第3伝送路14の通信状態が悪い等の何らかの原因で、このコマンド信号は、中継子装置700−yに受信されない。このため、処理S35でリトライ時間TRprになったと判断され、中継親装置20は、処理S41、処理S42、処理S33及び処理S34を実行し、コマンド信号をリトライで第3伝送路14に送信する(C23)。さらに、何らかの原因で、このコマンド信号は、中継子装置700−yに受信されず、処理S35でリトライ時間TRprになったと判断され、中継親装置20は、処理S41、処理S42、処理S33及び処理S34を実行し、コマンド信号をリトライで第3伝送路14に送信する(C24)。原因が解消し、このコマンド信号は、中継子装置700−yに受信される。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11にこのコマンド信号を送信する(C25)。機器ID=「3」の機器11は、このコマンド信号を受信すると、コマンド信号に収容されている指示に基づく動作を行って監視情報を収容した応答信号を中継子装置700−yに返信する(C26)。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11からこの応答信号を受信すると、中継すべくこの応答信号を第3伝送路14に送信する(C27)。この応答信号は、中継親装置20に受信される。中継親装置20は、上述の処理S35及び処理S36を実行する。ここで、この応答信号は、中継親装置20のタイムアウト後に中継親装置20から受信されるから、処理S36で中継親装置20のタイムアウト時間間隔TOprに達していると判断される。そのため、中継親装置20は、上述の処理S37を実行し、この応答信号を保留する。即ち、この応答信号は、第1伝送路12に送信されない。
On the other hand, in FIG. 5B, when the
C27において、中継親装置20のタイムアウト時間TOprは、上述したように、監視制御装置10のリトライ時間間隔TRscよりも短い値に設定されるから、中継親装置20のタイムアウト時間TOpr後に監視制御装置10からリトライのコマンド信号が第1伝送路12に送信され得る。中継親装置20のタイムアウト後に受信した応答信号は、保留され第1伝送路12に送信されないから、監視制御装置10が送信するリトライのコマンド信号の第1伝送路12における衝突を回避することができる。
In C27, the timeout time TOpr of the
次に、別の実施形態について説明する。
(第2の実施形態の構成)
図1において、第2の実施形態に係る遠隔監視制御システム2は、背景技術に係る中継装置700−xの代わりに以下に説明する第2の実施形態に係る中継親装置50を用いる点を除き、図10を用いて説明した遠隔制御システム1000と同様である。そのため、監視装置10、第1乃至第3伝送路12、13、14及び中継子装置700−y、700−zの説明を省略する。機器11は、第1の実施形態と同様であるので説明を省略する。
Next, another embodiment will be described.
(Configuration of Second Embodiment)
In FIG. 1, the remote monitoring control system 2 according to the second embodiment uses a
図6は、第2の実施形態に係る中継親装置の構成を示すブロック図である。図6において、第2の実施形態に係る中継親装置50は、第1通信IF部21と、制御部51と、記憶部52と、第2通信IF部24とを備えて構成される。第1及び第2通信IF部21、24は、第1の実施形態と同様であるので、その説明を省略する。
FIG. 6 is a block diagram illustrating a configuration of the relay master device according to the second embodiment. In FIG. 6, the
制御部51は、例えば、マイクロプロセッサ及びその周辺回路等で構成され、中継処理部61と、リトライ情報収集部62とを備えると共に、各プログラムに従い第1通信IF部21、記憶部52及び第2通信IF部24を当該機能に応じてそれぞれ制御する。
The
中継処理部61は、後述の動作によって、機器11宛ての通信信号を監視制御装置10から受信した場合に中継子装置700に送信することによってこの機器11宛ての通信信号を中継すると共に機器11からの監視制御装置10宛ての通信信号を中継子装置700から受信した場合に監視制御装置10に送信することによって機器11からの監視制御装置10宛ての通信信号を中継する。リトライ情報収集部62は、後述の動作によって、監視制御装置10のリトライ時間間TRsc及びリトライ回数NRscを測定しこれらを収集する。
The
記憶部52は、中継情報を記憶する中継情報記憶部41と、監視制御装置リトライ情報を記憶する監視制御装置リトライ情報記憶部71と、中継親装置タイムアウト情報を記憶する中継親装置タイムアウト記憶部72とを備え、本中継親装置50を動作させるための制御プログラム等の各プログラム、各プログラムの実行に必要な情報等を記憶すると共に、制御部51に対する所謂ワーキングメモリである。記憶部23は、例えばRAM、EEPROM及びROM等の半導体記憶素子を備えて構成される。
The
監視制御装置リトライ情報は、監視制御装置10のリトライ時間間隔TRsc及びリトライ回数NRscである。これらリトライ時間間隔TRsc及びリトライ回数NRscは、後述するように、当該中継親装置50が起動後に測定によって取得し、監視制御装置リトライ情報記憶部71に記憶される。
The monitoring control device retry information is the retry time interval TRsc and the retry count NRsc of the
中継親装置タイムアウト情報は、第1の実施形態と同様に、中継親装置20のタイムアウト時間TOpr、リトライ時間間隔TRsc及び中継親装置20のリトライ回数NRscである。第1の実施形態では、中継親装置20のリトライ時間間隔TRprのみ予め中継親装置タイムアウト情報記憶部44に記憶されたが、第2の実施形態では、これら中継親装置20のタイムアウト時間TOpr、リトライ時間間隔TRpr及びリトライ回数NRprが仕様により決定され予め中継親装置タイムアウト情報記憶部72に記憶される。
The relay master device timeout information includes the timeout time TOpr of the
次に、第2の実施形態の動作について説明する。
(第2の実施形態の動作)
まず、中継親装置50が監視制御装置10のリトライ情報を収集するリトライ情報収集処理について説明する。図7は、第2の実施形態に係る中継親装置のリトライ情報を収集する動作を示すフローチャートである。
Next, the operation of the second embodiment will be described.
(Operation of Second Embodiment)
First, retry information collection processing in which the
機器11の設置場所に起因して第1伝送路12に直接接続できない場合や機器11が増設される場合等のために、第1伝送路12を介して監視制御装置10に通信可能に中継親装置50が配置され、例えば、その電源が投入されると、中継親装置50の制御部51におけるリトライ情報収集部61が起動し、以下の動作を実行する。
When the
図7において、リトライ情報収集部61は、監視制御装置リトライ情報記憶部71に監視制御装置リトライ情報が設定済みであるか否かを判断する(S61)。判断の結果、監視制御装置タイムアウト情報が設定済みである場合(YES)には、リトライ情報収集部61は、このリトライ情報収集処理を終了する。一方、判断の結果、監視制御装置リトライ情報が未設定である場合(NO)には、監視制御装置10のリトライ時間間隔TRsc及びそのリトライ回数NRscを測定すべく、リトライ情報収集部61は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号Mを受信すると、この受信したコマンド信号Mを記憶部52に記憶する(S62)。そして、リトライ情報収集部61は、第1回目として、監視制御装置10のリトライ時間間隔TRsc(1)の計測を開始する(S63)。
In FIG. 7, the retry
リトライ情報収集部61は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号Nを受信すると(S64)、監視制御装置10におけるコマンド信号Mのリトライ(再送信)を判断すべく、この受信したコマンド信号Nが記憶部52に記憶しているコマンド信号Mに一致するか否かを判断する(S65)。
The retry
判断の結果、一致しない場合(NO)には、リトライ情報収集部61は、リトライ情報収集処理を最初から開始すべく、処理を処理S62に戻して通信信号の受信待ちを行う。一方、判断の結果、一致する場合(YES)には、監視制御装置10のリトライ時間間隔TRsc(1)の計測を終了し、第1回目における監視制御装置10のリトライ時間間隔TRsc(1)を記憶部52に記憶する(S66)。
As a result of the determination, if they do not match (NO), the retry
次に、リトライ情報収集部61は、監視制御装置10のリトライ回数NRscを1だけインクリメントする(S67)。即ち、監視制御装置10のリトライ回数NRsc=1である。
Next, the retry
そして、リトライ情報収集部61は、監視制御装置リトライ情報の測定時間が終了したか否かを判断する(S68)。監視制御装置リトライ情報の測定時間は、監視制御装置10のリトライ回数NRscを測定するために充分な時間であり、第1の実施形態における監視制御装置タイムアウト情報の測定時間と同様に、例えば、通常、監視制御装置10にそのタイムアウト時間として設定されると想定される時間以上の時間である。
Then, the retry
判断の結果、監視制御装置リトライ情報の測定時間が終了していない場合には、リトライ情報収集部61は、次の監視制御装置10のリトライ時間間隔TRsc(2)を測定すべく、処理を処理S63に戻す。そして、リトライ情報収集部61は、処理S63乃至処理S68を実行することにより、第2回目における監視制御装置10のリトライ時間間隔TRsc(2)を測定し、リトライ回数NRscを計数する。このようにリトライ情報収集部32は、監視制御装置リトライ情報の測定時間が経過するまで、処理S63乃至処理S68を繰り返し実行して、1又は複数の監視制御装置10のリトライ時間間隔NRsc(n)及びリトライ回数NRscを測定する。
As a result of the determination, if the measurement time of the monitoring control device retry information has not ended, the retry
一方、処理S68における判断の結果、監視制御装置リトライ情報の測定時間が終了している場合には、リトライ情報収集部61は、記憶部52に記憶されている監視制御装置10のリトライ時間間隔TRsc(1)〜TRsc(n)及びリトライ回数NRscに基づいて監視制御装置10のリトライ時間間隔TRsc(1)〜TRsc(n)の平均値を演算し、演算結果の平均値を監視制御装置10のリトライ時間間隔TRscとし、これを監視制御装置リトライ情報記憶部71に記憶する。そして、リトライ情報収集部61は、記憶部52に記憶されている監視制御装置10のリトライ回数NRscを監視制御装置リトライ情報記憶部71に記憶する(S69)。
On the other hand, if the measurement time of the monitoring control device retry information has ended as a result of the determination in step S68, the retry
次に、リトライ情報収集部61は、記憶部52に記憶してあるコマンド信号M及びコマンド信号N(1)〜コマンド信号N(n)を破棄し、処理を終了する(S70)。
Next, the retry
このように動作することによって、中継親装置50は、監視制御装置10のリトライ時間間隔TRsc及びリトライ回数NRscを自動的に取得することができる。
By operating in this way, the
このようなリトライ情報収集処理が終了すると、中継親装置50の運用が開始され、監視制御装置10と機器11との間における通信信号の中継が開始される。
When such retry information collection processing is completed, the operation of the
図8は、第2の実施形態に係る中継親装置の中継動作を示すフローチャートである。図8において、中継処理部61は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でコマンド信号を受信すると、監視制御装置10におけるコマンド信号のリトライの実行回数を計数するリトライカウンタRCsc等の各種変数の初期化を行って(S81)、中継処理部61は、第1通信IF部21で受信したコマンド信号を中継すべく、第2通信IF部24からこのコマンド信号を送信する(S82)。そして、中継処理部61は、監視制御装置10がリトライを行う時間を測定すべく監視制御装置10のリトライ用に経過時間の測定を開始する(S83)。
FIG. 8 is a flowchart showing the relay operation of the relay master apparatus according to the second embodiment. In FIG. 8, the
次に、中継処理部31は、第1及び第2通信IF部21、24において通信信号の受信待ちを行って、第1通信IF部21で監視制御装置10がリトライしたコマンド信号を受信したか又は第2通信IF部24で応答信号を受信したかを判断する(S84)。
Next, the
判断の結果、リトライのコマンド信号を受信した場合(リトライのコマンド信号)には、中継処理部61は、リトライのコマンド信号を破棄し(S91)、リトライカウンタRCscを1だけインクリメントを行って更新し(S92)、処理を処理S83に戻す。
As a result of the determination, when a retry command signal is received (retry command signal), the
一方、処理S84における判断の結果、応答信号を受信した場合(応答信号)には、中継処理部61は、この応答信号を記憶部52に記憶し、監視制御装置10によるコマンド信号のリトライが近いか否かを判断する(S85)。例えば、中継処理部61は、監視制御装置リトライ情報記憶部71に記憶されている監視制御装置10のリトライ時間間隔TRscから処理S82で測定している監視制御装置10のリトライ用の経過時間を減算し、減算結果が所定値以下である場合には監視制御装置10によるコマンド信号のリトライが近いと判断し、一方、減算結果が所定値を超えている場合には監視制御装置10によるコマンド信号のリトライが近くないと判断する。この所定値は、中継親装置50が監視制御装置10に送信する応答信号が監視制御装置10が送信するリトライのコマンド信号と衝突を避ける観点から仕様によって決定されるが、例えば、監視制御装置10が通信信号を送信してから中継親装置50がこの通信信号を受信するまでに通常要する時間以上に設定され、第1伝送路12の通信速度及びコマンド信号のデータ量等に応じて予め設定される。この所定値は、第1伝送路12の通信速度が速ければ短くてもよく、また、コマンド信号のデータ量が少なければ短くてもよい。また例えば、上述のリトライ情報収集処理に併せて、リトライ情報収集部61が監視制御装置10へピングを送信し、その送信してから受信応答を受信するまでの時間を測定し、この1/2以上の時間を所定値としてもよい。
On the other hand, if the response signal is received (response signal) as a result of the determination in step S84, the
処理85における判断の結果、監視制御装置10によるコマンド信号のリトライが近い場合(YES)には、中継処理部61は、監視制御装置リトライ情報記憶部71に記憶されている監視制御装置10のリトライ回数NRsc及び監視制御装置10のリトライカウンタRCscに基づいて監視制御装置10がこの先コマンド信号をリトライするか否かを判断する(S86)。即ち、中継処理部61は、監視制御装置リトライ情報記憶部71に記憶されている監視制御装置10のリトライ回数NRscから監視制御装置10のリトライカウンタRCscを減算し、減算結果が0より大きいか否かを判断する。あるいは、中継処理部61は、監視制御装置リトライ情報記憶部71に記憶されている監視制御装置10のリトライ回数NRscを監視制御装置10のリトライカウンタRCscで除算し、除算結果が1より大きいか否かを判断する。
As a result of the determination in the process 85, when the retry of the command signal by the
判断の結果、監視制御装置10がコマンド信号をリトライしない場合(NO)には、中継処理部61は、この記憶部52に記憶した応答信号を破棄し(S89)、処理を処理S81に戻す。判断の結果、監視制御装置10がコマンド信号をリトライする場合(YES)には、中継処理部61は、第1通信IF部21において通信信号の受信待ちを行って、第1通信IF部21でリトライのコマンド信号を受信すると(S87)、中継処理部61は、中継すべく、この記憶部52に記憶した応答信号をこのリトライに対応させて第1通信IF部21から第1伝送路12に送信し、処理を処理S81に戻す(S88)。
If the
このように中継処理部61が動作することによって、監視制御装置10によるリトライのコマンド信号と中継親装置10による応答信号とが第1伝送路12で衝突することを回避することができる。
By operating the
次に、監視制御装置10が中継親装置50及び中継子装置700を介して機器11を監視及び/又は制御する遠隔監視制御について説明する。
Next, remote monitoring control in which the
図9は、第2の実施形態に係る監視制御装置、中継親装置、中継子装置及び機器における動作を示すシーケンス図である。図9において、監視制御装置10が機器ID=「3」の機器11宛てにコマンド信号を第1伝送路12に送信すると(C31)、このコマンド信号は、中継親装置50に受信される。中継親装置50は、上述の処理S81乃至処理S84を実行し、中継すべくこのコマンド信号を第3伝送路14に送信する(C32)。このコマンド信号は、中継子装置700−yに受信される。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11にこのコマンド信号を送信する(C33)。機器ID=「3」の機器11は、このコマンド信号を受信すると、コマンド信号に収容されている指示に基づく動作を行って監視情報を収容した応答信号を中継子装置700−yに返信する(C34)。中継子装置700−yは、第2伝送路13を介して機器ID=「3」の機器11からこの応答信号を受信すると、中継すべくこの応答信号を第3伝送路14に送信する(C35)。この応答信号は、中継親装置20に受信される。
FIG. 9 is a sequence diagram illustrating operations in the monitoring control device, the relay parent device, the relay child device, and the device according to the second embodiment. In FIG. 9, when the
ここで、C32からC35までの間に、監視制御装置10がリトライのコマンド信号を第1伝送路12に送信すると(C41)、中継親装置50は、処理S84でコマンド信号の受信と判断し、処理S91及び処理S92を実行し、処理を処理S83に戻す。このように動作することによって、このC41の監視制御装置10によるリトライのコマンド信号は、破棄される。中継親装置50は、中継したコマンド信号に対する応答信号を第2通信IF部24で受信するまでに第1通信IF部21で受信した監視制御装置10によるリトライのコマンド信号を破棄するので、第3伝送路14及び第2伝送路13の通信トラフィックを抑制することができ、第3伝送路14及び第2伝送路13における通信信号の衝突を抑制することができる。そして、リトライのコマンド信号を中継しないので、中継親装置50及び中継子装置700の消費電力が低減され、節約される。
When the
そして、C35の応答信号を受信すると、中継親装置50は、処理S84で応答信号の受信と判断し、処理S85で監視制御装置10による次のコマンド信号のリトライ(図9では3回目)が近いか否か判断する。図9に実線で示すように応答信号の受信(C35)が監視制御装置10による次のコマンド信号のリトライ(図9では3回目)が近い場合には、中継親装置50は、処理S86乃至処理S88を実行し、C41のリトライのコマンド信号(図9では2回目)に対する応答ではなく、監視制御装置10による次のリトライのコマンド信号(図9では3回目)に対する応答として監視制御装置10に送信すべくこの応答信号を第1通信IF部21で第1伝送路12に送信する(C36)。一方、図9に破線で示すように応答信号の受信(C35’)が監視制御装置10による次のコマンド信号のリトライ(図9では3回目)が近くない場合には、中継親装置50は、処理S88を実行し、C41のリトライのコマンド信号(図9では2回目)に対する応答として監視制御装置10に送信すべくこの応答信号を第1通信IF部21で第1伝送路12に送信する(C36’)。
Then, when receiving the response signal of C35, the
このように中継処理部61が動作することによって、監視制御装置10によるリトライのコマンド信号と中継親装置10による応答信号とが第1伝送路12で衝突することを回避することができる。また、応答信号を受信した場合に、この受信時刻が監視制御装置10による次のリトライのコマンド信号を受信し得る時刻に近い場合には、中継親装置50は、この次のリトライのコマンド信号を待ってこれに対する応答として応答信号を中継する。このため、中継親装置50は、次のリトライのコマンド信号に対して迅速に応答信号を返信することができ、応答性を高めることができる。
By operating the
なお、第1の実施形態ではタイムアウト時間設定処理を、第2の実施形態ではリトライ情報収集処理を、中継親装置20の運用開始時に実行するように構成したが、監視制御装置10の設定変更に対応可能とする観点から、半年や1年ごとに定期的に実行してもよい。
In the first embodiment, the timeout time setting process is executed, and in the second embodiment, the retry information collecting process is executed at the start of the operation of the
1、2、1000 遠隔監視システム
10 監視制御装置
11 機器
12、13、14 伝送路
20、50 中継親装置(中継装置)
21、701 第1通信インタフェース部
22、51 制御部
23、52 記憶部
24、702 第2通信インタフェース部
31、61 中継処理部
32 タイムアウト時間設定部
42 監視制御装置タイムアウト情報記憶部
43 最短応答時間記憶部
44、72 中継親装置タイムアウト情報記憶部
62 リトライ情報収集部
71 監視制御装置リトライ情報記憶部
700 中継装置(中継親装置、中継子装置)
1, 2, 1000
21, 701 First
Claims (4)
前記監視制御装置との間の通信は、半二重通信であって、
前記監視制御装置から受信した前記監視制御装置の前記機器に宛てた第1通信信号を前記中継子装置に送信することによって前記第1通信信号を中継すると共に、前記第1通信信号の返信であって前記中継子装置から受信した前記機器の前記監視制御装置に宛てた第2通信信号を前記監視制御装置に送信することによって中継する中継処理部と、
前記監視制御装置が前記第1通信信号をリトライする時間間隔である監視制御装置のリトライ時間間隔を測定し、前記測定した監視制御装置のリトライ時間間隔よりも短い時間に前記中継親装置のタイムアウト時間を設定するタイムアウト時間設定部とを備え、
前記中継処理部は、
前記第2通信信号を前記中継子装置から受信するまでの間にリトライによる前記第1通信信号を前記監視制御装置から受信した場合に、前記リトライによる前記第1通信信号を破棄し、
前記第1通信信号を前記中継子装置に送信してから当該中継親装置のタイムアウト時間を経過した後に、前記第2通信信号を前記中継子装置から受信した場合に、前記第2通信信号の前記監視制御装置への送信を保留し、前記第2通信信号を前記中継子装置から受信した時刻と前記監視制御装置による次のリトライの前記第1通信信号を受信する時刻との差が所定値以内である場合には、前記監視制御装置による次のリトライの前記第1通信信号に対する応答として前記第2通信信号を送信すること
を特徴とする中継親装置。 Connected to the monitoring control device for monitoring and / or controlling the device via the first transmission line, connected to the relay device for relaying the communication signal by connecting to the device via the second transmission line, connected via the third transmission line, In the relay master device that relays the communication signal between the monitoring control device and the device via the relay device,
Communication between the monitoring and control device is half-duplex communication,
The first communication signal is relayed by transmitting the first communication signal received from the monitoring control device to the device of the monitoring control device to the relay device, and the first communication signal is returned. A relay processing unit that relays the second communication signal addressed to the monitoring control device of the device received from the relay device by transmitting to the monitoring control device ;
The monitoring control device measures the retry time interval of the monitoring control device, which is a time interval for retrying the first communication signal, and the time-out time of the relay parent device is shorter than the measured retry time interval of the monitoring control device. And a timeout time setting unit for setting
The relay processing unit
When said first communication signal of retries during the second communication signal to be received from the relay terminal device is received from the monitoring control unit discards the first communication signal by said retry,
When the second communication signal is received from the relay slave device after the timeout time of the relay master device has elapsed since the transmission of the first communication signal to the relay slave device, the second communication signal of the second communication signal The difference between the time at which the transmission to the monitoring control device is suspended and the second communication signal is received from the relay device and the time at which the monitoring control device receives the first communication signal for the next retry is within a predetermined value. If so, the second communication signal is transmitted as a response to the first communication signal of the next retry by the monitoring control device.
前記中継処理部は、さらに、前記監視制御装置のタイムアウト時間と前記最短の応答時間と前記中継子装置との間の通信における当該中継親装置のリトライ時間間隔に基づいて前記中継子装置との間の通信における当該中継親装置のリトライ回数を求めること
を特徴とする請求項1に記載の中継親装置。 A storage unit that stores the shortest response time from when a communication signal is transmitted in communication with the device via the relay device to when the reply is received;
The relay processing unit further communicates with the relay slave device based on a retry time interval of the relay master device in communication between the timeout time of the monitoring control device, the shortest response time, and the relay slave device. The relay parent device according to claim 1 , wherein the number of retries of the relay parent device in the communication is obtained.
を特徴とする請求項2に記載の中継親装置。 The relay processing unit further measures, for each communication, a response time from transmission of a communication signal in communication with the device via the relay device to reception of the response, and the measured response The relay parent device according to claim 2 , wherein when the time is shorter than the shortest response time, the shortest response time is updated with the measured response time.
前記監視制御装置と前記中継親装置との間の通信は、半二重通信であって、
前記中継親装置は、
前記監視制御装置から受信した前記監視制御装置の前記機器に宛てた第1通信信号を前記中継子装置に送信することによって前記第1通信信号を中継すると共に、前記第1通信信号の返信であって前記中継子装置から受信した前記機器の前記監視制御装置に宛てた第2通信信号を前記監視制御装置に送信することによって中継する中継処理部と、
前記監視制御装置が前記第1通信信号をリトライする時間間隔である監視制御装置のリトライ時間間隔を測定し、前記測定した監視制御装置のリトライ時間間隔よりも短い時間に前記中継親装置のタイムアウト時間を設定するタイムアウト時間設定部とを備え、
前記中継処理部は、
前記第2通信信号を前記中継子装置から受信するまでの間にリトライによる前記第1通信信号を前記監視制御装置から受信した場合に、前記リトライによる前記第1通信信号を破棄し、
前記第1通信信号を前記中継子装置に送信してから当該中継親装置のタイムアウト時間を経過した後に、前記第2通信信号を前記中継子装置から受信した場合に、前記第2通信信号の前記監視制御装置への送信を保留し、前記第2通信信号を前記中継子装置から受信した時刻と前記監視制御装置による次のリトライの前記第1通信信号を受信する時刻との差が所定値以内である場合には、前記監視制御装置による次のリトライの前記第1通信信号に対する応答として前記第2通信信号を送信すること
を特徴とする遠隔監視制御システム。 A device to be monitored and / or controlled, a monitoring control device that monitors and / or controls the device, a relay device that connects to the device via a second transmission path and relays a communication signal, and the monitoring control device A relay master device connected via a first transmission line and connected to the relay device via a third transmission line and relaying a communication signal between the monitoring control device and the device via the relay device; In the remote monitoring and control system,
Communication between the monitoring control device and the relay parent device is half-duplex communication,
The relay master device is
The first communication signal is relayed by transmitting the first communication signal received from the monitoring control device to the device of the monitoring control device to the relay device, and the first communication signal is returned. A relay processing unit that relays the second communication signal addressed to the monitoring control device of the device received from the relay device by transmitting to the monitoring control device ;
The monitoring control device measures the retry time interval of the monitoring control device, which is a time interval for retrying the first communication signal, and the time-out time of the relay parent device is shorter than the measured retry time interval of the monitoring control device. And a timeout time setting unit for setting
The relay processing unit
When said first communication signal of retries during the second communication signal to be received from the relay terminal device is received from the monitoring control unit discards the first communication signal by said retry,
When the second communication signal is received from the relay slave device after the timeout time of the relay master device has elapsed since the transmission of the first communication signal to the relay slave device, the second communication signal of the second communication signal The difference between the time at which the transmission to the monitoring control device is suspended and the second communication signal is received from the relay device and the time at which the monitoring control device receives the first communication signal for the next retry is within a predetermined value. If so, the second communication signal is transmitted as a response to the first communication signal of the next retry by the monitoring control device .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004239008A JP4433935B2 (en) | 2004-08-19 | 2004-08-19 | Relay master device and remote monitoring control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004239008A JP4433935B2 (en) | 2004-08-19 | 2004-08-19 | Relay master device and remote monitoring control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006060439A JP2006060439A (en) | 2006-03-02 |
| JP4433935B2 true JP4433935B2 (en) | 2010-03-17 |
Family
ID=36107567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004239008A Expired - Fee Related JP4433935B2 (en) | 2004-08-19 | 2004-08-19 | Relay master device and remote monitoring control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4433935B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4643510B2 (en) * | 2006-07-18 | 2011-03-02 | オリンパスメディカルシステムズ株式会社 | Surgical system control device and surgical device timeout value setting method |
| US10764080B2 (en) * | 2015-09-08 | 2020-09-01 | Mitsubishi Electric Corporation | Control system and management apparatus |
| JP2024065899A (en) * | 2022-10-31 | 2024-05-15 | パナソニック株式会社 | Data collection device, data collection system, data collection method, and program |
-
2004
- 2004-08-19 JP JP2004239008A patent/JP4433935B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006060439A (en) | 2006-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5815278B2 (en) | Alarm linkage system | |
| JP6022796B2 (en) | Alarm linkage system | |
| JP6022797B2 (en) | Alarm linkage system | |
| JP2011014119A (en) | Alarm system, alarm, and repeater | |
| US11258627B2 (en) | Sensor communications by vibrations | |
| JP2012238190A (en) | Alarm cooperation system, alarm cooperation method and repeater | |
| JP5791357B2 (en) | Fire alarm system | |
| JP5893925B2 (en) | Cooperation system | |
| JP5484865B2 (en) | Communications system | |
| JP4433935B2 (en) | Relay master device and remote monitoring control system | |
| JP2004320260A (en) | Remote apparatus supervising/controlling system and its method of validating live status | |
| JP4428099B2 (en) | Relay master device and remote monitoring system | |
| JP6001870B2 (en) | Alarm system | |
| JP2011081595A (en) | Alarm system, alarm device and emergency call device | |
| JP4626443B2 (en) | Remote monitoring control system, gateway device, and center server | |
| JP6062627B2 (en) | Alarm | |
| JP5993997B2 (en) | Fire alarm system | |
| CN103576664A (en) | Automation component for transmitting value change information in intelligent household system and method | |
| JP5462381B2 (en) | Alarm system | |
| JP5171581B2 (en) | Alarm | |
| JP4770629B2 (en) | Remote monitoring and control system | |
| JP7671376B2 (en) | Fire Monitoring System | |
| JP7731062B2 (en) | Alarms, settings, and programs | |
| JP5507836B2 (en) | Wireless alarm | |
| JP2016212892A (en) | Temperature measurement chip |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070510 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090217 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090417 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090924 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091124 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20091208 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091221 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130108 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |