JP4428099B2 - Relay master device and remote monitoring system - Google Patents

Relay master device and remote monitoring system Download PDF

Info

Publication number
JP4428099B2
JP4428099B2 JP2004070297A JP2004070297A JP4428099B2 JP 4428099 B2 JP4428099 B2 JP 4428099B2 JP 2004070297 A JP2004070297 A JP 2004070297A JP 2004070297 A JP2004070297 A JP 2004070297A JP 4428099 B2 JP4428099 B2 JP 4428099B2
Authority
JP
Japan
Prior art keywords
terminal device
data
physical quantity
relay
collection
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
JP2004070297A
Other languages
Japanese (ja)
Other versions
JP2005260635A (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.)
Panasonic Corp
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Corp
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Works Ltd filed Critical Panasonic Corp
Priority to JP2004070297A priority Critical patent/JP4428099B2/en
Publication of JP2005260635A publication Critical patent/JP2005260635A/en
Application granted granted Critical
Publication of JP4428099B2 publication Critical patent/JP4428099B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Selective Calling Equipment (AREA)

Description

本発明は、監視対象の物理量を検知する端末装置とこの端末装置が検知した物理量に関する検知物理量情報を収集する監視装置との間で検知物理量情報を中継する中継親装置に関する。そして、中継親装置を備える遠隔監視システムに関する。   The present invention relates to a relay parent device that relays detected physical quantity information between a terminal apparatus that detects a physical quantity to be monitored and a monitoring apparatus that collects detected physical quantity information related to the physical quantity detected by the terminal apparatus. And it is related with a remote monitoring system provided with a relay parent apparatus.

監視対象の所定の物理量を検出する複数のセンサと、これら複数のセンサからの出力を通信によって遠隔に収集する監視装置とを備える遠隔監視システムが知られている。遠隔監視システムは、自然環境の環境状態を複数のセンサによって検出して自然観測目的に使用されたり、住環境やオフィス環境の環境状態を複数のセンサによって検出して快適な住環境やオフィス環境を提供することを目的に使用されたり、あるいは、複数の設備の設備状態を複数のセンサによってそれぞれ検出して最適な動作を実現することを目的に使用されたり等する。   There is known a remote monitoring system including a plurality of sensors that detect a predetermined physical quantity to be monitored and a monitoring device that remotely collects outputs from the plurality of sensors by communication. The remote monitoring system is used for natural observation purposes by detecting the environmental state of the natural environment with multiple sensors, or by detecting the environmental state of the living environment or office environment with multiple sensors to create a comfortable living environment or office environment. It is used for the purpose of providing, or it is used for the purpose of realizing the optimum operation by detecting the equipment states of a plurality of facilities by a plurality of sensors, respectively.

図10は、遠隔監視システムの構成を示す図である。図10において、遠隔監視システム1000は、監視対象の所定の物理量を検知する検知部と通信信号を送受信する通信部とを備える複数の通信機能付きの端末装置11と、これら端末装置11に伝送路A13−aを介して接続されこれら端末装置11から監視対象の所定の物理量に関する検知物理量情報(以下、「状態データ」と呼称することとする。)を収集する監視装置10とを備えて構成される。複数の端末装置11は、図10に示す例では、端末装置A11−a及び端末装置B11−bの2個である。検知部は、例えば、温度を検出する温度センサ、湿度を検出する湿度センサ、照度を検出する照度センサ、電流を検出する電流センサ、電圧を検出する電圧センサ、電力を検出する電力計、流量を検出する流量計、震度を検出する地震計等の所定の物理量を検出する機器である。このような遠隔監視システム1000は、監視装置10からの要求に従って各端末装置11が状態データを監視装置10に送信することによって、監視装置10が状態データを収集し監視を行う。   FIG. 10 is a diagram illustrating a configuration of the remote monitoring system. In FIG. 10, the remote monitoring system 1000 includes a plurality of terminal devices 11 having a communication function including a detection unit that detects a predetermined physical quantity to be monitored and a communication unit that transmits and receives communication signals, and transmission paths to these terminal devices 11. And a monitoring device 10 that is connected via A13-a and collects detected physical quantity information (hereinafter referred to as “state data”) relating to a predetermined physical quantity to be monitored from these terminal devices 11. The In the example illustrated in FIG. 10, the plurality of terminal devices 11 are two, that is, the terminal device A11-a and the terminal device B11-b. The detection unit includes, for example, a temperature sensor that detects temperature, a humidity sensor that detects humidity, an illuminance sensor that detects illuminance, a current sensor that detects current, a voltage sensor that detects voltage, a wattmeter that detects power, and a flow rate It is a device that detects a predetermined physical quantity, such as a flow meter to detect and a seismometer to detect seismic intensity. In such a remote monitoring system 1000, each terminal device 11 transmits state data to the monitoring device 10 in accordance with a request from the monitoring device 10, whereby the monitoring device 10 collects and monitors the state data.

そして、端末装置11の設置場所に起因して伝送路A13−aに直接接続できない場合や監視すべき箇所が増えたために端末装置11が増設される場合等がある。特に、端末装置11の設置場所によっては、伝送路A13−aの伝送媒体(例えば有線媒体)と同一の伝送媒体を用いることができない場合や遠隔監視システム1000と同一の通信プロトコルを用いることができない場合がある。このような場合に、通信信号の中継を行う中継装置700を介して端末装置11が遠隔監視システム1000に組み込まれる。通信プロトコルは、例えば、電力線通信のプロトコル及び近距離無線通信のプロトコル等である。   Then, there are cases where the terminal device 11 cannot be directly connected to the transmission line A13-a due to the installation location of the terminal device 11, or the terminal device 11 is added due to an increase in locations to be monitored. In particular, depending on the installation location of the terminal device 11, the same transmission medium as the transmission medium (for example, a wired medium) of the transmission path A13-a cannot be used, or the same communication protocol as the remote monitoring system 1000 cannot be used. There is a case. In such a case, the terminal device 11 is incorporated into the remote monitoring system 1000 via the relay device 700 that relays communication signals. The communication protocol is, for example, a power line communication protocol, a short-range wireless communication protocol, or the like.

図10に示す例では、中継装置X700−xは、伝送路A13−aを介して通信を行うことによって遠隔監視システム1000に増設される。端末装置C11−c及び端末装置D11−dは、伝送路C13−cを介して通信を行うことによって中継装置Y700−yに接続され、中継装置Y700−y及び中継装置X700−xを介して遠隔監視システム1000に組み込まれる。端末装置E11−e及び端末装置F11−fは、伝送路D13−dを介して通信を行うことによって中継装置Z700−zに接続され、中継装置Z700−z及び中継装置X700−xを介して遠隔監視システム1000に組み込まれる。そして、中継装置X700−xと中継装置Y700−yとの間、及び、中継装置X700−xと中継装置Z700−zとの間は、伝送路B13−bを介して通信を行う。   In the example illustrated in FIG. 10, the relay device X700-x is added to the remote monitoring system 1000 by performing communication via the transmission path A13-a. The terminal device C11-c and the terminal device D11-d are connected to the relay device Y700-y by performing communication via the transmission line C13-c, and remotely connected via the relay device Y700-y and the relay device X700-x. It is incorporated in the monitoring system 1000. The terminal device E11-e and the terminal device F11-f are connected to the relay device Z700-z by performing communication via the transmission line D13-d, and remotely connected via the relay device Z700-z and the relay device X700-x. It is incorporated in the monitoring system 1000. Communication is performed between the relay device X700-x and the relay device Y700-y and between the relay device X700-x and the relay device Z700-z via the transmission line B13-b.

伝送路B13−bは、無線媒体であり、伝送路A13−a、伝送路C13−c及び伝送路D13−dは、通信プロトコルが同一の有線媒体である。このため、中継装置700は、第1通信プロトコルによって有線通信で通信信号を送受信する第1通信部701と、第1通信プロトコルとは異なる通信プロトコルである第2通信プロトコルによって無線通信で通信信号を送受信する第2通信部702とを備えて構成されている。また、中継装置700には、自己が管理する端末装置11に関する情報、例えば、後述の端末装置IDが記憶されている。なお、各構成を総称する場合には、a、b、c、d、x、y、z等の添え字を伴わない参照符号で示す。   The transmission path B13-b is a wireless medium, and the transmission path A13-a, the transmission path C13-c, and the transmission path D13-d are wired media having the same communication protocol. For this reason, the relay device 700 transmits the communication signal by wireless communication using the first communication unit 701 that transmits and receives communication signals by wired communication using the first communication protocol and the second communication protocol that is a communication protocol different from the first communication protocol. And a second communication unit 702 for transmitting and receiving. The relay device 700 stores information related to the terminal device 11 managed by the relay device 700, for example, a terminal device ID described later. In addition, when naming each structure generically, it shows with the referential mark which does not accompany subscripts, such as a, b, c, d, x, y, z.

このような中継装置700を含む遠隔監視システム1000では、次のようなシーケンスによって状態データが収集される。   In the remote monitoring system 1000 including such a relay apparatus 700, status data is collected by the following sequence.

図11は、背景技術に係る遠隔監視システムの動作を示すシーケンス図である。図11において、中継装置700を介することなく直接伝送路A13−aを介して通信を行う端末装置11(11−a、11−b)から状態データを監視装置10が収集する場合、例えば図11に示す例では端末装置A11−aから監視装置10が状態データを収集する場合には、監視装置10は、状態データを収集すべき端末装置A11−aの端末装置ID(=1)及び状態データを要求する旨の情報を収容した通信信号(要求信号)を伝送路A13−aに送信する(C1001)。この要求信号を受信した端末装置A11−aは、監視装置10宛てに状態データを収容した通信信号(応答信号)を返信する(C1002)。そして、監視装置10は、この応答信号を受信することによって端末装置A11−aから状態データを収集し、監視する。ここで、端末装置IDは、端末装置11を識別するために当該端末装置11に固有に割り当てられた記号列(1個の記号から成る場合も含む。)であり、通信プロトコルの通信アドレスの役割を兼ねている。端末装置A11−a、端末装置B11−b、端末装置C11−c、端末装置D11−d、端末装置E11−e及び端末装置F11−fの端末装置IDは、例えば、それぞれ、1、2、3、4、5及び6である。   FIG. 11 is a sequence diagram showing the operation of the remote monitoring system according to the background art. In FIG. 11, when the monitoring device 10 collects status data from the terminal devices 11 (11-a, 11-b) that communicate directly via the transmission line A13-a without using the relay device 700, for example, FIG. When the monitoring device 10 collects state data from the terminal device A11-a, the monitoring device 10 uses the terminal device ID (= 1) and the state data of the terminal device A11-a that should collect state data. Is transmitted to the transmission line A13-a (C1001). Receiving this request signal, the terminal device A11-a returns a communication signal (response signal) containing state data to the monitoring device 10 (C1002). And the monitoring apparatus 10 collects and monitors state data from the terminal device A11-a by receiving this response signal. Here, the terminal device ID is a symbol string (including a case of one symbol) uniquely assigned to the terminal device 11 in order to identify the terminal device 11, and the role of the communication address of the communication protocol. Doubles as The terminal device IDs of the terminal device A11-a, terminal device B11-b, terminal device C11-c, terminal device D11-d, terminal device E11-e, and terminal device F11-f are, for example, 1, 2, 3, respectively. 4, 5, and 6.

一方、中継装置700を介して通信を行う端末装置11(11−c〜11−f)から状態データを監視装置10が収集する場合、例えば図11に示す例では、端末装置C11−cから状態データを監視装置10が収集する場合には、監視装置10は、状態データを収集すべき端末装置C11−c宛てに要求信号を伝送路A13−aに送信する(C1011)。この要求信号は、中継装置X700−xで第1通信プロトコルから第2通信プロトルに変換されて中継装置Y700−yに送信され(C1012)、中継装置Y700−yで第2通信プロトコルから第1通信プロトコルに再変換されることによって元の通信プロトコルに戻されて伝送路C13−cに送信される(C1013)。この要求信号を受信した端末装置C11−cは、監視装置10宛てに状態データを収容した通信信号(応答信号)を返信する(C1014)。返信の応答信号は、中継装置Y700−yで第1通信プロトコルから第2通信プロトルに変換されて中継装置X700−xに送信され(C1015)、中継装置X700−xで第2通信プロトコルから第1通信プロトコルに再変換されることによって元の通信プロトコルに戻されて伝送路A13−aに送信される(C1016)。そして、監視装置10は、この応答信号を受信することによって端末装置C11−cから状態データを収集し、監視する。   On the other hand, when the monitoring device 10 collects the state data from the terminal devices 11 (11-c to 11-f) that communicate via the relay device 700, for example, in the example illustrated in FIG. 11, the state from the terminal device C11-c. When the monitoring device 10 collects data, the monitoring device 10 transmits a request signal to the transmission line A13-a to the terminal device C11-c that should collect state data (C1011). This request signal is converted from the first communication protocol to the second communication protocol by the relay device X700-x and transmitted to the relay device Y700-y (C1012), and the relay device Y700-y performs the first communication from the second communication protocol to the first communication. By reconverting to the protocol, the original communication protocol is restored and transmitted to the transmission line C13-c (C1013). The terminal device C11-c that has received this request signal returns a communication signal (response signal) containing state data to the monitoring device 10 (C1014). The reply response signal is converted from the first communication protocol to the second communication protocol by the relay device Y700-y and transmitted to the relay device X700-x (C1015), and the relay device X700-x receives the first from the second communication protocol. By reconverting to the communication protocol, the original communication protocol is restored and transmitted to the transmission line A13-a (C1016). And the monitoring apparatus 10 collects and monitors state data from the terminal device C11-c by receiving this response signal.

なお、流量計及び伝送器等のフィールド機器と、このフィールド機器の出力信号を中継する中継局と、この中継局を介して出力信号を受信する基地局とを備える通信システムが、例えば、特許文献1に開示されている。
特開2003−070079号公報
A communication system including a field device such as a flow meter and a transmitter, a relay station that relays an output signal of the field device, and a base station that receives the output signal via the relay station is disclosed in, for example, Patent Literature 1 is disclosed.
Japanese Patent Laid-Open No. 2003-070079

ところで、背景技術に係る遠隔監視システム1000では、監視装置10が中継装置700を介して通信を行う端末装置11(図10の例では、端末装置C11−c乃至端末装置F11−f)から状態データを収集する場合には、通信信号は、中継装置700を4回通過することとなり、そして、中継装置700を通過する都度、上述したように通信プロトコルが変換される。この中継装置700における通信プロトコルの変換に時間を要するため、監視装置10は、要求信号の送信から応答信号の受信まで時間がかかってしまう。このため、応答が遅延してしまい、状態データのリアルタイム性が損なわれたり、監視装置10におけるタイムアウトの設定やリトライ回数の設定等の、端末装置11と通信信号を送受信するための各種設定を見直す必要が生じたりしてしまう。   By the way, in the remote monitoring system 1000 according to the background art, the status data is transmitted from the terminal device 11 (in the example of FIG. 10, the terminal devices C11-c to F11-f) with which the monitoring device 10 communicates via the relay device 700. Is collected, the communication signal passes through the relay device 700 four times, and each time it passes through the relay device 700, the communication protocol is converted as described above. Since it takes time to convert the communication protocol in the relay apparatus 700, the monitoring apparatus 10 takes time from transmission of the request signal to reception of the response signal. For this reason, the response is delayed, the real-time property of the state data is impaired, and various settings for transmitting and receiving communication signals to and from the terminal device 11 such as the timeout setting and the retry count setting in the monitoring device 10 are reviewed. It becomes necessary.

また、遠隔監視システム1000に複数の伝送媒体や複数の通信プロトコルが存在すると、通信の信頼性が必ずしも同一ではなく、信頼性の劣る伝送媒体や通信プロトコルに合わせて監視装置10を再設計する必要が生じてしまう。   Further, when there are a plurality of transmission media and a plurality of communication protocols in the remote monitoring system 1000, the reliability of communication is not necessarily the same, and it is necessary to redesign the monitoring device 10 according to the transmission medium and the communication protocol with poor reliability. Will occur.

さらに、このような監視装置10における各種設定の再設定や再設計を行うとすると、そのために遠隔監視システム1000を停止する必要が生じてしまい、状態データの欠落が生じてしまう。   Further, when resetting or redesigning various settings in the monitoring apparatus 10 as described above, it becomes necessary to stop the remote monitoring system 1000, and state data is lost.

本発明は、上述の事情に鑑みて為された発明であり、監視装置を変更することなく、端末装置を遠隔監視システムに組み込むことができる中継親装置を提供することを目的とする。また、このような中継親装置を備える遠隔監視システムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a relay master device that can incorporate a terminal device into a remote monitoring system without changing the monitoring device. Moreover, it aims at providing a remote monitoring system provided with such a relay parent apparatus.

上述の目的を達成するために、本発明に係る、監視対象の物理量を検知する端末装置と前記端末装置が検知した物理量に関する検知物理量情報を収集する監視装置との間で前記検知物理量情報を中継する中継親装置は、前記検知物理量情報を記憶するとともに、前記端末装置から前記検知物理量情報を収集する時間間隔である収集周期を記憶する記憶部と、前記端末装置との間で通信信号を中継する中継子装置を介して前記収集周期に基づいて前記端末装置から前記検知物理量情報を収集して前記記憶部に記憶するデータ収集処理部と、前記検知物理量情報を前記端末装置に要求する要求信号を前記監視装置から受信した場合に、前記記憶部に記憶されている前記検知物理量情報を収容した応答信号を前記監視装置に返信するデータ送信処理部とを備前記データ送信処理部は、前記要求信号を受信する時間間隔の平均値である平均アクセス周期を演算すると共に、前記平均アクセス周期に基づいて前記収集周期を設定し前記データ収集処理部は、前記データ送信処理部が前記平均アクセス周期に基づいて前記収集周期を設定した後において、前記端末装置から前記検知物理量情報を収集する次回の収集時刻を、前記中継子装置を介して前記端末装置から前記検知物理量情報を収集する時間に基づいて前記監視装置から前記要求信号を受信した時刻を基準に設定することを特徴とする。 In order to achieve the above object, according to the present invention, the detected physical quantity information is relayed between a terminal device that detects a physical quantity to be monitored and a monitoring device that collects detected physical quantity information related to the physical quantity detected by the terminal device. The relay parent device that stores the detected physical quantity information and relays a communication signal between the storage device that stores the collection period, which is a time interval for collecting the detected physical quantity information from the terminal device, and the terminal device A data collection processing unit that collects the detected physical quantity information from the terminal device and stores the detected physical quantity information in the storage unit based on the collection period via the relay device, and a request signal for requesting the detected physical quantity information to the terminal device Data transmission processing for returning a response signal containing the detected physical quantity information stored in the storage unit to the monitoring device when the monitoring device is received from the monitoring device E Bei the door, the data transmission unit is configured to calculates the average access cycle is an average value of the time interval for receiving the request signal, to set the collection period based on the average access cycle, the data collection After the data transmission processing unit sets the collection cycle based on the average access cycle, the processing unit sets a next collection time for collecting the detected physical quantity information from the terminal device via the relay device. Based on the time when the detected physical quantity information is collected from the terminal device, the time when the request signal is received from the monitoring device is set as a reference .

また、本発明に係る、監視対象の物理量を検知する端末装置と、前記端末装置との間で通信信号を中継する中継子装置と、前記端末装置が検知した物理量を収集する監視装置と、前記端末装置が検知した物理量を中継する中継親装置とを備える遠隔監視システムにおいて、前記中継親装置は、前記検知物理量情報を記憶するとともに、前記端末装置から前記検知物理量情報を収集する時間間隔である収集周期を記憶する記憶部と、前記端末装置との間で通信信号を中継する中継子装置を介して前記収集周期に基づいて前記端末装置から前記検知物理量情報を収集して前記記憶部に記憶するデータ収集処理部と、前記検知物理量情報を前記端末装置に要求する要求信号を前記監視装置から受信した場合に、前記記憶部に記憶されている前記検知物理量情報を収容した応答信号を前記監視装置に返信するデータ送信処理部とを備前記データ送信処理部は、前記要求信号を受信する時間間隔の平均値である平均アクセス周期を演算すると共に、前記平均アクセス周期に基づいて前記収集周期を設定し前記データ収集処理部は、前記データ送信処理部が前記平均アクセス周期に基づいて前記収集周期を設定した後において、前記端末装置から前記検知物理量情報を収集する次回の収集時刻を、前記中継子装置を介して前記端末装置から前記検知物理量情報を収集する時間に基づいて前記監視装置から前記要求信号を受信した時刻を基準に設定することを特徴とする。 Further, according to the present invention, a terminal device that detects a physical quantity to be monitored, a relay device that relays a communication signal between the terminal device, a monitoring device that collects a physical quantity detected by the terminal device, and In a remote monitoring system including a relay parent device that relays a physical quantity detected by a terminal device, the relay parent device stores the detected physical quantity information and collects the detected physical quantity information from the terminal device. The detected physical quantity information is collected from the terminal device based on the collection cycle via a storage unit that stores the collection cycle and a relay device that relays communication signals between the terminal device and stored in the storage unit And a data collection processing unit that receives the request signal for requesting the detected physical quantity information from the terminal device from the monitoring device, the detection stored in the storage unit E Bei a data transmission unit which transmits a response signal containing the physical quantity information to the monitoring device, the data transmission processing section calculates an average access cycle is an average value of the time interval for receiving the request signal And setting the collection cycle based on the average access cycle, the data collection processing unit from the terminal device after the data transmission processing unit has set the collection cycle based on the average access cycle The next collection time for collecting the detected physical quantity information is set based on the time when the request signal is received from the monitoring device based on the time for collecting the detected physical quantity information from the terminal device via the relay device. It is characterized by that.

このような構成の中継親装置及び遠隔監視システムでは、記憶部が端末装置の検知した物理量に関する検知物理量情報を記憶し、データ収集処理部が端末装置との間で通信信号を中継する中継子装置を介して端末装置から端末装置の検知した検知物理量情報を収集して記憶部に記憶させ、データ送信処理部が端末装置の検知した検知物理量情報を端末装置に要求する要求信号を監視装置から受信した場合に、記憶部に記憶されている検知物理量情報を収容した応答信号を監視装置に返信する。このため、監視装置からの要求信号は、管理下の端末装置11に代わって中継親装置によって応答されるので、要求信号に対する応答信号が遅延することはない。よって、監視装置の各種設定を見直す必要がなく、再設計する必要も生じない。さらに、このような監視装置における各種設定の再設定や再設計を行う必要がないので、遠隔監視システムを停止する必要もない。従って、中継親装置は、監視装置を変更することなく、端末装置を遠隔監視システム1に組み込むことができる。   In the relay master device and the remote monitoring system having such a configuration, the storage unit stores the detected physical quantity information related to the physical quantity detected by the terminal device, and the data collection processing unit relays the communication signal to and from the terminal device. The physical quantity information detected by the terminal device is collected from the terminal device via the terminal and stored in the storage unit, and the data transmission processing unit receives a request signal from the monitoring device that requests the terminal device for the detected physical quantity information detected by the terminal device. In this case, a response signal containing the detected physical quantity information stored in the storage unit is returned to the monitoring device. For this reason, since the request signal from the monitoring device is responded by the relay master device in place of the managed terminal device 11, the response signal to the request signal is not delayed. Therefore, it is not necessary to review various settings of the monitoring device, and it is not necessary to redesign. Furthermore, since it is not necessary to reset or redesign various settings in such a monitoring apparatus, it is not necessary to stop the remote monitoring system. Therefore, the relay master device can incorporate the terminal device into the remote monitoring system 1 without changing the monitoring device.

以下、本発明に係る実施形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、その説明を省略する。   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.

(実施形態の構成)
図1は、実施形態に係る遠隔監視システムの構成を示す図である。図2は、実施形態に係る中継親装置の構成を示すブロック図である。図3は、端末管理データテーブルの構成を示す図である。図4は、収集データテーブルの構成を示す図である。図5は、第2通信部の動作を説明するための図である。
(Configuration of the embodiment)
FIG. 1 is a diagram illustrating a configuration of a remote monitoring system according to the embodiment. FIG. 2 is a block diagram illustrating a configuration of the relay master device according to the embodiment. FIG. 3 is a diagram showing the configuration of the terminal management data table. FIG. 4 is a diagram showing the configuration of the collected data table. FIG. 5 is a diagram for explaining the operation of the second communication unit.

図1において、本発明の実施形態に係る遠隔制御システム1は、背景技術に係る中継装置X700−xの代わりに以下に説明する本発明の実施形態に係る中継親装置12を用いる点を除き、図10を用いて説明した遠隔制御システム1000と同様である。そのため、監視装置10、端末装置11、伝送路13及び中継装置700(700−y、700−z)の説明を省略する。なお、中継装置のうちの監視装置10に伝送路A13−aを介して通信可能に接続される中継装置を中継親装置と呼称することとし、中継装置のうちの中継親装置を介して監視装置10と端末装置11との間で通信信号を中継する中継装置を中継子装置と呼称することとする。この中継子装置は、背景技術の中継装置700と同一であり、中継子装置の参照符号に背景技術の中継装置における参照符号700を用いることとする。   In FIG. 1, the remote control system 1 according to the embodiment of the present invention uses a relay master device 12 according to an embodiment of the present invention described below, instead of the relay device X700-x according to the background art, This is the same as the remote control system 1000 described with reference to FIG. Therefore, the description of the monitoring device 10, the terminal device 11, the transmission path 13, and the relay device 700 (700-y, 700-z) is omitted. Note that a relay device communicably connected to the monitoring device 10 among the relay devices via the transmission path A13-a is referred to as a relay parent device, and the monitoring device is connected via the relay parent device among the relay devices. A relay device that relays communication signals between the terminal 10 and the terminal device 11 is referred to as a relay device. This relay device is the same as the relay device 700 of the background art, and the reference number 700 in the relay device of the background technology is used as the reference number of the relay device.

図2において、実施形態に係る中継親装置12は、第1通信部21、中央処理部22、記憶部23及び第2通信部24を備えて構成される。   In FIG. 2, the relay master device 12 according to the embodiment includes a first communication unit 21, a central processing unit 22, a storage unit 23, and a second communication unit 24.

第1通信部21は、伝送路A13−aを用いて通信を行うための通信インターフェース回路であり、中央処理部22からのデータを伝送路A13−aの第1通信プロトコルに従った通信信号を生成すると共に伝送路A13−aからの通信信号を中央処理部22が処理可能な形式のデータに変換する。   The first communication unit 21 is a communication interface circuit for performing communication using the transmission path A13-a. The first communication unit 21 receives data from the central processing unit 22 as a communication signal according to the first communication protocol of the transmission path A13-a. At the same time, the communication signal from the transmission path A13-a is converted into data in a format that can be processed by the central processing unit 22.

中央処理部22は、例えば、マイクロプロセッサ等で構成され、後述のように、監視装置10から要求信号を受信した場合に管理下の端末装置11に代わって当該要求信号に応じた応答信号を生成して監視装置10に返信する際の処理を行うデータ送信処理部221、後述のように、中継子装置700に接続する端末装置11から状態データを収集する際の処理を行うデータ収集処理部222、及び、時を計ってデータ送信処理部221やデータ収集処理部222の要求に応じて現在時刻を出力する時計部223を備えると共に、各プログラムに従い第1通信部21、記憶部23及び第2通信部24を制御する。   The central processing unit 22 is constituted by, for example, a microprocessor or the like, and generates a response signal corresponding to the request signal instead of the managed terminal device 11 when receiving the request signal from the monitoring device 10 as will be described later. Then, a data transmission processing unit 221 that performs processing when returning to the monitoring device 10, and a data collection processing unit 222 that performs processing when collecting state data from the terminal device 11 connected to the relay device 700, as will be described later. And a clock unit 223 that outputs the current time in response to a request from the data transmission processing unit 221 or the data collection processing unit 222, and according to each program, the first communication unit 21, the storage unit 23, and the second The communication unit 24 is controlled.

記憶部23は、端末管理データ記憶部231及び収集データ記憶部232を備え、本中継親装置12を動作させるための制御プログラム等の各プログラム、最大リトライ回数等の各プログラムの実行に必要な情報等を記憶すると共に、中央処理部22に対する所謂ワーキングメモリである。記憶部23は、例えば、各プログラムやこれに必要な情報等を記憶する、例えばROM(Read Only Memory)やEEPROM(Electrically Erasable Programmable Read Only Memory)等の不揮発性の記憶素子、及び、ワーキングメモリとなる例えばRAM(Random Access Memory)等の揮発性の記憶素子を備えて構成される。最大リトライ回数は、要求信号の送信を中継親装置12がリトライする最大回数であり、仕様によって決定されるが、例えば、伝送路B13−bの伝送容量、伝送環境や伝送路B13−bに接続している中継子装置700の個数等を考慮して決定される。   The storage unit 23 includes a terminal management data storage unit 231 and a collected data storage unit 232, and information necessary for executing each program such as a control program for operating the relay parent device 12 and the maximum number of retries. And so-called working memory for the central processing unit 22. The storage unit 23 stores, for example, each program and information necessary for the program, for example, a nonvolatile storage element such as a ROM (Read Only Memory) or an EEPROM (Electrically Erasable Programmable Read Only Memory), and a working memory. For example, a volatile storage element such as a RAM (Random Access Memory) is provided. The maximum number of retries is the maximum number of times that the relay master device 12 retries the transmission of the request signal, and is determined according to the specification. It is determined in consideration of the number of relay devices 700 that are being used.

端末管理データ記憶部231は、当該中継親装置12が管理する端末装置11に関する情報を登録する端末管理データテーブルを記憶する。   The terminal management data storage unit 231 stores a terminal management data table in which information related to the terminal device 11 managed by the relay parent device 12 is registered.

端末管理データテーブル30は、例えば、図3(A)に示すように、端末管理データテーブル30の各レコードを表すための番号を登録する管理番号フィールド301、当該中継親装置12が中継子装置700を介して管理する端末装置11(管理下の端末装置11)の端末装置IDを登録する登録端末装置IDフィールド302、及び、端末装置11から収集する状態データに関する情報を登録する端末データフィールド303の各フィールドを備えて構成され、当該中継親装置12が管理可能な端末装置11の個数分だけレコードが作成される。   For example, as shown in FIG. 3A, the terminal management data table 30 includes a management number field 301 for registering a number for representing each record of the terminal management data table 30, and the relay master device 12 is connected to the relay slave device 700. A registered terminal device ID field 302 for registering the terminal device ID of the terminal device 11 (managed terminal device 11) managed via the terminal device, and a terminal data field 303 for registering information relating to status data collected from the terminal device 11 As many records as the number of terminal devices 11 configured with each field and manageable by the relay parent device 12 are created.

図3(A)に示す例では、中継親装置12は、8個の端末装置11を管理可能とするため、8個のレコードが端末管理データテーブル30に用意され、そのうち、4個のレコードが端末装置ID=「3」、「4」、「5」及び「6」の端末装置11(11−c〜11−f)における端末装置11に関する情報を登録するために使用されている。なお、未使用のレコードにおける各フィールド301〜303には、未使用であることを示す記号列、図3(A)に示す例では「****」が登録される。   In the example shown in FIG. 3A, the relay master device 12 is capable of managing eight terminal devices 11, so that eight records are prepared in the terminal management data table 30, of which four records are included. It is used to register information related to the terminal device 11 in the terminal devices 11 (11-c to 11-f) with the terminal device ID = “3”, “4”, “5”, and “6”. In each of the fields 301 to 303 in the unused record, a symbol string indicating that it is unused, “***” is registered in the example shown in FIG.

端末データフィールド303は、状態データに関する情報として、図3(A)に示す例では、状態データの種類を識別するための識別子であるデータIDを登録するデータIDフィールド3031、状態データのサイズをバイト(byte)単位で登録するデータサイズフィールド3032、及び、状態データを端末装置11から収集する時間間隔を秒(sec)単位で登録する収集周期フィールド3033の各サブフィールドを備えて構成される。例えば、データID=1は、状態データが照度であることを表し、データID=2は、状態データが温度であることを表し、データID=3は、状態データが湿球温度であることを表し、データID=4は、状態データが湿度であることを表し、データID=5は、状態データが電流であることを表し、データID=6は、状態データが電圧であることを表し、そして、データID=7は、状態データが電力であることを表す。また、このように収集周期フィールド3033を備えるので、状態データを収集する収集周期を各端末装置11の状態データの種類ごとに設定することができる。このため、経時変化が比較的小さい状態データに対して収集周期を経時変化が比較的大きい状態データよりも長く設定することができる。その結果、全ての状態データに対し同一の収集周期でその状態データを収集する場合よりも、通信トラフィックを抑制することができ、送受信に要する電力を抑制することができる。   In the example shown in FIG. 3A, the terminal data field 303 is a data ID field 3031 for registering a data ID, which is an identifier for identifying the type of the state data. Each subfield includes a data size field 3032 registered in units of (bytes) and a collection period field 3033 in which time intervals for collecting state data from the terminal device 11 are registered in units of seconds (sec). For example, data ID = 1 indicates that the state data is illuminance, data ID = 2 indicates that the state data is temperature, and data ID = 3 indicates that the state data is wet bulb temperature. Data ID = 4 represents that the state data is humidity, data ID = 5 represents that the state data is current, data ID = 6 represents that the state data is voltage, Data ID = 7 represents that the state data is power. Since the collection cycle field 3033 is provided as described above, a collection cycle for collecting state data can be set for each type of state data of each terminal device 11. For this reason, the collection cycle can be set longer for state data with relatively small changes over time than with state data with relatively large changes over time. As a result, communication traffic can be suppressed and power required for transmission / reception can be suppressed as compared to the case where the state data is collected at the same collection period for all the state data.

図3(A)において、例えば、管理番号フィールド301に「2」が登録されているレコードにおける、登録端末装置IDフィールド302には「4」が登録され、データIDフィールド3031には「1」が登録され、データサイズフィールド3032には「2」が登録され、そして、収集周期フィールド3033には「10」が登録されている。このことより、中継親装置12は、端末装置ID=「4」の端末装置D11−dを管理し、この端末装置D11−dに対して10秒間隔で要求信号により2バイトの照度データを収集する。   3A, for example, in a record in which “2” is registered in the management number field 301, “4” is registered in the registered terminal device ID field 302, and “1” is registered in the data ID field 3031. Registered, “2” is registered in the data size field 3032, and “10” is registered in the collection period field 3033. Accordingly, the relay master device 12 manages the terminal device D11-d having the terminal device ID = “4”, and collects 2-byte illuminance data for the terminal device D11-d by a request signal at intervals of 10 seconds. To do.

ここで、1個の端末装置11が複数の物理量を検知する場合に対応するために、端末データフィールド303を複数備えるように端末管理データテーブル31を構成してもよい。図3(B)に示す例では、端末管理データテーブル31は、端末データAフィールド303−a、端末データBフィールド303−b及び端末データCフィールド303−cの3個の端末データフィールド303を備える。   Here, in order to cope with the case where one terminal apparatus 11 detects a plurality of physical quantities, the terminal management data table 31 may be configured to include a plurality of terminal data fields 303. In the example shown in FIG. 3B, the terminal management data table 31 includes three terminal data fields 303 including a terminal data A field 303-a, a terminal data B field 303-b, and a terminal data C field 303-c. .

図3(B)において、例えば、管理番号フィールド301に「3」が登録されているレコードにおける、登録端末装置IDフィールド302には「5」が登録され、端末データAフィールド303−aにおけるデータIDフィールド3031−aには「2」が登録され、データサイズフィールド3032−aには「4」が登録され、収集周期フィールド3033−aには「60」が登録され、端末データBフィールド303−bにおけるデータIDフィールド3031−bには「4」が登録され、データサイズフィールド3032−bには「4」が登録され、そして、収集周期フィールド3033−bには「60」が登録されている。このことより、中継親装置12は、端末装置ID=「5」の端末装置E11−eを管理し、この端末装置E11−eに対して、60秒間隔で要求信号により4バイトの温度データと、60秒間隔で要求信号により4バイトの湿度データを収集する。   In FIG. 3B, for example, in the record in which “3” is registered in the management number field 301, “5” is registered in the registered terminal device ID field 302, and the data ID in the terminal data A field 303-a. "2" is registered in the field 3031-a, "4" is registered in the data size field 3032-a, "60" is registered in the collection period field 3033-a, and the terminal data B field 303-b. "4" is registered in the data ID field 3031-b, "4" is registered in the data size field 3032-b, and "60" is registered in the collection period field 3033-b. As a result, the relay master device 12 manages the terminal device E11-e with the terminal device ID = “5”, and with respect to this terminal device E11-e, the 4-byte temperature data and the 4 bytes of humidity data are collected by request signal at 60 second intervals.

収集データ記憶部232は、中継子装置700を介して端末装置11から状態データを収集するための設定情報を登録する収集データテーブルを記憶する。   The collected data storage unit 232 stores a collected data table for registering setting information for collecting state data from the terminal device 11 via the relay device 700.

収集データテーブル40は、例えば、図4(A)に示すように、収集データテーブル40の各レコードを表すための番号を登録する管理番号フィールド401、中継子装置700を介して管理する端末装置11と当該中継親装置12が通信可能であるか否かの状況を表す接続状況を登録する接続状況フィールド402、及び、端末装置11から状態データを収集するための設定情報に関する情報を登録する状態データフィールド403の各フィールドを備えて構成され、当該中継親装置12が管理可能な端末装置11の個数分だけレコードが作成される。ここで、端末管理データテーブル30における管理番号フィールド301と収集データテーブル40における管理番号フィールド401とは、連動しており、同じ管理番号のレコードは、同一の端末装置11に対するデータである。また、図4(A)の例では中継親装置12と端末装置11とが通信可能な接続状況にある場合には「OK」と登録され、中継親装置12と端末装置11とが通信不可能な接続状況にある場合には「NG」と登録される。   For example, as shown in FIG. 4A, the collection data table 40 includes a management number field 401 for registering a number for representing each record of the collection data table 40, and a terminal device 11 managed via the relay device 700. And a connection status field 402 for registering a connection status indicating whether or not the relay master device 12 is communicable, and status data for registering information on setting information for collecting status data from the terminal device 11 As many records as the number of terminal devices 11 that are configured to include each field 403 and can be managed by the relay parent device 12 are created. Here, the management number field 301 in the terminal management data table 30 and the management number field 401 in the collection data table 40 are linked, and records with the same management number are data for the same terminal device 11. In the example of FIG. 4A, when the relay master device 12 and the terminal device 11 are in a connection state where communication is possible, “OK” is registered, and the relay master device 12 and the terminal device 11 cannot communicate with each other. “NG” is registered when the connection status is not correct.

図4(A)に示す例では、中継親装置12は、端末管理データテーブル30と同様に、8個の端末装置11を管理可能とするため、8個のレコードが収集データテーブル40に用意され、そのうち、端末管理データテーブル30における管理番号「1」、「2」、「3」及び「4」のレコードに登録されている端末装置11(11−c〜11−f)に対して状態データを収集するための設定情報を登録するために4個のレコードが使用されている。なお、収集データテーブル40のレコード数は、本実施形態では、端末管理データテーブル30のレコード数と同数としたが、端末管理データテーブル30において使用されているレコード数(図3(A)では4個)と同数又はそれ以上のレコード数としてもよい。   In the example shown in FIG. 4A, the relay master device 12 can manage eight terminal devices 11 in the same manner as the terminal management data table 30, so that eight records are prepared in the collection data table 40. Of these, status data for the terminal devices 11 (11-c to 11-f) registered in the records of the management numbers “1”, “2”, “3”, and “4” in the terminal management data table 30 Four records are used to register setting information for collecting. The number of records in the collection data table 40 is the same as the number of records in the terminal management data table 30 in this embodiment, but the number of records used in the terminal management data table 30 (4 in FIG. 3A). The number of records may be equal to or greater than the number of records.

状態データフィールド403は、端末装置11から状態データを収集するための設定情報に関する情報として、図4(A)に示す例では、監視装置10から要求信号を受信した時刻(アクセス時刻)を登録するアクセス時刻フィールド4031、監視装置10から順次に複数の要求信号を受信した場合に各アクセス時刻の時間間隔(アクセス周期)に対する平均値を秒(sec)単位で登録する平均アクセス周期フィールド4032、状態データを端末装置11から収集する時刻(収集時刻)を端末管理データテーブル30の収集周期に基づいて登録する収集時刻フィールド4033、平均アクセス周期フィールド4032に登録されているデータを収集周期に設定するために使用するカウンタ(アクセスカウンタ)の値を登録するアクセスカウンタフィールド4034、及び、端末装置11から収集した状態データを登録する取得データフィールド4035の各サブフィールドを備えて構成される。   In the example shown in FIG. 4A, the status data field 403 registers the time (access time) when the request signal is received from the monitoring device 10 as information related to setting information for collecting status data from the terminal device 11. Access time field 4031, average access period field 4032 for registering an average value for the time interval (access period) of each access time when receiving a plurality of request signals sequentially from the monitoring device 10, status data For collecting the data registered in the collection time field 4033 and the average access cycle field 4032 for registering the time (collection time) from the terminal device 11 based on the collection cycle of the terminal management data table 30 as the collection cycle Access to register the value of the counter (access counter) to be used Counter field 4034, and configured to include each subfield of the acquired data field 4035 for registering a state data collected from the terminal device 11.

図4(A)において、例えば、管理番号フィールド401に「2」が登録されているレコードにおける、接続状況フィールド402には「OK」が登録され、アクセス時刻フィールド4031には「19:00:01」が登録され、平均アクセス周期フィールド4032には「10」が登録され、収集時刻フィールド4033には「19:00:11」が登録され、アクセスカウンタフィールド4034には「5」が登録され、そして、取得データフィールド4035には「3200Lux」が登録されている。このことより、中継親装置12は、管理番号「2」即ち端末装置ID=「4」の端末装置D11−dに対して通信可能な状況にあり、監視装置10から要求信号を「19:00:01」に受信し、その平均アクセス周期が10秒であり、「19:00:11」に次回の状態データを収集する予定である。アクセスカウンタは、「5」であり、そして、中継親装置12が収集した状態データは、「3200Lux」である。ここで、収集データテーブル40の管理番号フィールド401における管理番号と、端末管理データテーブル30の管理番号フィールド301における管理番号とは、連動しており、収集データテーブル30の管理番号に基づいて端末管理データテーブル30を参照することによって、端末装置11を特定することができる。   In FIG. 4A, for example, in a record in which “2” is registered in the management number field 401, “OK” is registered in the connection status field 402, and “19:00:01” is registered in the access time field 4031. ”Is registered,“ 10 ”is registered in the average access period field 4032,“ 19:00:11 ”is registered in the collection time field 4033,“ 5 ”is registered in the access counter field 4034, and In the acquired data field 4035, “3200 Lux” is registered. As a result, the relay master device 12 is in a state where it can communicate with the terminal device D11-d having the management number “2”, that is, the terminal device ID = “4”, and the request signal from the monitoring device 10 is “19:00”. : 01 ”, the average access cycle is 10 seconds, and the next state data is scheduled to be collected at“ 19:00:11 ”. The access counter is “5”, and the status data collected by the relay master device 12 is “3200 Lux”. Here, the management number in the management number field 401 of the collection data table 40 and the management number in the management number field 301 of the terminal management data table 30 are linked, and terminal management is performed based on the management number of the collection data table 30. The terminal device 11 can be specified by referring to the data table 30.

なお、各フィールド401〜403には、データが登録されていないことを示す記号列、図4(A)に示す例では「−」が登録されている。   In each of the fields 401 to 403, a symbol string indicating that no data is registered, “−” is registered in the example shown in FIG.

ここで、1個の端末装置11が複数の物理量を検知する場合に対応するために、端末管理データテーブル30と同様に、状態データフィールド403を複数備えるように収集データテーブル41を構成してもよい。図4(B)に示す例では、収集データテーブル41は、状態データAフィールド403−a、状態データBフィールド403−b及び状態データCフィールド403−cの3個の端末データフィールド403を備える。   Here, in order to cope with the case where one terminal apparatus 11 detects a plurality of physical quantities, the collection data table 41 may be configured to include a plurality of status data fields 403 in the same manner as the terminal management data table 30. Good. In the example shown in FIG. 4B, the collected data table 41 includes three terminal data fields 403, a status data A field 403-a, a status data B field 403-b, and a status data C field 403-c.

図4(B)において、例えば、管理番号フィールド401に「3」が登録されているレコードにおける、接続状況フィールド402には「OK」が登録され、状態データAフィールド403−aのアクセス時刻フィールド4031−aには「19:00:55」が登録され、平均アクセス周期フィールド4032−aには「60」が登録され、収集時刻フィールド4033−aには「19:01:55」が登録され、アクセスカウンタフィールド4034−aには「0」が登録され、取得データフィールド4035−aには「25℃」が登録され、状態データBフィールド403−bのアクセス時刻フィールド4031−bには「19:00:55」が登録され、平均アクセス周期フィールド4032−bには「60」が登録され、収集時刻フィールド4033−bには「19:01:55」が登録され、アクセスカウンタフィールド4034−bには「0」が登録され、そして、取得データフィールド4035−bには「55%」が登録されている。このことより、中継親装置12は、管理番号「3」即ち端末装置ID=「5」の端末装置11に対して通信可能な状況にあり、監視装置10から要求信号を「19:00:55」に受信し、その平均アクセス周期が60秒であり、「19:01:55」に次回の状態データを収集する予定である。アクセスカウンタは、「0」であり、そして、中継親装置12が収集した状態データは、「25℃」及び「55%」である。なお、この例では、アクセス時刻、平均アクセス周期、収集時刻及びアクセスカウンタにおける各データは、状態データAフィールド403−a及び状態データBフィールド403−bにおいて同一であるが、後述するように、監視装置10が個別に要求信号を送信する場合等には異なる。   In FIG. 4B, for example, in the record in which “3” is registered in the management number field 401, “OK” is registered in the connection status field 402, and the access time field 4031 of the status data A field 403-a. -A is registered with "19:00:55", "60" is registered with the average access period field 4032-a, "19:01:55" is registered with the collection time field 4033-a, “0” is registered in the access counter field 4034-a, “25 ° C.” is registered in the acquired data field 4035-a, and “19: 00:55 ”is registered,“ 60 ”is registered in the average access period field 4032-b, and the collection time “19:01:55” is registered in the field 4033-b, “0” is registered in the access counter field 4034-b, and “55%” is registered in the acquisition data field 4035-b. Yes. As a result, the relay master device 12 can communicate with the terminal device 11 having the management number “3”, that is, the terminal device ID = “5”, and sends a request signal “19:00:55” from the monitoring device 10. The average access cycle is 60 seconds, and the next status data is scheduled to be collected at “19:01:55”. The access counter is “0”, and the status data collected by the relay master device 12 is “25 ° C.” and “55%”. In this example, the access time, the average access cycle, the collection time, and the data in the access counter are the same in the status data A field 403-a and the status data B field 403-b. This is different when the apparatus 10 individually transmits a request signal.

なお、状態データにおける収集データテーブル41と端末管理データテーブル31との対応関係は、図4(B)及び図3(B)に示す例では、状態データAフィールド403−aが端末データAフィールド303−aに対応し、状態データBフィールド403−bが端末データBフィールド303−bに対応し、そして、状態データCフィールド403−cが端末データCフィールド303−cに対応するように、テーブル内のその位置関係によって対応させているが、状態データフィールド403にデータIDフィールドをさらに設けて対応関係を表してもよい。   The correspondence relationship between the collected data table 41 and the terminal management data table 31 in the state data is such that the state data A field 403-a is the terminal data A field 303 in the example shown in FIGS. 4B and 3B. -A, the status data B field 403-b corresponds to the terminal data B field 303-b, and the status data C field 403-c corresponds to the terminal data C field 303-c. However, the status data field 403 may be further provided with a data ID field to represent the correspondence.

第2通信部24は、伝送路B13−bを用いて通信を行うための通信インターフェース回路であり、中央処理部22からのデータをカプセル化により伝送路B13−bの第2通信プロトコルに従った通信信号を生成すると共に、伝送路B13−bからの通信信号をデカプセル化して中央処理部22が処理可能な形式のデータに変換する。   The second communication unit 24 is a communication interface circuit for performing communication using the transmission line B13-b, and encapsulates data from the central processing unit 22 according to the second communication protocol of the transmission line B13-b. A communication signal is generated, and the communication signal from the transmission path B13-b is decapsulated and converted into data in a format that can be processed by the central processing unit 22.

即ち、第1通信プロトコルに従った通信信号は、図5(A)に示すように、第1通信プロトコルのヘッダ部501と第1通信プロトコルのペイロード部502と第1通信プロトコルのフッダ部503とを備えて構成されるが、伝送路B13−bに通信信号を送信する場合には、図5(D)に示すように、第2通信部24は、中央処理部22からこの第1通信プロトコルに従った形式のデータを第2通信プロトコルのペイロード部512に収容して、つまり、第1通信プロトコルに従った形式のデータの前に第2通信プロトコルのヘッダ部511を付け、第1通信プロトコルに従った形式のデータの後に第2通信プロトコルのフッダ部513を付けることによって(カプセル化)、伝送路B13−bに送信すべき通信信号を生成する。そして、伝送路B13−bから通信信号を受信して中央処理部22にデータを出力する場合には、第2通信プロトコルのペイロード部512からデータを取り出して、つまり、受信した通信信号から第2通信プロトコルのヘッダ部511及びフッダ部513を外すことによって(デカプセル化)、中央処理部22に出力すべきデータを生成する。   That is, as shown in FIG. 5A, a communication signal in accordance with the first communication protocol includes a header portion 501 of the first communication protocol, a payload portion 502 of the first communication protocol, and a footer portion 503 of the first communication protocol. However, when a communication signal is transmitted to the transmission line B13-b, as shown in FIG. 5D, the second communication unit 24 sends the first communication protocol from the central processing unit 22. Is stored in the payload portion 512 of the second communication protocol, that is, the header portion 511 of the second communication protocol is added before the data of the format according to the first communication protocol, and the first communication protocol A communication signal to be transmitted to the transmission line B13-b is generated by adding a second communication protocol footer 513 after the data in the format conforming to (encapsulation). When receiving the communication signal from the transmission line B13-b and outputting the data to the central processing unit 22, the data is taken out from the payload portion 512 of the second communication protocol, that is, the second is obtained from the received communication signal. The data to be output to the central processing unit 22 is generated by removing the header 511 and the footer 513 of the communication protocol (decapsulation).

このように第1通信プロトコルから第2通信プロトコルへの変換は、カプセル化によって行われるので、第1通信プロトコルから第2通信プロトコルへ変換する際に、第1通信プロトコルの通信信号に収容されているデータを第2通信プロトコルのフォーマットに合わせて入れ替え等を行って第2通信プロトコルの通信信号を生成する必要がない。また、逆に、第2通信プロトコルから第1通信プロトコルへの変換は、デカプセル化によって行われるので、第2通信プロトコルから第1通信プロトコルへ変換する際に、第2通信プロトコルの通信信号に収容されているデータをそのまま取り出せばよい。このため、変換処理が容易であり、高速に処理することができる。   Thus, since the conversion from the first communication protocol to the second communication protocol is performed by encapsulation, when converting from the first communication protocol to the second communication protocol, it is accommodated in the communication signal of the first communication protocol. It is not necessary to replace the existing data in accordance with the format of the second communication protocol and generate a communication signal of the second communication protocol. Conversely, since the conversion from the second communication protocol to the first communication protocol is performed by decapsulation, when converting from the second communication protocol to the first communication protocol, the communication signal of the second communication protocol is accommodated. What is necessary is just to take out the data as it is. For this reason, the conversion process is easy and can be performed at high speed.

第1及び第2通信プロトコルのヘッダ部501、511は、通信信号の宛先やメッセージ番号等の通信信号を効率的に伝送させるための情報であるヘッダ情報を収容する部分であり、第1及び第2通信プロトコルのペイロード部502、512は、送信すべきデータを収容する部分であり、第1及び第2通信プロトコルのフッダ部503、513は、ヘッダ部501、511及びペイロード部502、512におけるデータの正当性をチェックするCRCやチェックサム等の情報、及び、通信信号の終了を示す情報(デミリタコード)等のフッダ情報を収容する部分である。   The header portions 501 and 511 of the first and second communication protocols are portions that contain header information that is information for efficiently transmitting a communication signal such as a destination of a communication signal and a message number. The payload portions 502 and 512 of the second communication protocol are portions for storing data to be transmitted, and the footer portions 503 and 513 of the first and second communication protocols are data in the header portions 501 and 511 and the payload portions 502 and 512, respectively. This is a part that contains information such as CRC and checksum for checking the validity of the data, and footer information such as information (demilita code) indicating the end of the communication signal.

第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 wireless protocols such as low-power wireless and Bluetooth (registered trademark).

次に、本実施形態の動作について説明する。   Next, the operation of this embodiment will be described.

(実施形態の動作)
まず、中継子装置700を介して端末装置11から状態データを中継親装置12が収集する動作について説明する。図6は、中継子装置を介して端末装置から状態データを収集する動作を示すフローチャートである。
(Operation of the embodiment)
First, the operation of the relay master device 12 collecting state data from the terminal device 11 via the relay slave device 700 will be described. FIG. 6 is a flowchart showing an operation of collecting state data from the terminal device via the relay device.

端末装置11の設置場所に起因して伝送路A13−aに直接接続できない場合や監視すべき箇所が増えたために端末装置11が増設される場合等のために、伝送路A13−aを介して監視装置10に通信可能に中継親装置12が配置され、例えば、その電源が投入されると、中継親装置12の中央処理部22は、端末管理データテーブル30のレコード数(管理番号の最大値)に合わせたレコード数の収集データテーブル40を記憶部23の収集データ記憶部232に生成し、初期化する。本実施形態では、中継親装置12における中央処理部22のデータ送信処理部221は、時計部223より現在時刻を取得すると共に、接続状況フィールド402及び状態データフィールド403をクリアし、取得した現在時刻と収集周期フィールド3033に登録されている収集周期とに基づいて収集時刻フィールド4033に次回の収集時刻を登録する。なお、端末管理テーブル30における登録端末装置IDフィールド302及び端末データフィールド303の各フィールド値は、例えば、中継親装置12を設置する施工者等によって図略の設定装置等を用いて登録される。   When the terminal device 11 cannot be directly connected to the transmission line A13-a due to the installation location of the terminal device 11 or when the terminal device 11 is added because the number of locations to be monitored has increased, the transmission line A13-a is used. For example, when the relay master device 12 is arranged to be communicable with the monitoring device 10 and the power is turned on, the central processing unit 22 of the relay master device 12 determines the number of records in the terminal management data table 30 (the maximum value of the management number). ) Is generated in the collected data storage unit 232 of the storage unit 23 and initialized. In the present embodiment, the data transmission processing unit 221 of the central processing unit 22 in the relay parent device 12 acquires the current time from the clock unit 223, clears the connection status field 402 and the status data field 403, and acquires the acquired current time. And the next collection time is registered in the collection time field 4033 based on the collection period registered in the collection period field 3033. Note that the field values of the registered terminal device ID field 302 and the terminal data field 303 in the terminal management table 30 are registered by using, for example, a setting device (not shown) by the installer who installs the relay parent device 12.

図6において、中央処理部22のデータ収集処理部222は、要求信号のリトライ送信回数を示すリトライ回数カウンタを「0」にセットすることによって、リトライ回数カウンタを初期化する(S11)。   In FIG. 6, the data collection processing unit 222 of the central processing unit 22 initializes the retry number counter by setting a retry number counter indicating the number of retry transmissions of the request signal to “0” (S11).

次に、データ収集処理部222は、時計部223より時刻(現在時刻)を取得する(S12)。次に、データ収集処理部222は、取得した時刻と収集データテーブル40の収集時刻フィールド4033に登録されている時刻とが一致するか否かを各レコードごとに判断することによって、収集時刻であるか否かを判断する(S13)。   Next, the data collection processing unit 222 acquires the time (current time) from the clock unit 223 (S12). Next, the data collection processing unit 222 determines the collection time by determining, for each record, whether the acquired time matches the time registered in the collection time field 4033 of the collection data table 40. It is determined whether or not (S13).

判断の結果、収集時刻のレコードがない場合(No)には、データ収集処理部222は、処理を処理S11に戻す。一方、判断の結果、収集時刻のレコードがある場合(Yes)には、データ収集処理部222は、当該収集時刻のレコードにおける管理番号に対応するレコードを端末管理データテーブル30から検索する。データ収集処理部222は、検索した端末管理データテーブル30のレコードにおける登録端末装置IDフィールド302、データIDフィールド3031及びデータサイズフィールド3032から端末装置ID、データID及びデータサイズを取得して、端末装置IDを宛先とする第1通信プロトコルのフォーマットに従った要求信号のデータを作成し、作成した要求信号のデータを第2通信部24に出力する(S14)。そして、データ収集処理部222は、第2通信部24を用いて要求信号を伝送路B13−bに送信する(S15)。   As a result of the determination, if there is no record of the collection time (No), the data collection processing unit 222 returns the process to the process S11. On the other hand, if there is a record of the collection time as a result of the determination (Yes), the data collection processing unit 222 searches the terminal management data table 30 for a record corresponding to the management number in the record of the collection time. The data collection processing unit 222 acquires the terminal device ID, the data ID, and the data size from the registered terminal device ID field 302, the data ID field 3031, and the data size field 3032 in the record of the searched terminal management data table 30, and the terminal device The request signal data is created according to the format of the first communication protocol with the ID as the destination, and the created request signal data is output to the second communication unit 24 (S14). Then, the data collection processing unit 222 transmits a request signal to the transmission line B13-b using the second communication unit 24 (S15).

処理S14及び処理S15をより具体的に説明すると、この第1通信プロトコルのフォーマットに従った要求信号は、上述したように第1通信プロトコルのヘッダ部501、ペイロード部502及びフッダ部503を備えて構成され、図5(B)に示すように、通信信号の種別に関する情報を収容する信号種別部5021、データIDを収容するデータID部5022及びデータサイズを収容するデータサイズ部5023が第1通信プロトコルのペイロード部502に設けられる。このため、データ収集処理部222は、取得した端末装置IDを送信先通信アドレスとして第1通信プロトコルのヘッダ部501に収容し、状態データを要求するコマンドを表す情報(例えば「要求」)を信号種別部5021に収容し、取得したデータIDをデータID部5022に収容し、取得したデータサイズをデータサイズ部5023に収容することによって、第1通信プロトコルのフォーマットに従った要求信号を作成し、作成した要求信号を第2通信部24に出力する(S14)。   The process S14 and the process S15 will be described more specifically. The request signal according to the format of the first communication protocol includes the header part 501, the payload part 502, and the footer part 503 of the first communication protocol as described above. As shown in FIG. 5B, the first communication includes a signal type unit 5021 that stores information on the type of communication signal, a data ID unit 5022 that stores a data ID, and a data size unit 5023 that stores a data size. It is provided in the payload portion 502 of the protocol. For this reason, the data collection processing unit 222 stores the acquired terminal device ID as a transmission destination communication address in the header portion 501 of the first communication protocol, and signals information (for example, “request”) indicating a command for requesting state data. A request signal according to the format of the first communication protocol is created by accommodating the acquired data ID in the data ID unit 5022 and accommodating the acquired data size in the data size unit 5023. The created request signal is output to the second communication unit 24 (S14).

この第1通信プロトコルのフォーマットに従った要求信号が入力されると、第2通信部24は、図5(D)を用いて上述したようにこの要求信号をカプセル化して第2通信プロトコルに従った要求信号を生成し、伝送路B13−bに送信する(S15)。   When the request signal according to the format of the first communication protocol is input, the second communication unit 24 encapsulates the request signal as described above with reference to FIG. 5D and follows the second communication protocol. The request signal is generated and transmitted to the transmission line B13-b (S15).

伝送路B13−bを伝送する要求信号は、中継子装置700(図1に示す例では中継子装置Y700−y及び中継子装置Z700−z)に取り込まれる。中継子装置700は、その第2通信部701を用いてデカプセル化し、デカプセル化した要求信号の送信先通信アドレス(端末装置ID)が自己の管理する端末装置11であるか否か判断する。判断の結果、自己の管理する端末装置11である場合には、中継子装置700は、第1通信部702を用いて要求信号を伝送路13(図1の例では伝送路C13−c又は伝送路D13−d)に出力する。端末装置11(図1の例では端末装置C11−c及び端末装置D11−d、又は、端末装置E11−e及び端末装置F11−f)は、伝送路13を伝送する要求信号を取り込む。送信先通信アドレスが自己の端末装置IDに一致する場合には、端末装置11は、信号種別部5021に収容されている情報から状態データの要求であることを認識し、データID部5022に収容されている情報から返信すべき状態データの種類を認識し、データサイズ部5023に収容されている情報から返信すべき状態データのデータサイズを認識する。端末装置11は、これら情報に基づいて第1通信プロトコルに従った中継親装置12宛ての応答信号を作成し、伝送路13に送信する。   The request signal for transmitting the transmission path B13-b is taken into the relay device 700 (in the example shown in FIG. 1, the relay device Y700-y and the relay device Z700-z). The relay slave device 700 decapsulates using the second communication unit 701, and determines whether or not the transmission destination communication address (terminal device ID) of the decapsulated request signal is the terminal device 11 managed by itself. If it is determined that the terminal device 11 is managed by itself, the relay device 700 uses the first communication unit 702 to send the request signal to the transmission line 13 (in the example of FIG. 1, the transmission line C13-c or the transmission line). Output to path D13-d). The terminal device 11 (in the example of FIG. 1, the terminal device C11-c and the terminal device D11-d, or the terminal device E11-e and the terminal device F11-f) takes in a request signal that is transmitted through the transmission path 13. If the destination communication address matches the terminal device ID of the terminal device 11, the terminal device 11 recognizes that it is a request for status data from the information stored in the signal type unit 5021 and stores it in the data ID unit 5022. The type of the status data to be returned is recognized from the received information, and the data size of the status data to be returned is recognized from the information stored in the data size unit 5023. The terminal device 11 creates a response signal addressed to the relay parent device 12 in accordance with the first communication protocol based on the information, and transmits the response signal to the transmission path 13.

この第1通信プロトコルのフォーマットに従った応答信号は、上述したように第1通信プロトコルのヘッダ部501、ペイロード部502及びフッダ部503を備えて構成され、図5(C)に示すように、通信信号の種別に関する情報を収容する信号種別部5021、及び、状態データを収容する状態データ部5024が第1通信プロトコルのペイロード部502に設けられる。このため、端末装置11は、中継親装置12の通信アドレスを送信先通信アドレスとして第1通信プロトコルのヘッダ部501に収容し、状態データを応答する旨を表す情報(例えば「応答」)を信号種別部5021に収容し、状態データを状態データ部5024に収容することによって、第1通信プロトコルのフォーマットに従った応答信号を作成し、作成した応答信号を伝送路13に送信する。   As described above, the response signal in accordance with the format of the first communication protocol includes the header portion 501, the payload portion 502, and the footer portion 503 of the first communication protocol, and as shown in FIG. A signal type unit 5021 that stores information on the type of communication signal and a status data unit 5024 that stores status data are provided in the payload unit 502 of the first communication protocol. For this reason, the terminal device 11 accommodates the communication address of the relay master device 12 in the header portion 501 of the first communication protocol as the transmission destination communication address, and signals information (for example, “response”) indicating that the status data is responded. By accommodating in the classification unit 5021 and accommodating the status data in the status data unit 5024, a response signal in accordance with the format of the first communication protocol is created, and the created response signal is transmitted to the transmission path 13.

この応答信号は、中継子装置700の第2通信部702によりカプセル化され第2通信プロトコルに従った応答信号で中継され、中継親装置12に返信される。   This response signal is encapsulated by the second communication unit 702 of the relay slave device 700, relayed by a response signal according to the second communication protocol, and returned to the relay master device 12.

図6に戻って、データ収集処理部222は、所定の時間内に応答信号が第2通信部24によって受信されたか否かを判断する(S16)。この所定の時間は、中継親装置12から中継子装置700を介して端末装置11までに至る往復の通信時間等を考慮して決定される。   Returning to FIG. 6, the data collection processing unit 222 determines whether or not the response signal is received by the second communication unit 24 within a predetermined time (S16). This predetermined time is determined in consideration of the round-trip communication time from the relay master device 12 to the terminal device 11 via the relay slave device 700.

判断の結果、応答信号が受信されない場合(No)には、データ収集処理部222は、リトライ回数カウンタの値が最大リトライ回数に達しているか否かを判断する(S21)。判断の結果、最大リトライ回数に達している場合(Yes)には、当該端末装置11と通信可能に接続することができないと判断し、データ収集処理部222は、収集データテーブル40の当該端末装置11に対応するレコードにおける接続状況フィールド402に「NG」を登録し(S23)、後述の処理S19を実行する。一方、判断の結果、最大リトライ回数に未到達である場合(No)には、データ収集処理部222は、リトライ回数カウンタを1だけインクリメントし(S22)、処理を処理S14に戻し、再び要求信号を送信する処理を行う(要求信号のリトライ処理)。このようにリトライ回数カウンタが最大リトライ回数に達するまで、処理S14、処理S15、処理S16、処理S21及び処理S22を繰り返すことによって、要求信号の送信がリトライされる。   If the response signal is not received as a result of the determination (No), the data collection processing unit 222 determines whether or not the value of the retry number counter has reached the maximum number of retries (S21). As a result of the determination, if the maximum number of retries has been reached (Yes), it is determined that the terminal device 11 cannot be communicably connected, and the data collection processing unit 222 determines that the terminal device of the collected data table 40 “NG” is registered in the connection status field 402 in the record corresponding to 11 (S23), and a process S19 described later is executed. On the other hand, if the maximum number of retries has not been reached as a result of the determination (No), the data collection processing unit 222 increments the retry number counter by 1 (S22), returns the process to step S14, and again receives the request signal. Is transmitted (request signal retry process). As described above, the transmission of the request signal is retried by repeating the processes S14, S15, S16, S21 and S22 until the retry number counter reaches the maximum number of retries.

そして、処理S16における判断の結果、応答信号が受信された場合(Yes)には、データ収集処理部222は、第2通信部24でデカプセル化された応答信号が入力され、応答信号の送信元通信アドレス(端末装置ID)を端末管理データテーブル30の登録端末装置IDフィールドに登録するレコードを検索する。データ収集処理部222は、当該端末装置11と通信可能に接続されていると判断し、検索したレコードにおける接続状況フィールド402に「OK」を登録する(S17)。そして、データ収集処理部222は、検索したレコードの管理番号フィールド301に登録されている管理番号に対応する収集データテーブル40のレコードにおける取得データフィールド4035に応答信号の状態データを登録し、更新する(S18)。そして、データ収集処理部222は、処理S19を実行する。   If the response signal is received as a result of the determination in step S16 (Yes), the data collection processing unit 222 is input with the response signal decapsulated by the second communication unit 24, and the source of the response signal A record for registering the communication address (terminal device ID) in the registered terminal device ID field of the terminal management data table 30 is searched. The data collection processing unit 222 determines that the terminal apparatus 11 is communicably connected, and registers “OK” in the connection status field 402 in the retrieved record (S17). Then, the data collection processing unit 222 registers and updates the status data of the response signal in the acquired data field 4035 in the record of the collected data table 40 corresponding to the management number registered in the management number field 301 of the retrieved record. (S18). And the data collection process part 222 performs process S19.

処理S19において、データ収集処理部222は、収集データテーブル40の当該レコードにおける収集時刻フィールド4033の収集時刻を、端末管理データテーブル30の当該レコードにおける収集周期フィールド3033に登録されている収集周期に基づいて更新し、処理を処理S11に戻す。即ち、データ収集処理部222は、今回の収集時刻に収集周期を加算して、中継親装置12が端末装置11から状態データを次回に収集する次回の収集時刻を設定する。   In process S19, the data collection processing unit 222 sets the collection time of the collection time field 4033 in the record of the collection data table 40 based on the collection period registered in the collection period field 3033 of the record of the terminal management data table 30. And the process returns to step S11. That is, the data collection processing unit 222 adds the collection period to the current collection time, and sets the next collection time when the relay parent device 12 collects the status data from the terminal device 11 next time.

このような処理S14乃至処理S23の処理が処理S13で収集時刻に該当する端末装置11に対してそれぞれ行われる。   Such processing from S14 to S23 is performed on the terminal device 11 corresponding to the collection time in S13.

このように中継親装置12は、端末管理データテーブル30の収集周期フィールド3033に登録されている収集周期で中継子装置700を介して端末管理データテーブル30の登録端末装置IDフィールド302に登録されている各端末装置11(管理下の端末装置11)から状態データを収集し、収集した状態データを収集データテーブル40の取得データフィールド4035に登録する。   In this way, the relay master device 12 is registered in the registered terminal device ID field 302 of the terminal management data table 30 via the relay slave device 700 at the collection cycle registered in the collection cycle field 3033 of the terminal management data table 30. Status data is collected from each terminal device 11 (managed terminal device 11), and the collected status data is registered in the acquisition data field 4035 of the collected data table 40.

そして、中継親装置12は、管理下の端末装置11宛ての要求信号を監視装置10から受信すると、この収集データテーブル40の取得データフィールド4035に登録されいる状態データを用いて応答信号を監視装置10に返信する。このように中継親装置12が管理下の端末装置11に代わって応答信号を監視装置10に返信するので、監視装置10からの要求信号は、背景技術で説明したように中継子装置700で通信プロトコルの変換等が行われることがない。よって、監視装置10からの要求信号に対する応答信号が遅延することはないので、監視装置10におけるタイムアウトの設定やリトライ回数の設定等の、通信信号を送受信するための各種設定を見直す必要がない。また、監視装置10が通信信号を送受信することに関しては、伝送路A13−aの第1通信プロトコルだけなので、複数の伝送媒体や複数の通信プロトコルを考慮する必要がないので、監視装置10を再設計する必要も生じない。さらに、このような監視装置10における各種設定の再設定や再設計を行う必要がないので、遠隔監視システム1を停止する必要もない。   When the relay master device 12 receives a request signal addressed to the terminal device 11 under management from the monitoring device 10, the relay master device 12 monitors the response signal using the status data registered in the acquisition data field 4035 of the collected data table 40. Reply to 10. Thus, since the relay master device 12 returns a response signal to the monitoring device 10 in place of the terminal device 11 under management, the request signal from the monitoring device 10 is communicated by the relay device 700 as described in the background art. Protocol conversion is not performed. Therefore, since the response signal to the request signal from the monitoring device 10 is not delayed, it is not necessary to review various settings for transmitting and receiving communication signals, such as the setting of timeout and the number of retries in the monitoring device 10. Since the monitoring device 10 transmits and receives communication signals only because the first communication protocol of the transmission path A13-a is used, it is not necessary to consider a plurality of transmission media and a plurality of communication protocols. There is no need to design. Further, since it is not necessary to reset or redesign various settings in the monitoring apparatus 10 as described above, it is not necessary to stop the remote monitoring system 1.

従って、本実施形態に係る中継親装置12は、監視装置10を変更することなく、端末装置11を遠隔監視システム1に組み込むことができる。   Therefore, the relay master device 12 according to the present embodiment can incorporate the terminal device 11 into the remote monitoring system 1 without changing the monitoring device 10.

上述のように、中継親装置12が監視装置10からの要求信号に対し管理下の端末装置11に代わって応答信号を返信するだけなら、状態データフィールド403が取得データフィールド4035のみで構成されたとしても、端末管理データテーブル30における収集周期フィールド3033に登録されている収集周期で端末装置11から状態データを取得し、取得した状態データを取得データフィールド4035に登録することができるから、これに対応することができる。   As described above, if the relay master device 12 only returns a response signal in response to the request signal from the monitoring device 10 on behalf of the managed terminal device 11, the status data field 403 includes only the acquired data field 4035. However, since the status data can be acquired from the terminal device 11 in the collection cycle registered in the collection cycle field 3033 in the terminal management data table 30, and the acquired status data can be registered in the acquisition data field 4035. Can respond.

ところで、監視装置10が要求信号の送信周期を変更した場合には、応答信号に収容する状態データの要求信号に対するリアルタイム性を確保するためには、中継親装置12の端末管理データテーブル30における収集周期フィールド3033の収集周期もこれに合わせて更新する必要がある。このような更新を人手で行う場合には、入力ミスが生じる場合があり、また、手間がかかり煩わしい。特に、中継親装置12の管理下の端末装置11の個数が多い場合には、より入力ミスが生じ易く、また、大変な手間がかかり煩わしい。   By the way, when the monitoring device 10 changes the transmission cycle of the request signal, in order to ensure real-time performance of the request data of the status data accommodated in the response signal, collection in the terminal management data table 30 of the relay parent device 12 The collection period of the period field 3033 also needs to be updated accordingly. When such an update is performed manually, an input error may occur, which is troublesome and troublesome. In particular, when the number of terminal devices 11 managed by the relay master device 12 is large, an input error is more likely to occur, and it is troublesome and troublesome.

そのため、本実施形態では、収集周期を監視装置10からの要求信号に適切に同期させるために、状態データフィールド403は、上記のアクセス時刻フィールド4031、平均アクセス周期フィールド4032及びアクセスカウンタフィールド4034の各サブフィールドを備える。   Therefore, in this embodiment, in order to appropriately synchronize the collection cycle with the request signal from the monitoring device 10, the status data field 403 includes the access time field 4031, the average access cycle field 4032, and the access counter field 4034 described above. It has subfields.

次に、監視装置10から要求信号を受信する場合の動作について説明し、応答信号の送信動作と収集周期の同期動作について説明する。図7は、監視装置から要求信号を受信する場合の動作を示すフローチャートである。   Next, an operation when a request signal is received from the monitoring apparatus 10 will be described, and a response signal transmission operation and a collection cycle synchronization operation will be described. FIG. 7 is a flowchart showing an operation when a request signal is received from the monitoring apparatus.

図7において、中央処理部22のデータ送信処理部221は、伝送路A13−a及び第1通信部21を介して監視装置10から要求信号を受信したか否かを判断する(S31)。判断の結果、要求信号が受信されていない場合(No)には、処理をこの処理S31に戻す。これによって、中継親装置12は、常時、監視装置10からの要求信号の受信を監視し、待ち受けている。   In FIG. 7, the data transmission processing unit 221 of the central processing unit 22 determines whether or not a request signal has been received from the monitoring device 10 via the transmission path A13-a and the first communication unit 21 (S31). As a result of the determination, if the request signal has not been received (No), the process returns to this process S31. As a result, the relay master device 12 always monitors and waits for reception of a request signal from the monitoring device 10.

一方、判断の結果、要求信号が受信された場合(Yes)には、データ送信処理部221は、時計部223より時刻を取得する(S32)。   On the other hand, if the request signal is received as a result of the determination (Yes), the data transmission processing unit 221 acquires the time from the clock unit 223 (S32).

次に、データ送信処理部221は、要求信号に対応した応答信号を作成して監視装置10へ返信する(S33)。より具体的には、まず、データ送信処理部221は、受信した要求信号の第1通信プロトコルのヘッダ部501に収容されている送信先通信アドレス(端末装置ID)が端末管理データ記憶部231の端末管理データテーブル30における登録端末装置IDフィールド302に登録されているか否かを判断することによって、自己の管理下の端末装置11に対する要求信号であるか否かを判断する。判断の結果、登録端末装置IDフィールド302に登録されていない場合には、データ送信処理部221は、受信した要求信号を破棄し、処理を処理S31に戻す。一方、判断の結果、登録端末装置IDフィールド302に登録されている場合には、データ送信処理部221は、受信した要求信号の第1通信プロトコルのヘッダ部501に収容されている送信先通信アドレスが登録されているレコードにおける管理番号フィールド301の管理番号を取得する。データ送信処理部221は、収集データテーブル40からその管理番号フィールド401にこの取得した管理番号を登録するレコードを検索し、検索したレコードにおける取得データフィールド4035に登録されている状態データを取得する。そして、データ送信処理部221は、この取得した状態データを収容する応答信号を作成して監視装置10へ返信する。なお、図3(B)に示すように複数の端末データフィールド303を備える端末管理データテーブル31であって、これに対応して状態データフィールド403が複数の収集データテーブル41である場合には、データIDも考慮して要求信号に対応する状態データを検索する。このように中継親装置12は、その管理下の端末装置11に代わって、監視装置10からの要求信号に対して収集データ記憶部232に記憶されている状態データを用いて応答信号を作成して監視装置10に返信するので、要求信号に対して背景技術よりも迅速に応答することができる。よって、中継親装置12は、監視装置10を変更することなく、端末装置11を遠隔監視システム1に組み込むことができる。   Next, the data transmission processing unit 221 creates a response signal corresponding to the request signal and sends it back to the monitoring apparatus 10 (S33). More specifically, first, the data transmission processing unit 221 determines that the transmission destination communication address (terminal device ID) accommodated in the header portion 501 of the first communication protocol of the received request signal is the terminal management data storage unit 231. By determining whether or not it is registered in the registered terminal device ID field 302 in the terminal management data table 30, it is determined whether or not it is a request signal for the terminal device 11 under its own management. As a result of the determination, if it is not registered in the registered terminal device ID field 302, the data transmission processing unit 221 discards the received request signal and returns the process to the process S31. On the other hand, as a result of the determination, if registered in the registered terminal device ID field 302, the data transmission processing unit 221 sends the destination communication address accommodated in the header portion 501 of the first communication protocol of the received request signal. The management number in the management number field 301 in the record in which is registered is acquired. The data transmission processing unit 221 searches the collected data table 40 for a record in which the acquired management number is registered in the management number field 401, and acquires the state data registered in the acquired data field 4035 in the searched record. Then, the data transmission processing unit 221 creates a response signal that accommodates the acquired state data and sends it back to the monitoring device 10. As shown in FIG. 3B, when the terminal management data table 31 includes a plurality of terminal data fields 303 and the status data field 403 corresponds to the plurality of collected data tables 41, The state data corresponding to the request signal is searched in consideration of the data ID. In this way, the relay master device 12 creates a response signal using the state data stored in the collected data storage unit 232 in response to the request signal from the monitoring device 10 in place of the terminal device 11 under its management. Therefore, it is possible to respond to the request signal more quickly than the background art. Therefore, the relay master device 12 can incorporate the terminal device 11 in the remote monitoring system 1 without changing the monitoring device 10.

次に、データ送信処理部221は、収集データテーブル40のアクセス時刻フィールド4031に登録されているアクセス時刻を処理S32で取得した時刻(取得時刻)から減算することによって、前回の要求信号の受信時刻から今回の要求信号の受信時刻までの時間間隔(アクセス周期)を計算する(S34)。即ち、データ送信処理部221は、(収集周期)=(取得時刻)−(アクセス時刻)を計算する。   Next, the data transmission processing unit 221 subtracts the access time registered in the access time field 4031 of the collected data table 40 from the time (acquisition time) acquired in step S32, thereby receiving the previous request signal reception time. The time interval (access cycle) from the current request signal reception time is calculated (S34). That is, the data transmission processing unit 221 calculates (collection period) = (acquisition time) − (access time).

次に、データ送信処理部221は、収集データテーブル40のアクセス時刻フィールド4031に取得時刻を登録することによって、アクセス時刻を更新する(S35)。   Next, the data transmission processing unit 221 updates the access time by registering the acquisition time in the access time field 4031 of the collected data table 40 (S35).

次に、データ送信処理部221は、処理S34で計算したアクセス周期(計算アクセス周期)、平均アクセス周期フィールド4032に登録されている平均アクセス周期、及び、アクセスカウンタフィールド4034に登録されているアクセスカウンタを用いて、平均アクセス周期を再計算する。そして、データ送信処理部221は、再計算した平均アクセス周期を平均アクセス周期フィールド4032に登録することによって、平均アクセス周期を更新する(S36)。   Next, the data transmission processing unit 221 uses the access cycle (calculated access cycle) calculated in step S34, the average access cycle registered in the average access cycle field 4032, and the access counter registered in the access counter field 4034. Is used to recalculate the average access period. Then, the data transmission processing unit 221 updates the average access cycle by registering the recalculated average access cycle in the average access cycle field 4032 (S36).

次に、データ送信処理部221は、処理S34の計算アクセス周期が処理S36の平均アクセス周期に対して所定の範囲内、例えば、±10%以内であるか否かを判断する(S37)。即ち、(平均アクセス周期)×0.9≦(計算アクセス周期)≦(平均アクセス周期)×1.1であるか否かを判断する。なお、所定の範囲は、収集周期を監視装置10からの要求信号に適切に同期させる精度に関係する数値であり、仕様により決定され、±10%に限らず、±7%や±5%でもよい。   Next, the data transmission processing unit 221 determines whether or not the calculation access cycle of the process S34 is within a predetermined range, for example, within ± 10% with respect to the average access cycle of the process S36 (S37). That is, it is determined whether (average access cycle) × 0.9 ≦ (calculation access cycle) ≦ (average access cycle) × 1.1. The predetermined range is a numerical value related to the accuracy of appropriately synchronizing the collection cycle with the request signal from the monitoring device 10, and is determined by the specification, and is not limited to ± 10%, but may be ± 7% or ± 5%. Good.

判断の結果、所定の範囲内ではない場合(No)には、データ送信処理部221は、アクセスカウンタフィールド4034のアクセスカウンタをクリア、即ち、0にリセットする一方、判断の結果、所定の範囲内である場合(Yes)には、データ送信処理部221は、アクセスカウンタフィールド4034のアクセスカウンタを1だけインクリメントする。   If the result of determination is not within the predetermined range (No), the data transmission processing unit 221 clears the access counter in the access counter field 4034, that is, resets it to 0. If (Yes), the data transmission processing unit 221 increments the access counter in the access counter field 4034 by 1.

次に、データ送信処理部221は、アクセスカウンタフィールド4034のアクセスカウンタの値が所定の閾値、例えば、10に達したか否かを判断する(S39)。この所定の閾値は、何回略同一のアクセス周期で要求信号が受信された場合に平均アクセス周期を収集周期に設定するかを決める数値であり、仕様により決定され、10に限らず、7や15等でもよい。   Next, the data transmission processing unit 221 determines whether or not the value of the access counter in the access counter field 4034 has reached a predetermined threshold, for example, 10 (S39). This predetermined threshold value is a numerical value that determines how many times the request signal is received at approximately the same access cycle, and sets the average access cycle as the collection cycle. It may be 15 mag.

判断の結果、アクセスカウンタが所定の閾値に達していない場合(No)には、データ送信処理部221は、処理を処理S31に戻す。一方、判断の結果、アクセスカウンタが所定の閾値に達している場合(Yes)には、データ送信処理部221は、収集データテーブル40における平均アクセス周期フィールド4032に登録されている平均アクセス周期を、端末管理データテーブル30における収集周期フィールド3033に登録して収集周期に設定し(S40)、処理を処理S31に戻す。   As a result of the determination, if the access counter has not reached the predetermined threshold (No), the data transmission processing unit 221 returns the process to step S31. On the other hand, if the access counter has reached a predetermined threshold as a result of the determination (Yes), the data transmission processing unit 221 determines the average access period registered in the average access period field 4032 in the collected data table 40. The information is registered in the collection cycle field 3033 in the terminal management data table 30 and set to the collection cycle (S40), and the process returns to the process S31.

このように動作することによって、本実施形態に係る中継親装置12は、監視装置10からの要求信号の受信周期に基づいて、要求信号が状態データを要求している端末装置11に対する収集周期を自動的に同期させることができる。   By operating in this way, the relay master device 12 according to the present embodiment sets the collection cycle for the terminal device 11 for which the request signal is requesting state data, based on the reception cycle of the request signal from the monitoring device 10. Can be synchronized automatically.

図1に示す遠隔監視システム1には、監視装置10、中継親装置12、2個の中継装置700(700−y、700−z)及び6個の端末装置11(11−a〜11−f)が記載されているが、監視装置10が端末装置C11−cの状態データを監視する場合について、図6及び図7を用いて説明した上述の動作をより具体的に説明する。   The remote monitoring system 1 shown in FIG. 1 includes a monitoring device 10, a relay master device 12, two relay devices 700 (700-y, 700-z), and six terminal devices 11 (11-a to 11-f). In the case where the monitoring device 10 monitors the status data of the terminal device C11-c, the above-described operation described with reference to FIGS. 6 and 7 will be described more specifically.

図8は、監視装置、中継親装置、中継装置及び端末装置における動作を示すシーケンス図である。なお、監視装置10は、端末装置C11−cの状態データをアクセス周期T1で取得するように設定され、また、中継親装置12は、初期状態であって、端末装置C11−cの状態データを収集周期T2(デフォルト値)で取得するように設定されている。また、平均アクセス周期を収集周期に設定する処理S39における所定の閾値は、10とする。さらに、処理S37の判断処理は、常に満たしているものとする。   FIG. 8 is a sequence diagram illustrating operations in the monitoring device, the relay master device, the relay device, and the terminal device. The monitoring device 10 is set to acquire the state data of the terminal device C11-c at the access cycle T1, and the relay parent device 12 is in the initial state, and the state data of the terminal device C11-c is obtained. It is set to acquire at the collection cycle T2 (default value). In addition, the predetermined threshold in the process S39 for setting the average access period as the collection period is 10. Furthermore, it is assumed that the determination process in step S37 is always satisfied.

図8において、監視装置10は、端末装置C11−cの状態データを取得すべく、要求信号を伝送路A13−aに送信する(C11−1)。この要求信号を受信した中継親装置12は、上述の処理S31乃至処理S33を実行することによって、収集データテーブル40を参照し、端末装置C11−cの状態データを収容する応答信号を監視装置10に返信する(C11−2)。そして、中継親装置12は、上述の処理S34乃至処理S36の実行を経て、処理S37で計算アクセス周期が平均アクセス周期に対して所定の範囲内であると判断され、処理S38でアクセスカウンタがインクリメントされて「1」になる。処理S39でアクセスカウンタ(=1)は、所定の閾値(=10)に達していないので、収集周期は、デフォルト値の収集周期T2のままである。   In FIG. 8, the monitoring apparatus 10 transmits a request signal to the transmission line A13-a in order to acquire the state data of the terminal apparatus C11-c (C11-1). The relay master apparatus 12 that has received this request signal refers to the collected data table 40 by executing the above-described processes S31 to S33, and sends a response signal that contains the status data of the terminal apparatus C11-c to the monitoring apparatus 10. (C11-2). Then, the relay master device 12 determines that the calculation access cycle is within a predetermined range with respect to the average access cycle in step S37 after executing the above-described processing S34 to S36, and increments the access counter in step S38. To “1”. In step S39, the access counter (= 1) does not reach the predetermined threshold (= 10), so the collection cycle remains the default collection cycle T2.

監視装置10は、端末装置C11−cの状態データを取得すべく、アクセス周期T1で要求信号を伝送路A13−aに順次に送信する(C12−1、C13−1、C14−1、・・・)。そして、この要求信号に応じて、中継親装置12は、処理S31乃至処理S33を実行することによって、応答信号を返信する(C12−2、C13−2、C14−2、・・・)と共に、処理S34乃至処理S40が実行され、アクセスカウンタが2、3、4、・・・のように1ずつカウンタアップされる。   The monitoring device 10 sequentially transmits request signals to the transmission line A13-a at the access cycle T1 in order to acquire the state data of the terminal device C11-c (C12-1, C13-1, C14-1,...・). Then, in response to this request signal, the relay master device 12 returns a response signal (C12-2, C13-2, C14-2,...) By executing the processing S31 to S33. Processes S34 to S40 are executed, and the access counter is incremented by 1 such as 2, 3, 4,.

一方、中継親装置12は、端末装置C11−cの状態データを取得すべく、上述の処理S11乃至処理S15を実行することによって、要求信号を伝送路B13−bに送信する(C101−1)。この要求信号は、中継装置Y700−y及び中継装置Z700−zに取り込まれるが、端末装置C11−cが中継装置Z700−zの管理下ではなく中継装置Y700−yの管理下であるので、中継装置Y700−yによって中継される(C101−2)。中継された要求信号は、端末装置C11−cで受信され、端末装置C11−cは、データIDに対応する状態データを収容する応答信号を伝送路C13−cに送信することによって返信する(C101−3)。この応答信号は、中継装置Y700−yで中継され(C101−4)、中継親装置12に受信される。中継親装置12は、上述の処理S16乃至処理23を実行することによって、応答信号の状態データを端末装置C11−cの状態データとして収集データテーブル40に登録すると共に、端末管理データテーブル30の収集周期T2に基づいて、次回の収集時刻を更新する。この場合の収集周期は、デフォルト値のままである。そして、中継親装置12は、デフォルト値の収集周期T2で順次に端末装置C11−cから状態データの収集を続ける(C102−1、・・・、C104−1)。   On the other hand, the relay master device 12 transmits the request signal to the transmission line B13-b by performing the above-described processing S11 to S15 in order to acquire the state data of the terminal device C11-c (C101-1). . This request signal is taken into the relay device Y700-y and the relay device Z700-z. However, since the terminal device C11-c is not under the control of the relay device Z700-z but under the control of the relay device Y700-y, Relayed by the device Y700-y (C101-2). The relayed request signal is received by the terminal device C11-c, and the terminal device C11-c replies by transmitting a response signal containing status data corresponding to the data ID to the transmission line C13-c (C101). -3). This response signal is relayed by the relay device Y700-y (C101-4) and received by the relay master device 12. The relay master device 12 registers the response signal status data in the collection data table 40 as the status data of the terminal device C11-c and collects the terminal management data table 30 by executing the above-described processing S16 to processing 23. The next collection time is updated based on the cycle T2. The collection period in this case remains the default value. The relay master device 12 continues to collect state data from the terminal device C11-c sequentially in the default value collection cycle T2 (C102-1,..., C104-1).

監視装置10がアクセス周期T1で順次に要求信号を送信し続けることによって(・・・、C19−1、C20−1)、これを受信する中継親装置12では、やがてアクセスカウンタが「10」となって、処理S39でアクセスカウンタ(=10)が所定の閾値(=10)に達したと判断され、処理S40で、端末装置C11−cに関し、収集データテーブル40における平均アクセス周期フィールド4032に登録されている平均アクセス周期T1が端末管理データテーブル30における収集周期フィールド3033に登録され、平均アクセス周期T1が収集周期に設定される。以後、中継親装置12は、新たに設定された収集周期T1で端末装置C11−cに対する要求信号を伝送路B13−bに送信する(C105−1)。   When the monitoring device 10 continues to transmit the request signal sequentially in the access cycle T1 (..., C19-1, C20-1), the relay counter device 12 that receives the request signal eventually sets the access counter to “10”. In step S39, it is determined that the access counter (= 10) has reached the predetermined threshold (= 10). In step S40, the terminal device C11-c is registered in the average access period field 4032 in the collected data table 40. The average access cycle T1 being registered is registered in the collection cycle field 3033 in the terminal management data table 30, and the average access cycle T1 is set as the collection cycle. Thereafter, the relay master device 12 transmits a request signal for the terminal device C11-c to the transmission line B13-b at the newly set collection cycle T1 (C105-1).

こうしてアクセス周期T1で順次に監視装置10から送信される要求信号(C21−1、C22−1、C23−1、・・・)に同期して、中継親装置12は、収集周期T1で順次に端末装置C11−cへ要求信号を送信する(C106−1、C107−1、・・・)。   Thus, in synchronization with the request signals (C21-1, C22-1, C23-1,...) Sequentially transmitted from the monitoring device 10 at the access cycle T1, the relay master device 12 sequentially switches at the collection cycle T1. A request signal is transmitted to the terminal device C11-c (C106-1, C107-1,...).

このように図6及び図7を用いて説明した動作を中継親装置12が行うことによって、中継親装置12は、監視装置10からの要求信号における平均アクセス周期T1に、当該要求信号が状態データを要求している端末装置C11−cに対する収集周期を自動的に同期させることができる。   As described above with reference to FIG. 6 and FIG. 7, the relay master device 12 performs the operation described with reference to the status data in the average access cycle T1 in the request signal from the monitoring device 10. Can be automatically synchronized with the collection cycle for the terminal device C11-c requesting the request.

図9は、収集周期が平均アクセス周期に同期後における監視装置、中継親装置、中継装置及び端末装置における動作を示すシーケンス図である。   FIG. 9 is a sequence diagram illustrating operations in the monitoring device, the relay master device, the relay device, and the terminal device after the collection cycle is synchronized with the average access cycle.

ところで、上述の動作によって、中継親装置12は、収集周期を平均アクセス周期に端末装置11ごとに同期させることができるが、次回の収集時刻は、今回の収集時刻に同期後の収集周期が加算されるだけなので、応答信号に収容される状態データは、必ずしも要求信号に対して直近に端末装置11が検知した状態データである保証がない。即ち、同期直後における監視装置10から要求信号を受信したアクセス時刻と端末装置11へ要求信号を送信する収集時刻との差tz(図9参照)がその後も維持され、監視装置10から要求信号を受信したアクセス時刻と端末装置11からの応答信号を受信する時刻(状態データを取得する時刻)との差ty(図9参照)が小さくない場合がある。   By the way, the relay master device 12 can synchronize the collection cycle with the average access cycle for each terminal device 11 by the above-described operation, but at the next collection time, the collection cycle after synchronization is added to the current collection time. Therefore, the state data accommodated in the response signal is not necessarily guaranteed to be the state data detected by the terminal device 11 most recently with respect to the request signal. That is, the difference tz (see FIG. 9) between the access time at which the request signal is received from the monitoring device 10 immediately after the synchronization and the collection time at which the request signal is transmitted to the terminal device 11 is maintained thereafter. The difference ty (see FIG. 9) between the received access time and the time when the response signal from the terminal device 11 is received (time when the status data is acquired) may not be small.

そこで、平均アクセス周期を収集周期に設定した直後における処理S19の処理において、次回の収集時刻をアクセス時刻に同期後の収集周期を加算し、保証時間txを減算することによって、要求信号に対して直近に端末装置11が検知した検出値にすることができる。即ち、(次回の収集時刻)=(アクセス時刻)+(同期後の収集周期)−(保証時間tx)である。この保証時間txは、監視装置10から要求信号を受信してから次に要求信号を受信するまでの間に、中継親装置12が端末装置11へ要求信号を送信しその応答信号を受信することができるように設定される。   Therefore, in the processing of step S19 immediately after setting the average access cycle as the collection cycle, the next collection time is added to the access time and the collection cycle after synchronization is added, and the guaranteed time tx is subtracted to The detection value detected by the terminal device 11 most recently can be used. That is, (next collection time) = (access time) + (collection period after synchronization) − (guaranteed time tx). The guaranteed time tx is that the relay master device 12 transmits a request signal to the terminal device 11 and receives a response signal between the reception of the request signal from the monitoring device 10 and the reception of the next request signal. Is set to be possible.

なお、処理S19において、最初から(次回の収集時刻)=(アクセス時刻)+(収集周期)−(保証時間tx)により次回の収集時刻を設定するように構成すれば、要求信号に常に同期させることができるが、監視装置10の故障や伝送路A13−aの障害等の原因により、中継親装置12が要求信号を受信できなくなってしまうと、中継親装置12は、端末装置11から状態データを収集することができなくなってしまうことがあり得る。   In the process S19, if the next collection time is set from the beginning (next collection time) = (access time) + (collection period) − (guaranteed time tx), it is always synchronized with the request signal. However, if the relay master device 12 becomes unable to receive the request signal due to a failure of the monitoring device 10 or a failure of the transmission path A13-a, the relay master device 12 receives status data from the terminal device 11. May not be able to be collected.

そして、監視装置10から要求信号を受信したアクセス時刻と端末装置11からの応答信号を受信する時刻との差tyが小さいほど、監視装置10に返信する応答信号に収容される状態データは、当該要求信号に対して直近に端末装置11が検知した状態データとなる。このため、中継親装置12は、端末装置11へ要求信号を送信してから応答信号を受信するまでの所要時間tnを測定し、この所要時間tnにマージン時間tmを加算した時間を保証時間txとしてもよい。即ち、(保証時間tx)=(所要時間tn)+(マージン時間tm)である。マージン時間tmは、端末装置11への要求信号及び端末装置11からの応答信号が伝送する伝送路13におけるリトライ回数やタイムアウト時間等を考慮して決定される。このように設定すると結局、監視装置10から要求信号を受信したアクセス時刻と端末装置11からの応答信号を受信する時刻との差tyは、マージン時間tmとなる。監視装置10に返信する応答信号に収容される状態データは、当該要求信号に対してより直近に端末装置11が検知した状態データとなる。   Then, the smaller the difference ty between the access time at which the request signal is received from the monitoring device 10 and the time at which the response signal from the terminal device 11 is received, the state data contained in the response signal returned to the monitoring device 10 is This is the state data detected by the terminal device 11 most recently with respect to the request signal. For this reason, the relay master device 12 measures the required time tn from when the request signal is transmitted to the terminal device 11 until the response signal is received, and the time obtained by adding the margin time tm to the required time tn is the guaranteed time tx. It is good. That is, (guaranteed time tx) = (required time tn) + (margin time tm). The margin time tm is determined in consideration of the number of retries in the transmission path 13 through which the request signal to the terminal device 11 and the response signal from the terminal device 11 are transmitted, a timeout time, and the like. As a result, the difference ty between the access time at which the request signal is received from the monitoring device 10 and the time at which the response signal from the terminal device 11 is received becomes the margin time tm. The state data accommodated in the response signal returned to the monitoring device 10 is the state data detected by the terminal device 11 most recently with respect to the request signal.

実施形態に係る遠隔監視システムの構成を示す図である。It is a figure which shows the structure of the remote monitoring system which concerns on embodiment. 実施形態に係る中継親装置の構成を示すブロック図である。It is a block diagram which shows the structure of the relay parent apparatus which concerns on embodiment. 端末管理データテーブルの構成を示す図である。It is a figure which shows the structure of a terminal management data table. 収集データテーブルの構成を示す図である。It is a figure which shows the structure of a collection data table. 第2通信部の動作を説明するための図である。It is a figure for demonstrating operation | movement of a 2nd communication part. 中継子装置を介して端末装置から状態データを収集する動作を示すフローチャートである。It is a flowchart which shows the operation | movement which collects status data from a terminal device via a relay child apparatus. 監視装置から要求信号を受信する場合の動作を示すフローチャートである。It is a flowchart which shows operation | movement in the case of receiving a request signal from a monitoring apparatus. 監視装置、中継親装置、中継装置及び端末装置における動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement in a monitoring apparatus, a relay parent apparatus, a relay apparatus, and a terminal device. 収集周期が平均アクセス周期に同期後における監視装置、中継親装置、中継装置及び端末装置における動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement in the monitoring apparatus, relay parent apparatus, relay apparatus, and terminal device after a collection period synchronizes with an average access period. 背景技術に係る遠隔監視システムの構成を示す図である。It is a figure which shows the structure of the remote monitoring system which concerns on background art. 背景技術に係る遠隔監視システムの動作を示すシーケンス図である。It is a sequence diagram which shows operation | movement of the remote monitoring system which concerns on background art.

符号の説明Explanation of symbols

1、1000 遠隔監視システム
10 監視装置
11 端末装置
12 中継親装置
13 伝送路
21、701 第1通信部
22 中央処理部
23 記憶部
24、702 第2通信部
30、31 端末管理データテーブル
40、41 収集データテーブル
700 中継装置(中継子装置)
1,1000 Remote monitoring system 10 Monitoring device 11 Terminal device 12 Relay master device 13 Transmission path 21, 701 First communication unit 22 Central processing unit 23 Storage unit 24, 702 Second communication unit 30, 31 Terminal management data tables 40, 41 Collected data table 700 Relay device (relay device)

Claims (2)

監視対象の物理量を検知する端末装置と前記端末装置が検知した物理量に関する検知物理量情報を収集する監視装置との間で前記検知物理量情報を中継する中継親装置において、
前記検知物理量情報を記憶するとともに、前記端末装置から前記検知物理量情報を収集する時間間隔である収集周期を記憶する記憶部と、
前記端末装置との間で通信信号を中継する中継子装置を介して前記収集周期に基づいて前記端末装置から前記検知物理量情報を収集して前記記憶部に記憶するデータ収集処理部と、
前記検知物理量情報を前記端末装置に要求する要求信号を前記監視装置から受信した場合に、前記記憶部に記憶されている前記検知物理量情報を収容した応答信号を前記監視装置に返信するデータ送信処理部とを備
前記データ送信処理部は、前記要求信号を受信する時間間隔の平均値である平均アクセス周期を演算すると共に、前記平均アクセス周期に基づいて前記収集周期を設定し
前記データ収集処理部は、前記データ送信処理部が前記平均アクセス周期に基づいて前記収集周期を設定した後において、前記端末装置から前記検知物理量情報を収集する次回の収集時刻を、前記中継子装置を介して前記端末装置から前記検知物理量情報を収集する時間に基づいて前記監視装置から前記要求信号を受信した時刻を基準に設定すること
を特徴とする中継親装置。
In the relay master device that relays the detected physical quantity information between the terminal device that detects the physical quantity to be monitored and the monitoring device that collects the detected physical quantity information related to the physical quantity detected by the terminal device,
A storage unit that stores the detected physical quantity information and stores a collection cycle that is a time interval for collecting the detected physical quantity information from the terminal device ;
A data collection processing unit that collects the detected physical quantity information from the terminal device based on the collection cycle via a relay device that relays a communication signal to and from the terminal device and stores the information in the storage unit;
Data transmission processing for returning a response signal containing the detected physical quantity information stored in the storage unit to the monitoring apparatus when a request signal for requesting the detected physical quantity information to the terminal apparatus is received from the monitoring apparatus Bei example and parts,
The data transmission processing unit calculates an average access period that is an average value of a time interval for receiving the request signal, and sets the collection period based on the average access period ,
The data collection processing unit sets a next collection time for collecting the detected physical quantity information from the terminal device after the data transmission processing unit sets the collection cycle based on the average access cycle. The relay parent device is set based on a time when the request signal is received from the monitoring device based on a time for collecting the detected physical quantity information from the terminal device via the terminal .
監視対象の物理量を検知する端末装置と、前記端末装置との間で通信信号を中継する中継子装置と、前記端末装置が検知した物理量を収集する監視装置と、前記端末装置が検知した物理量を中継する中継親装置とを備える遠隔監視システムにおいて、
前記中継親装置は、
前記検知物理量情報を記憶するとともに、前記端末装置から前記検知物理量情報を収集する時間間隔である収集周期を記憶する記憶部と、
前記端末装置との間で通信信号を中継する中継子装置を介して前記収集周期に基づいて前記端末装置から前記検知物理量情報を収集して前記記憶部に記憶するデータ収集処理部と、
前記検知物理量情報を前記端末装置に要求する要求信号を前記監視装置から受信した場合に、前記記憶部に記憶されている前記検知物理量情報を収容した応答信号を前記監視装置に返信するデータ送信処理部とを備
前記データ送信処理部は、前記要求信号を受信する時間間隔の平均値である平均アクセス周期を演算すると共に、前記平均アクセス周期に基づいて前記収集周期を設定し
前記データ収集処理部は、前記データ送信処理部が前記平均アクセス周期に基づいて前記収集周期を設定した後において、前記端末装置から前記検知物理量情報を収集する次回の収集時刻を、前記中継子装置を介して前記端末装置から前記検知物理量情報を収集する時間に基づいて前記監視装置から前記要求信号を受信した時刻を基準に設定すること
を特徴とする遠隔監視システム。
A terminal device that detects a physical quantity to be monitored, a relay device that relays a communication signal between the terminal device, a monitoring device that collects a physical quantity detected by the terminal device, and a physical quantity detected by the terminal device In a remote monitoring system comprising a relay master device for relaying,
The relay master device is
A storage unit that stores the detected physical quantity information and stores a collection cycle that is a time interval for collecting the detected physical quantity information from the terminal device ;
A data collection processing unit that collects the detected physical quantity information from the terminal device based on the collection cycle via a relay device that relays a communication signal to and from the terminal device and stores the information in the storage unit;
Data transmission processing for returning a response signal containing the detected physical quantity information stored in the storage unit to the monitoring apparatus when a request signal for requesting the detected physical quantity information to the terminal apparatus is received from the monitoring apparatus Bei example and parts,
The data transmission processing unit calculates an average access period that is an average value of a time interval for receiving the request signal, and sets the collection period based on the average access period ,
The data collection processing unit sets a next collection time for collecting the detected physical quantity information from the terminal device after the data transmission processing unit sets the collection cycle based on the average access cycle. A remote monitoring system, characterized in that , based on a time for collecting the detected physical quantity information from the terminal device via the time, the time when the request signal is received from the monitoring device is set as a reference .
JP2004070297A 2004-03-12 2004-03-12 Relay master device and remote monitoring system Expired - Fee Related JP4428099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004070297A JP4428099B2 (en) 2004-03-12 2004-03-12 Relay master device and remote monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004070297A JP4428099B2 (en) 2004-03-12 2004-03-12 Relay master device and remote monitoring system

Publications (2)

Publication Number Publication Date
JP2005260635A JP2005260635A (en) 2005-09-22
JP4428099B2 true JP4428099B2 (en) 2010-03-10

Family

ID=35085929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004070297A Expired - Fee Related JP4428099B2 (en) 2004-03-12 2004-03-12 Relay master device and remote monitoring system

Country Status (1)

Country Link
JP (1) JP4428099B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2447493C2 (en) * 2006-01-11 2012-04-10 Фишер-Роузмаунт Системз, Инк. Control system with predicted response time of field device via wireless network
WO2009028037A1 (en) * 2007-08-27 2009-03-05 Advantest Corporation System, relay device, tester, and manufacturing method for device
JP4920567B2 (en) * 2007-12-12 2012-04-18 三菱電機株式会社 Equipment network system and data access control method
JP5162356B2 (en) * 2008-07-08 2013-03-13 シャープ株式会社 Specific low-power radio telemeter system
JP4916490B2 (en) * 2008-09-10 2012-04-11 中国電力株式会社 Communication relay device and communication relay method
WO2011064812A1 (en) * 2009-11-24 2011-06-03 株式会社 東芝 Information presentation device
JP6042681B2 (en) * 2012-09-27 2016-12-14 株式会社日立システムズ Control device, control method, and control program
JP2017005465A (en) * 2015-06-09 2017-01-05 シャープ株式会社 Communication device
JP2024061342A (en) * 2022-10-21 2024-05-07 株式会社荏原製作所 DATA PROCESSING SYSTEM, DATA COLLECTION DEVICE, DATA PROCESSING METHOD, AND DATA COLLECTION METHOD

Also Published As

Publication number Publication date
JP2005260635A (en) 2005-09-22

Similar Documents

Publication Publication Date Title
US11825547B2 (en) System, method and apparatus for virtual building management
AU2008340227B2 (en) Optimized data collection in a wireless fixed network metering system
US20240064537A1 (en) System, Method and Apparatus for Presentation of Sensor Information to a Building Control System
US10652767B1 (en) System, method and apparatus for managing disruption in a sensor network application
JP4428099B2 (en) Relay master device and remote monitoring system
CA2714026A1 (en) System and method for transmitting and receiving information on a neighborhood area network
CN108390699B (en) Cloud communication system based on power line carrier technology and communication method and device
KR20090000459A (en) Monitoring system for communication network having a plurality of layers
JP2016162017A (en) Sensor device, management system, and radio communication method
US11671269B2 (en) Method for operating a sensor arrangement in a motor vehicle on the basis of a DSI protocol
JP6470207B2 (en) Repeater and radio system
JP2006295907A (en) Wireless sensor network system, base station, wireless sensor and program
Dimitrios et al. Employing Internet of Things technologies for building automation
JP4729969B2 (en) Gateway device
JP5217986B2 (en) Gateway device
JP5135422B2 (en) Gateway device
JP2018142864A (en) Gateway device
JP6965290B2 (en) Wireless communication equipment, wireless communication methods, and wireless communication systems
Gupta et al. An autonomous address translation scheme to integrate modbus with ieee 802.15. 4 networks
JP2006101179A (en) Status monitoring method of power line communication network
KR101023064B1 (en) System and Method for data compressive of terminal for automatic meter reading
JP2013168850A (en) Distributed control system
JP2019176361A (en) Mesh network
JP5805481B2 (en) Network system and method of identifying corresponding connection relation
JP4433935B2 (en) Relay master device and remote monitoring control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090430

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: 20091124

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

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

Free format text: PAYMENT UNTIL: 20121225

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091207

LAPS Cancellation because of no payment of annual fees