Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7030429B2 - Server equipment, monitoring system, data processing method, and data processing program - Google Patents
[go: Go Back, main page]

JP7030429B2 - Server equipment, monitoring system, data processing method, and data processing program - Google Patents

Server equipment, monitoring system, data processing method, and data processing program Download PDF

Info

Publication number
JP7030429B2
JP7030429B2 JP2017114611A JP2017114611A JP7030429B2 JP 7030429 B2 JP7030429 B2 JP 7030429B2 JP 2017114611 A JP2017114611 A JP 2017114611A JP 2017114611 A JP2017114611 A JP 2017114611A JP 7030429 B2 JP7030429 B2 JP 7030429B2
Authority
JP
Japan
Prior art keywords
data
gateway device
master
slave
main system
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.)
Active
Application number
JP2017114611A
Other languages
Japanese (ja)
Other versions
JP2018206320A (en
JP2018206320A5 (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2017114611A priority Critical patent/JP7030429B2/en
Publication of JP2018206320A publication Critical patent/JP2018206320A/en
Publication of JP2018206320A5 publication Critical patent/JP2018206320A5/ja
Application granted granted Critical
Publication of JP7030429B2 publication Critical patent/JP7030429B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Description

本発明は、ゲートウェイ装置を介して計測データを取得するサーバ装置、監視システム、データ処理方法、およびデータ処理プログラムに関する。 The present invention relates to a server device for acquiring measurement data via a gateway device, a monitoring system, a data processing method, and a data processing program.

従来、プラント設備または公共施設における設備を監視対象とし、監視対象の状態を監視したり監視対象の状態の変化を時系列に表示する表示画面を生成したりする監視システムが知られている。 Conventionally, a monitoring system has been known in which equipment in a plant facility or a public facility is monitored, and a monitoring system that monitors the state of the monitored target or generates a display screen that displays changes in the state of the monitored target in chronological order is known.

この種の監視システムは、主にイントラネット内で利用されているが、近年では、クラウドを利用した監視システムが注目されている。クラウドの利用により、比較的低コストでシステムの運用を行うことができるが、監視という形態においては、システム全体の信頼性も重要な要素であり、特に収集データの信頼性が損なわれると監視そのものに影響する。 This type of monitoring system is mainly used in the intranet, but in recent years, a monitoring system using the cloud has been attracting attention. By using the cloud, the system can be operated at a relatively low cost, but in the form of monitoring, the reliability of the entire system is also an important factor, and especially when the reliability of the collected data is impaired, the monitoring itself Affects.

特許文献1には、コストの低減とデータの信頼性確保とを両立するための解決策として、計測器およびセンサといった現場機器とクラウド上のサーバを結ぶゲートウェイ装置を二重化する技術が提案されている。 Patent Document 1 proposes a technique for duplicating a gateway device connecting a field device such as a measuring instrument and a sensor and a server on the cloud as a solution for achieving both cost reduction and data reliability assurance. ..

特開2006-65631号公報Japanese Unexamined Patent Publication No. 2006-65631

しかしながら、特許文献1に記載の技術では、主従関係の状況によってゲートウェイ装置の動作が切り替えられる必要があるため、システムに適合したゲートウェイ装置の導入、またはゲートウェイ装置へのソフトウェアのセットアップが必要である。すなわち、主従関係に従った動作をゲートウェイ装置に付加する必要がある。 However, in the technique described in Patent Document 1, since the operation of the gateway device needs to be switched depending on the situation of the master-slave relationship, it is necessary to introduce a gateway device suitable for the system or set up software in the gateway device. That is, it is necessary to add an operation according to the master-slave relationship to the gateway device.

本発明は、上記に鑑みてなされたものであって、ゲートウェイ装置において主従関係に従った動作を付加することなく、ゲートウェイ装置を用いた二重化を図ることができるサーバ装置を得ることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to obtain a server device capable of duplication using a gateway device without adding an operation according to a master-slave relationship in the gateway device. ..

上述した課題を解決し、目的を達成するために、本発明のサーバ装置は、データ受信部と、主従判定部と、データ出力部と、主従切替部とを備える。データ受信部は、計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信する。主従判定部は、第1のゲートウェイ装置および第2のゲートウェイ装置の各々の識別情報に主系と従系のいずれに設定されているかを示す主従情報を関連付けた主従関係情報を有しており、主従関係情報と計測データに付加されたゲートウェイ装置の識別情報に基づいて、データ受信部で受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定する。データ出力部は、主従判定部によって判定された主系のデータを出力する。主従切替部は、データ受信部によって主系のデータが受信されない場合に、第1のゲートウェイ装置と第2のゲートウェイ装置との主従関係を切り替える。 In order to solve the above-mentioned problems and achieve the object, the server device of the present invention includes a data receiving unit, a master-slave determination unit, a data output unit, and a master-slave switching unit. The data receiving unit receives the same measurement data including the measured value from each of the first gateway device and the second gateway device. The master-slave determination unit has master-slave relationship information in which the identification information of each of the first gateway device and the second gateway device is associated with the master-slave information indicating whether the master system or the slave system is set. Whether or not the measurement data received by the data receiving unit is the main system data transmitted from the main system gateway device based on the master- slave relationship information and the identification information of the gateway device added to the measurement data. Is determined. The data output unit outputs the data of the main system determined by the master-slave determination unit. The master-slave switching unit switches the master-slave relationship between the first gateway device and the second gateway device when the main system data is not received by the data receiving unit.

本発明によれば、ゲートウェイ装置において主従関係に従った動作を付加することなく、ゲートウェイ装置を用いた二重化を図ることができる、という効果を奏する。 According to the present invention, it is possible to achieve duplication using the gateway device without adding an operation according to the master-slave relationship in the gateway device.

実施の形態1にかかる監視システムの構成例を示す図The figure which shows the configuration example of the monitoring system which concerns on Embodiment 1. 実施の形態1にかかる二重化設定画面の一例を示す図The figure which shows an example of the duplication setting screen which concerns on Embodiment 1. 実施の形態1にかかる監視システムの処理の一例を示すフローチャートA flowchart showing an example of processing of the monitoring system according to the first embodiment. 実施の形態1にかかるサーバ装置の計測データ選択処理の一例を示すフローチャートA flowchart showing an example of the measurement data selection process of the server device according to the first embodiment. 実施の形態1にかかるサーバ装置の主従切替処理の一例を示すフローチャートA flowchart showing an example of the master-slave switching process of the server device according to the first embodiment. 実施の形態1にかかるサーバ装置のハードウェア構成の一例を示す図The figure which shows an example of the hardware configuration of the server apparatus which concerns on Embodiment 1. 実施の形態2にかかる監視システムの構成例を示す図The figure which shows the configuration example of the monitoring system which concerns on Embodiment 2. 実施の形態2にかかるサーバ装置による計測データ選択処理の一例を示すフローチャートA flowchart showing an example of measurement data selection processing by the server device according to the second embodiment. 実施の形態3にかかる監視システムの構成例を示す図The figure which shows the configuration example of the monitoring system which concerns on Embodiment 3. 実施の形態3にかかるサーバ装置によるゲートウェイ制御処理の一例を示すフローチャートA flowchart showing an example of gateway control processing by the server device according to the third embodiment. 実施の形態4にかかる監視システムの構成例を示す図The figure which shows the configuration example of the monitoring system which concerns on Embodiment 4. 実施の形態4にかかるサーバ装置による主従紐付処理の一例を示すフローチャートA flowchart showing an example of master-slave association processing by the server device according to the fourth embodiment. 実施の形態5にかかる監視システムの構成例を示す図The figure which shows the configuration example of the monitoring system which concerns on Embodiment 5. 実施の形態5にかかるサーバ装置による計測データ選択処理の一例を示すフローチャートA flowchart showing an example of measurement data selection processing by the server device according to the fifth embodiment.

以下に、本発明の実施の形態にかかるサーバ装置、監視システム、データ処理方法、およびデータ処理プログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, the server device, the monitoring system, the data processing method, and the data processing program according to the embodiment of the present invention will be described in detail with reference to the drawings. The present invention is not limited to this embodiment.

実施の形態1.
図1は、本発明の実施の形態1にかかる監視システムの構成例を示す図である。実施の形態1にかかる監視システム1は、プラント、および公共施設などを監視対象とし、かかる監視対象の状態を監視したり監視対象の状態の変化を時系列に表示する表示画面を生成したりする。
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a monitoring system according to the first embodiment of the present invention. The monitoring system 1 according to the first embodiment monitors a plant, a public facility, or the like, monitors the state of the monitored target, and generates a display screen that displays changes in the state of the monitored target in chronological order. ..

かかる監視システム1は、計測データ出力装置2~2と、第1のゲートウェイ装置3と、第2のゲートウェイ装置3と、サーバ装置4と、データ蓄積装置5とを備える。以下、計測データ出力装置2~2を計測データ出力装置2と総称する場合があり、第1のゲートウェイ装置3と第2のゲートウェイ装置3とをゲートウェイ装置3と総称する場合がある。 The monitoring system 1 includes measurement data output devices 2 1 to 2 n , a first gateway device 3 1 , a second gateway device 3 2 , a server device 4, and a data storage device 5. Hereinafter, the measurement data output devices 2 1 to 2 n may be collectively referred to as the measurement data output device 2, and the first gateway device 3 1 and the second gateway device 3 2 may be collectively referred to as the gateway device 3. ..

計測データ出力装置2とゲートウェイ装置3,3とは、ネットワーク6を介して通信可能に接続される。ゲートウェイ装置3とサーバ装置4とはネットワーク7を介して通信可能に接続される。ネットワーク6は、イントラネットなどのプライベートネットワークであり、ネットワーク7は、インターネットなどのパブリックネットワークである。 The measurement data output device 2 and the gateway devices 3 1 and 3 2 are communicably connected to each other via the network 6. The gateway device 3 and the server device 4 are communicably connected via the network 7. The network 6 is a private network such as an intranet, and the network 7 is a public network such as the Internet.

計測データ出力装置2は、監視対象に設けられる計測器およびセンサの少なくとも一つから得られる計測値を含む計測データを生成し、生成した計測データを第1のゲートウェイ装置3と第2のゲートウェイ装置3とにそれぞれネットワーク6を介して送信する。 The measurement data output device 2 generates measurement data including measurement values obtained from at least one of the measuring instruments and sensors provided in the monitoring target, and the generated measurement data is used as the first gateway device 3 1 and the second gateway. It is transmitted to the device 3 2 and the device 3 2 via the network 6, respectively.

監視システム1では、監視目的に応じた種々の計測器および種々のセンサが監視対象に設けられる。計測器は、例えば、雨量計、水位計、および圧力計などであり、センサは、温度センサ、電圧センサ、電流センサ、流量センサ、および位置センサなどであるが、他の計測器および他のセンサであってもよい。 In the monitoring system 1, various measuring instruments and various sensors according to the purpose of monitoring are provided as monitoring targets. Measuring instruments are, for example, rain gauges, water level gauges, and pressure gauges, and sensors are temperature sensors, voltage sensors, current sensors, flow rate sensors, position sensors, etc., but other measuring instruments and other sensors. May be.

各計測データ出力装置2は、計測器またはセンサによって計測値が得られる毎に、かかる計測値のデータを含む計測データを第1のゲートウェイ装置3と第2のゲートウェイ装置3へ繰り返し送信する。計測データ出力装置2による計測データの送信間隔は、固定であっても可変であってもよい。 Each measurement data output device 2 repeatedly transmits measurement data including the measurement value data to the first gateway device 3 1 and the second gateway device 3 2 each time the measurement value is obtained by the measuring instrument or the sensor. .. The transmission interval of the measurement data by the measurement data output device 2 may be fixed or variable.

また、計測データには、計測値のデータに加え、計測値が得られた時刻のデータが含まれる。なお、以下においては、計測データには、1つの計測値が含まれているものとして説明するが、計測データは、時系列に計測器またはセンサによって得られる複数の計測値を含んでいてもよい。また、計測データは、計測対象を識別するデータを含んでいてもよい。 In addition to the measured value data, the measured data includes data at the time when the measured value was obtained. In the following, it is assumed that the measurement data includes one measurement value, but the measurement data may include a plurality of measurement values obtained by the measuring instrument or the sensor in time series. .. Further, the measurement data may include data for identifying the measurement target.

ゲートウェイ装置3は、プロトコルが異なるネットワーク6,7間の相互通信を接続する装置であり、ネットワーク6経由で計測データ出力装置2から受信した計測データをネットワーク7経由でサーバ装置4へ転送する。かかるゲートウェイ装置3は、計測データ出力装置2から計測データをネットワーク6経由で受信するデータ受信部31と、データ受信部31によって受信した計測データをネットワーク7経由で転送するデータ転送部32とを備える。 The gateway device 3 is a device for connecting mutual communication between networks 6 and 7 having different protocols, and transfers measurement data received from the measurement data output device 2 via the network 6 to the server device 4 via the network 7. The gateway device 3 includes a data receiving unit 31 that receives measurement data from the measurement data output device 2 via the network 6, and a data transfer unit 32 that transfers the measurement data received by the data receiving unit 31 via the network 7. ..

サーバ装置4は、ネットワーク7に接続されており、かかるネットワーク7がインターネットである場合、サーバ装置4は、クラウド上に配置されたサーバ装置であり、クラウドサーバとも呼ばれる。 When the server device 4 is connected to the network 7 and the network 7 is the Internet, the server device 4 is a server device arranged on the cloud and is also called a cloud server.

かかるサーバ装置4は、第1のゲートウェイ装置3と第2のゲートウェイ装置3の主従関係に基づいて、第1のゲートウェイ装置3と第2のゲートウェイ装置3の各々から受信した計測データのうち一方のデータをデータ蓄積装置5へ出力する。かかるサーバ装置4は、データ送受信部11と、主従判定部12と、設定受付部13と、データ出力部14と、主従切替部15とを備える。 The server device 4 receives measurement data from each of the first gateway device 3 1 and the second gateway device 3 2 based on the master-slave relationship between the first gateway device 3 1 and the second gateway device 3 2 . One of the data is output to the data storage device 5. The server device 4 includes a data transmission / reception unit 11, a master-slave determination unit 12, a setting reception unit 13, a data output unit 14, and a master-slave switching unit 15.

データ送受信部11は、各計測データ出力装置2から出力される各計測データをネットワーク7経由で第1のゲートウェイ装置3と第2のゲートウェイ装置3の各々から受信する。 The data transmission / reception unit 11 receives each measurement data output from each measurement data output device 2 from each of the first gateway device 3 1 and the second gateway device 3 2 via the network 7.

主従判定部12は、データ送受信部11で受信した計測データが主系のデータであるか従系のデータであるかを判定する。主従判定部12は、ゲートウェイ装置3の主従関係を示す情報である主従関係情報を有しており、かかる主従関係情報に基づいて、データ送受信部11で受信した計測データが主系のデータであるか従系のデータであるかを判定する。 The master-slave determination unit 12 determines whether the measurement data received by the data transmission / reception unit 11 is main system data or slave system data. The master-slave determination unit 12 has master-slave relationship information that is information indicating the master-slave relationship of the gateway device 3, and the measurement data received by the data transmission / reception unit 11 based on the master-slave relationship information is the main system data. It is determined whether the data is a subordinate system.

主従関係情報は、例えば、主従関係の組み合わせである2つのゲートウェイ装置3,3について、各ゲートウェイ装置3の識別情報と主従フラグとを関連付けた情報である。主従フラグ「1」が関連付けられた識別情報を有するゲートウェイ装置3が主系のゲートウェイ装置3であり、主従フラグ「0」が関連付けられた識別情報を有するゲートウェイ装置3が従系のゲートウェイ装置3である。なお、主系は現用系とも呼ばれ、従系は待機系とも呼ばれる。 The master-slave relationship information is, for example, information in which the identification information of each gateway device 3 and the master-slave flag are associated with each other for two gateway devices 3 1 and 32 which are a combination of master-slave relationships. The gateway device 3 having the identification information associated with the master-slave flag "1" is the main gateway device 3, and the gateway device 3 having the identification information associated with the master-slave flag "0" is the slave gateway device 3. be. The main system is also called the working system, and the slave system is also called the standby system.

ゲートウェイ装置3の識別情報は、ゲートウェイ装置3を識別するための情報であり、例えば、ゲートウェイ装置3の製造番号、IP(Internet Protocol)アドレス、またはMAC(Media Access Control)アドレスである。識別情報は、各ゲートウェイ装置3を識別可能な情報であり且つ計測データに付加される情報であればよく、製造番号、IPアドレスおよびMACアドレスに限定されない。 The identification information of the gateway device 3 is information for identifying the gateway device 3, and is, for example, a serial number, an IP (Internet Protocol) address, or a MAC (Media Access Control) address of the gateway device 3. The identification information may be any information that can identify each gateway device 3 and is added to the measurement data, and is not limited to the serial number, IP address, and MAC address.

なお、上述した例では、ゲートウェイ装置3が主系に設定されているのか従系に設定されているのかを示す主従情報として主従フラグを用いているが、ゲートウェイ装置3が主系と従系のいずれに設定されているかを把握できる情報であればよく、主従情報は、主従フラグに限定されない。 In the above example, the master-slave flag is used as the master-slave information indicating whether the gateway device 3 is set to the main system or the slave system, but the gateway device 3 is the master system and the slave system. The master-slave information is not limited to the master-slave flag as long as it is information that can be grasped as to which is set.

上述した主従関係情報は、端末装置8を用いて設定することができる。サーバ装置4の設定受付部13は、端末装置8から二重化設定要求があった場合に、二重化設定画面の情報を端末装置8へ送信することができ、これにより、端末装置8に二重化設定画面が表示される。図2は、二重化設定画面の一例を示す図である。 The above-mentioned master-slave relationship information can be set by using the terminal device 8. When the terminal device 8 requests the duplication setting, the setting reception unit 13 of the server device 4 can transmit the information of the duplication setting screen to the terminal device 8, whereby the duplication setting screen is displayed on the terminal device 8. Is displayed. FIG. 2 is a diagram showing an example of a duplication setting screen.

図2に示す二重化設定画面70は、第1のゲートウェイ装置3の識別情報を入力するための入力ボックス71と、第2のゲートウェイ装置3の識別情報を入力するための入力ボックス72と、設定ボタン73とを含む。 The duplex setting screen 70 shown in FIG. 2 includes an input box 71 for inputting the identification information of the first gateway device 31 and an input box 72 for inputting the identification information of the second gateway device 32. Includes a setting button 73.

端末装置8のユーザは、端末装置8における不図示の入力部を操作して、入力ボックス71へ第1のゲートウェイ装置3の識別情報を入力し、入力ボックス72へ第2のゲートウェイ装置3の識別情報を入力した後、設定ボタン73を操作する。これにより、第1のゲートウェイ装置3の識別情報と第2のゲートウェイ装置3の識別情報とを含む二重化設定データが端末装置8からサーバ装置4へ送信される。 The user of the terminal device 8 operates an input unit (not shown) in the terminal device 8 to input the identification information of the first gateway device 3 1 into the input box 71, and the second gateway device 3 2 to the input box 72. After inputting the identification information of, the setting button 73 is operated. As a result, the duplex setting data including the identification information of the first gateway device 3 1 and the identification information of the second gateway device 3 2 is transmitted from the terminal device 8 to the server device 4.

設定受付部13は、データ送受信部11で二重化設定データが受信されると、かかる二重化設定データに基づいて、主従関係情報を生成する。二重化設定データには、主系および従系を示す情報が含まれていないため、主従判定部12は、ランダムまたは予め設定された規則に基づいて各ゲートウェイ装置3に関連付ける主従フラグを決定する。設定受付部13は、主従判定部12が決定した主従フラグにゲートウェイ装置3の識別情報を関連付けて主従関係情報を生成する。 When the data transmission / reception unit 11 receives the duplication setting data, the setting reception unit 13 generates master-slave relationship information based on the duplication setting data. Since the duplicate setting data does not include information indicating the master system and the slave system, the master-slave determination unit 12 determines the master-slave flag to be associated with each gateway device 3 based on a random or preset rule. The setting reception unit 13 associates the identification information of the gateway device 3 with the master-slave flag determined by the master-slave determination unit 12 to generate master-slave relationship information.

なお、二重化設定画面70は、入力ボックス71,72に代えて、予め設定されたゲートウェイ装置の中から二重化に用いるゲートウェイ装置3を選択するチェックボックスを設けてもよい。 In addition, the duplication setting screen 70 may be provided with a check box for selecting the gateway device 3 to be used for duplication from the preset gateway devices instead of the input boxes 71 and 72.

主従判定部12は、第1のゲートウェイ装置3の計測データと第2のゲートウェイ装置3の計測データのうち、最初にデータ送受信部11で受信した計測データを送信したゲートウェイ装置3の識別情報に主従フラグ「1」を関連付けることができる。 The master-slave determination unit 12 identifies the gateway device 3 that first transmitted the measurement data received by the data transmission / reception unit 11 among the measurement data of the first gateway device 3 1 and the measurement data of the second gateway device 3 2 . The master-slave flag "1" can be associated with.

また、主従判定部12は、第1のゲートウェイ装置3の計測データと第2のゲートウェイ装置3の計測データのうち、データ送受信部11で受信する時間が平均的に早い計測データを送信するゲートウェイ装置3の識別情報に主従フラグ「1」を関連付けることができる。これにより、主系のデータが取得されるタイミングを早めることができる。 Further, the master-slave determination unit 12 transmits the measurement data received by the data transmission / reception unit 11 among the measurement data of the first gateway device 3 1 and the measurement data of the second gateway device 3 2 on average. The master-slave flag "1" can be associated with the identification information of the gateway device 3. As a result, the timing at which the main system data is acquired can be accelerated.

なお、二重化設定画面70に主系を指定するチェックボックスまたは選択ボックスを設けることもでき、端末装置8のユーザは、端末装置8における不図示の入力部を操作して、主系のゲートウェイ装置3を決定することができる。この場合、ユーザに指定された主系の情報は、二重化設定データに含まれ、設定受付部13は、二重化設定データに含まれる主系の情報に基づいて、主従関係情報を生成することができる。 A check box or selection box for designating the main system can also be provided on the duplication setting screen 70, and the user of the terminal device 8 operates an input unit (not shown) in the terminal device 8 to operate the gateway device 3 of the main system. Can be determined. In this case, the main system information specified by the user is included in the duplex setting data, and the setting reception unit 13 can generate master-slave relationship information based on the main system information included in the duplex setting data. ..

主従判定部12は、計測データに付加されたゲートウェイ装置3の識別情報に基づいて、主系のゲートウェイ装置3から送信される計測データが主系のデータであると判定し、従系のゲートウェイ装置3から送信される計測データが従系のデータであると判定する。 The master-slave determination unit 12 determines that the measurement data transmitted from the main gateway device 3 is the main data based on the identification information of the gateway device 3 added to the measurement data, and determines that the measurement data is the main data, and the slave gateway device It is determined that the measurement data transmitted from 3 is the secondary data.

データ出力部14は、主従判定部12で判定された主系データをデータ蓄積装置5へ出力し、主従判定部12で判定された従系データはデータ蓄積装置5へ出力しない。これにより、2つのゲートウェイ装置3,3から送信される計測データのうち一方の計測データが選択されてデータ蓄積装置5へ出力される。 The data output unit 14 outputs the main system data determined by the master-slave determination unit 12 to the data storage device 5, and does not output the slave system data determined by the master-slave determination unit 12 to the data storage device 5. As a result, one of the measurement data transmitted from the two gateway devices 3 1 and 32 2 is selected and output to the data storage device 5.

データ蓄積装置5は、データ受信部21と、データ格納処理部22と、データ蓄積部23とを備える。データ受信部21は、データ出力部14から出力される計測データを受信する。データ格納処理部22は、データ受信部21によって受信された計測データをデータ蓄積部23に蓄積する。これにより、各計測データ出力装置2から送信される計測データが繰り返しデータ蓄積装置5に蓄積される。 The data storage device 5 includes a data reception unit 21, a data storage processing unit 22, and a data storage unit 23. The data receiving unit 21 receives the measurement data output from the data output unit 14. The data storage processing unit 22 stores the measurement data received by the data reception unit 21 in the data storage unit 23. As a result, the measurement data transmitted from each measurement data output device 2 is repeatedly stored in the data storage device 5.

データ蓄積装置5に蓄積された計測データは、端末装置8の要求に基づき、監視システム1に設けられた不図示の処理装置で監視用のデータとして処理される。かかる処理装置は、端末装置8の要求に従った画面形式のデータを生成して端末装置8へ送信することができ、端末装置8は、処理装置から送信されるデータに基づいて、種々の画面表示形式で計測データに基づく監視画面を表示することができる。端末装置8に表示される画面の表示形式として、例えば、監視システム1で監視している範囲を模式図とする表示形式、および計測データに含まれる計測値を時系列に示すグラフを表示する表示形式などがある。 The measurement data stored in the data storage device 5 is processed as monitoring data by a processing device (not shown) provided in the monitoring system 1 based on the request of the terminal device 8. Such a processing device can generate screen format data according to the request of the terminal device 8 and transmit it to the terminal device 8, and the terminal device 8 can perform various screens based on the data transmitted from the processing device. A monitoring screen based on measurement data can be displayed in a display format. As the display format of the screen displayed on the terminal device 8, for example, a display format in which the range monitored by the monitoring system 1 is a schematic diagram, and a display displaying a graph showing the measured values included in the measurement data in chronological order. There is a format and so on.

主従切替部15は、予め設定された切替条件が満たされる場合に、第1のゲートウェイ装置3と第2のゲートウェイ装置3との主従関係を切り替える。主従切替部15は、各ゲートウェイ装置3に関連付けられた主従フラグを切り替えることで主従関係の切り替えを行う。 The master-slave switching unit 15 switches the master-slave relationship between the first gateway device 3 1 and the second gateway device 3 2 when the preset switching conditions are satisfied. The master-slave switching unit 15 switches the master-slave relationship by switching the master-slave flag associated with each gateway device 3.

例えば、第1のゲートウェイ装置3の識別情報に主従フラグ「1」が関連付けられ、第2のゲートウェイ装置3の識別情報に主従フラグ「0」が関連付けられているとする。この場合、主従切替部15は、第1のゲートウェイ装置3の識別情報に関連付けられる主従フラグを「1」から「0」へ変更し、第2のゲートウェイ装置3の識別情報に関連付けられる主従フラグを「0」から「1」へ変更する。 For example, it is assumed that the master-slave flag "1" is associated with the identification information of the first gateway device 3 1 and the master-slave flag "0" is associated with the identification information of the second gateway device 3 2 . In this case, the master-slave switching unit 15 changes the master-slave flag associated with the identification information of the first gateway device 3 1 from "1" to "0", and the master-slave switching unit 15 is associated with the identification information of the second gateway device 3 2 . Change the flag from "0" to "1".

切替条件は、データ送受信部11における主系のデータの受信状態の条件であり、例えば、主系のデータが一定回数以上連続して受信されないこと、主系のデータが一定時間以上連続して受信されないこと、または主系のデータが一定頻度で受信されないことを含む。 The switching condition is a condition of the reception state of the main system data in the data transmission / reception unit 11. For example, the main system data is not continuously received more than a certain number of times, and the main system data is continuously received for a certain period of time or more. This includes not being done or the main data not being received at a certain frequency.

主従切替部15は、計測データ出力装置2毎に、データ送受信部11での計測データの受信時刻の履歴である受信履歴の情報を記憶し、記憶している受信履歴の情報に基づいて、計測データ出力装置2毎の計測データの送信間隔を判定することができる。 The master-slave switching unit 15 stores reception history information, which is a history of reception time of measurement data in the data transmission / reception unit 11, for each measurement data output device 2, and measures based on the stored reception history information. It is possible to determine the transmission interval of the measurement data for each data output device 2.

主従切替部15は、判定した送信間隔に基づいて、主系のデータが一定回数以上連続して正常に受信されないことを判定すること、および主系のデータが一定頻度で正常に受信されないことを判定することができる。また、主従切替部15は、判定した送信間隔よりもk倍以上の時間が経過しても主系のデータが受信されない場合に、主系のデータが一定時間以上連続して受信されないと判定することができる。なお、「k」は1以上の整数である。 Based on the determined transmission interval, the master-slave switching unit 15 determines that the main system data is not normally received continuously for a certain number of times or more, and that the main system data is not normally received at a certain frequency. It can be determined. Further, the master-slave switching unit 15 determines that the main system data is not continuously received for a certain period of time or more when the main system data is not received even after a time of k times or more has elapsed from the determined transmission interval. be able to. In addition, "k" is an integer of 1 or more.

主従切替部15は、主系のデータが切替条件を満たす場合であっても、データ送受信部11における従系のデータの受信状態が主系のデータの受信状態よりも悪い場合には、主従関係を切り替えないこともできる。また、主従切替部15は、端末装置8からの切り替え停止要求があった場合、主従関係を切り替える処理を停止することができる。 Even if the master system data satisfies the switching condition, the master-slave switching unit 15 has a master-slave relationship when the reception state of the slave system data in the data transmission / reception unit 11 is worse than the reception state of the main system data. It is also possible not to switch. Further, the master-slave switching unit 15 can stop the process of switching the master-slave relationship when there is a request to stop switching from the terminal device 8.

このように、サーバ装置4は、主系のゲートウェイ装置3から送信される計測データをデータ蓄積装置5へ蓄積させ、また、データ送受信部11における主系のデータの受信状態に基づいて、ゲートウェイ装置3の主従関係を切り替えることができる。したがって、各ゲートウェイ装置3において主従関係に従った動作を付加することなく、複数のゲートウェイ装置3を用いた二重化を図ることができる。 In this way, the server device 4 stores the measurement data transmitted from the main system gateway device 3 in the data storage device 5, and the gateway device 4 is based on the reception state of the main system data in the data transmission / reception unit 11. The master-slave relationship of 3 can be switched. Therefore, it is possible to achieve duplication using a plurality of gateway devices 3 without adding an operation according to the master-slave relationship in each gateway device 3.

つづいて、監視システム1の動作を、フローチャートを用いて説明する。図3は、実施の形態1にかかる監視システム1の処理の一例を示すフローチャートである。 Next, the operation of the monitoring system 1 will be described with reference to a flowchart. FIG. 3 is a flowchart showing an example of the processing of the monitoring system 1 according to the first embodiment.

図3に示すように、監視システム1の計測データ出力装置2は、計測器およびセンサの少なくとも一つから計測値を得た場合、かかる計測値のデータを含む計測データを第1のゲートウェイ装置3と第2のゲートウェイ装置3へ送信する計測データ送信処理を実行する(ステップS11)。 As shown in FIG. 3, when the measurement data output device 2 of the monitoring system 1 obtains the measurement value from at least one of the measuring instrument and the sensor, the measurement data including the measurement value data is collected by the first gateway device 3. The measurement data transmission process to be transmitted to the first and second gateway devices 32 is executed (step S11).

次に、監視システム1のゲートウェイ装置3は、計測データ出力装置2からネットワーク6を介して計測データを受信した場合、受信した計測データをサーバ装置4へネットワーク7を介して送信する計測データ転送処理を行う(ステップS12)。 Next, when the gateway device 3 of the monitoring system 1 receives the measurement data from the measurement data output device 2 via the network 6, the measurement data transfer process of transmitting the received measurement data to the server device 4 via the network 7. (Step S12).

次に、監視システム1のサーバ装置4は、複数のゲートウェイ装置3の各々から送信される同一の計測データのうち一つの計測データを、ゲートウェイ装置3の主従関係に基づいて選択し、選択した計測データを主系のデータとしてデータ蓄積装置5へ出力する計測データ選択処理を行う(ステップS13)。かかる計測データ選択処理は、図4に示すステップS21~S23に示す処理であり、後で詳述する。 Next, the server device 4 of the monitoring system 1 selects one of the same measurement data transmitted from each of the plurality of gateway devices 3 based on the master-slave relationship of the gateway device 3, and the selected measurement. A measurement data selection process for outputting the data as main system data to the data storage device 5 is performed (step S13). The measurement data selection process is the process shown in steps S21 to S23 shown in FIG. 4, and will be described in detail later.

次に、監視システム1のデータ蓄積装置5は、サーバ装置4から出力される計測データを受信し、受信した計測データをデータ蓄積部23に蓄積する計測データ蓄積処理を実行する(ステップS14)。 Next, the data storage device 5 of the monitoring system 1 receives the measurement data output from the server device 4, and executes the measurement data storage process of storing the received measurement data in the data storage unit 23 (step S14).

図4は、計測データ選択処理の一例を示すフローチャートである。図4に示すように、サーバ装置4のデータ送受信部11は、ゲートウェイ装置3から計測データを受信する(ステップS21)。 FIG. 4 is a flowchart showing an example of the measurement data selection process. As shown in FIG. 4, the data transmission / reception unit 11 of the server device 4 receives measurement data from the gateway device 3 (step S21).

サーバ装置4の主従判定部12は、主従関係情報に基づき、データ送受信部11によって受信された計測データが主系のデータであるか否かを判定する(ステップS22)。データ出力部14は、データ送受信部11によって受信された計測データが主系のデータであると判定された場合(ステップS22:Yes)、データ送受信部11によって受信された計測データを主系のデータとしてデータ蓄積装置5へ出力する(ステップS23)。 The master-slave determination unit 12 of the server device 4 determines whether or not the measurement data received by the data transmission / reception unit 11 is the main system data based on the master-slave relationship information (step S22). When the data output unit 14 determines that the measurement data received by the data transmission / reception unit 11 is the main system data (step S22: Yes), the data output unit 14 uses the measurement data received by the data transmission / reception unit 11 as the main system data. Is output to the data storage device 5 (step S23).

また、データ出力部14は、データ送受信部11によって受信された計測データが主系のデータではないと判定された場合(ステップS22:No)、ステップS23の処理を行わない。したがって、主系のデータではなく従系のデータであると判定された計測データは、データ蓄積装置5へ出力されない。なお、図4に示す処理は、ゲートウェイ装置3から送信されてデータ送受信部11によって受信されるすべての計測データに対して実行される。 Further, when it is determined that the measurement data received by the data transmission / reception unit 11 is not the main system data (step S22: No), the data output unit 14 does not perform the process of step S23. Therefore, the measurement data determined to be the slave system data, not the main system data, is not output to the data storage device 5. The process shown in FIG. 4 is executed for all the measurement data transmitted from the gateway device 3 and received by the data transmission / reception unit 11.

次に、サーバ装置4の主従切替部15が行う主従切替処理について、図5に示すフローチャートを用いて説明する。図5は、主従切替処理の一例を示すフローチャートである。 Next, the master-slave switching process performed by the master-slave switching unit 15 of the server device 4 will be described with reference to the flowchart shown in FIG. FIG. 5 is a flowchart showing an example of the master-slave switching process.

図5に示すように、主従切替部15は、予め設定された切替条件を満たすかどうかを判定する(ステップS31)。主従切替部15は、予め設定された切替条件を満たすと判定した場合(ステップS31:Yes)、ゲートウェイ装置3の主従関係を切り替える(ステップS32)。主従切替部15は、予め設定された切替条件を満たさないと判定した場合(ステップS31:No)、ゲートウェイ装置3の主従関係の切り替えを行わない。 As shown in FIG. 5, the master-slave switching unit 15 determines whether or not a preset switching condition is satisfied (step S31). When the master-slave switching unit 15 determines that the preset switching condition is satisfied (step S31: Yes), the master-slave switching unit 15 switches the master-slave relationship of the gateway device 3 (step S32). When the master-slave switching unit 15 determines that the preset switching conditions are not satisfied (step S31: No), the master-slave switching unit 15 does not switch the master-slave relationship of the gateway device 3.

図6は、実施の形態1にかかるサーバ装置4のハードウェア構成の一例を示す図である。図6に示すように、サーバ装置4は、プロセッサ101と、メモリ102と、インタフェース回路103とを備えるコンピュータを含む。 FIG. 6 is a diagram showing an example of the hardware configuration of the server device 4 according to the first embodiment. As shown in FIG. 6, the server device 4 includes a processor 101, a memory 102, and a computer including an interface circuit 103.

プロセッサ101、メモリ102およびインタフェース回路103は、バス104によって互いにデータの送受信が可能である。データ送受信部11は、インタフェース回路103によって実現される。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、主従判定部12、設定受付部13、データ出力部14、および主従切替部15の機能を実行する。プロセッサ101は、処理回路の一例であり、CPU(Central Processing Unit)、DSP(Digital Signal Processer)、およびシステムLSI(Large Scale Integration)のうち一つ以上を含む。 The processor 101, the memory 102, and the interface circuit 103 can send and receive data to and from each other by the bus 104. The data transmission / reception unit 11 is realized by the interface circuit 103. The processor 101 executes the functions of the master-slave determination unit 12, the setting reception unit 13, the data output unit 14, and the master-slave switching unit 15 by reading and executing the program stored in the memory 102. The processor 101 is an example of a processing circuit, and includes one or more of a CPU (Central Processing Unit), a DSP (Digital Signal Processer), and a system LSI (Large Scale Integration).

メモリ102は、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、およびEPROM(Enable Program Read Only Memory)のうち一つ以上を含む。また、メモリ102は、コンピュータが読み取り可能なプログラムが記録された記録媒体を含む。かかる記録媒体は、不揮発性または揮発性の半導体メモリ、磁気ディスク、フレキシブルメモリ、光ディスク、コンパクトディスク、およびDVD(Digital Versatile Disc)のうち一つ以上を含む。なお、サーバ装置4は、ASIC(Application Specific Integrated Circuit)およびFPGA(Field Programmable Gate Array)などの集積回路を含んでいてもよい。 The memory 102 includes one or more of a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, and an EPROM (Enable Program Read Only Memory). Further, the memory 102 includes a recording medium in which a computer-readable program is recorded. Such recording media include one or more of non-volatile or volatile semiconductor memories, magnetic disks, flexible memories, optical discs, compact discs, and DVDs (Digital Versatile Discs). The server device 4 may include integrated circuits such as an ASIC (Application Specific Integrated Circuit) and an FPGA (Field Programmable Gate Array).

以上のように、実施の形態1にかかるサーバ装置4は、データ受信部の一例であるデータ送受信部11と、主従判定部12と、データ出力部14と、主従切替部15とを備える。データ送受信部11は、計測値を含む同一の計測データを第1のゲートウェイ装置3および第2のゲートウェイ装置3の各々から受信する。主従判定部12は、データ送受信部11で受信される計測データが主系のゲートウェイ装置3から送信されるデータである主系のデータであるか否かを判定する。データ出力部14は、主従判定部12によって判定された主系のデータを出力する。主従切替部15は、データ送受信部11によって主系のデータが受信されない場合に、第1のゲートウェイ装置3と第2のゲートウェイ装置3との主従関係を切り替える。これにより、各ゲートウェイ装置3において主従関係に従った動作を付加することなく、複数のゲートウェイ装置3を用いた二重化を図ることができる。 As described above, the server device 4 according to the first embodiment includes a data transmission / reception unit 11 which is an example of a data reception unit, a master-slave determination unit 12, a data output unit 14, and a master-slave switching unit 15. The data transmission / reception unit 11 receives the same measurement data including the measurement value from each of the first gateway device 3 1 and the second gateway device 3 2 . The master-slave determination unit 12 determines whether or not the measurement data received by the data transmission / reception unit 11 is the main system data that is the data transmitted from the main system gateway device 3. The data output unit 14 outputs the data of the main system determined by the master-slave determination unit 12. The master-slave switching unit 15 switches the master-slave relationship between the first gateway device 3 1 and the second gateway device 3 2 when the main system data is not received by the data transmission / reception unit 11. As a result, it is possible to achieve duplication using a plurality of gateway devices 3 without adding an operation according to the master-slave relationship in each gateway device 3.

実施の形態2.
実施の形態2では、主従関係の切り替え前後における主系のデータの不連続性を解消する処理を有する点で、実施の形態1と異なる。以下においては、実施の形態1と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態1の監視システム1と異なる点を中心に説明する。
Embodiment 2.
The second embodiment is different from the first embodiment in that it has a process of eliminating the discontinuity of the data of the main system before and after the switching of the master-slave relationship. In the following, the components having the same functions as those of the first embodiment are designated by the same reference numerals and the description thereof will be omitted, and the differences from the monitoring system 1 of the first embodiment will be mainly described.

図7は、本発明の実施の形態2にかかる監視システムの構成例を示す図である。図7に示すように、実施の形態2にかかる監視システム1Aのサーバ装置4Aは、データ送受信部11と、主従判定部12Aと、設定受付部13と、データ出力部14と、主従切替部15と、データ整合部16とを備える。 FIG. 7 is a diagram showing a configuration example of the monitoring system according to the second embodiment of the present invention. As shown in FIG. 7, the server device 4A of the monitoring system 1A according to the second embodiment has a data transmission / reception unit 11, a master-slave determination unit 12A, a setting reception unit 13, a data output unit 14, and a master-slave switching unit 15. And a data matching unit 16.

主従判定部12Aは、データ送受信部11で受信される計測データと、かかる計測データを送信したゲートウェイ装置3の情報とをデータ整合部16へ出力する。データ整合部16は、主従判定部12Aから出力される計測データを時系列にゲートウェイ装置3単位でバッファリングする。データ整合部16におけるバッファリング量は、主系のデータの不連続性を解消することができるように予め設定された量に設定される。 The master-slave determination unit 12A outputs the measurement data received by the data transmission / reception unit 11 and the information of the gateway device 3 that has transmitted the measurement data to the data matching unit 16. The data matching unit 16 buffers the measurement data output from the master-slave determination unit 12A in chronological order in units of 3 gateway devices. The buffering amount in the data matching unit 16 is set to a preset amount so that the discontinuity of the main system data can be eliminated.

主従判定部12Aは、主従切替部15によってゲートウェイ装置3の主従関係が切り替えられた場合、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータと、かかる主系のデータを送信したゲートウェイ装置3の情報とをデータ整合部16へ出力する。主系のデータは、主従関係の切り替えによって主系になったゲートウェイ装置3から送信される計測データである。 When the master-slave relationship of the gateway device 3 is switched by the master-slave switching unit 15, the master-slave determination unit 12A transmits the main system data received by the data transmission / reception unit 11 immediately after the master-slave relationship switching and the main system data. The information of the gateway device 3 is output to the data matching unit 16. The main system data is measurement data transmitted from the gateway device 3 that has become the main system due to the switching of the master-slave relationship.

データ整合部16は、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータと、バッファリングしている主系となったゲートウェイ装置3の計測データとを比較し、主系のデータの重複および欠落を判定する。 The data matching unit 16 compares the data of the main system received by the data transmission / reception unit 11 immediately after switching the master-slave relationship with the measurement data of the gateway device 3 which is the main system buffered, and compares the measurement data of the main system. Determine data duplication and omission.

主系のデータの重複および欠落は、データ送受信部11において2つのゲートウェイ装置3,3から同一の計測データが時間差で受信されることによって生じる。主系のデータの重複は、主従関係の切り替え直前に受信した主系のデータと主従関係の切り替え直後に受信した主系のデータが同一である場合に生じる。 Duplication and omission of main system data occur when the same measurement data is received from two gateway devices 3 1 and 32 in the data transmission / reception unit 11 with a time lag. Duplicate of main system data occurs when the main system data received immediately before the master-slave relationship switching and the main system data received immediately after the master-slave relationship switching are the same.

また、主系のデータの欠落は、主従関係の切り替え直前に受信された主系のデータに時系列的に連続するデータが、主従関係の切り替えにより主系になるゲートウェイ装置3から、主従関係の切り替え前にすでに受信されている場合に生じる。 In addition, the lack of master-slave data is caused by the master-slave relationship from the gateway device 3 in which the data that is continuous in time series with the master-slave data received immediately before the master-slave relationship is switched becomes the main system by switching the master-slave relationship. Occurs when it has already been received before switching.

計測データには、計測値が得られた時刻のデータが含まれている。データ整合部16は、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータに含まれる時刻のデータと、バッファリングしている主系のデータに含まれる時刻のデータとを比較する。「バッファリングしている主系のデータ」は、主従関係の切り替え直前に主系であったゲートウェイ装置3の計測データであってバッファリングされている計測データである。 The measurement data includes data at the time when the measured value was obtained. The data matching unit 16 compares the time data included in the main system data received by the data transmission / reception unit 11 immediately after switching the master-slave relationship with the time data included in the buffered main system data. do. The "buffered main system data" is the measurement data of the gateway device 3 that was the main system immediately before the switching of the master-slave relationship, and is the buffered measurement data.

データ整合部16は、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータに含まれる時刻のデータと、バッファリングしている主系のデータに含まれる時刻のデータとが一致するか否かを判定する。以下、説明の便宜上、主従関係の切り替え直後に受信された主系のデータに含まれる時刻のデータを第1時刻のデータと記載し、バッファリングしている主系のデータに含まれる時刻のデータを第2時刻のデータと記載する。 The data matching unit 16 matches the time data included in the main system data received by the data transmission / reception unit 11 immediately after switching the master-slave relationship with the time data included in the buffered main system data. Determine whether or not to do so. Hereinafter, for convenience of explanation, the time data included in the main system data received immediately after the master-slave relationship switching is described as the first time data, and the time data included in the buffered main system data. Is described as the data of the second time.

データ整合部16は、第1時刻のデータと第2時刻のデータとが一致している場合、主従判定部12Aに主系のデータの重複がある旨を示す重複情報を通知する。主従判定部12Aは、データ整合部16から重複情報を取得すると、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータをデータ出力部14からデータ蓄積装置5へ出力させない。これにより、同じ計測データをデータ蓄積装置5へ出力することを抑制でき、データ出力部14から出力させる主系のデータの不連続性を解消することができる。 When the data at the first time and the data at the second time match, the data matching unit 16 notifies the master-slave determination unit 12A of duplicate information indicating that there is duplication of the main system data. When the master-slave determination unit 12A acquires duplicate information from the data matching unit 16, the master-slave determination unit 12A does not output the main system data received by the data transmission / reception unit 11 from the data output unit 14 to the data storage device 5 immediately after switching the master-slave relationship. As a result, it is possible to suppress the output of the same measurement data to the data storage device 5, and it is possible to eliminate the discontinuity of the main system data output from the data output unit 14.

また、データ整合部16は、第1時刻のデータと第2時刻のデータとが一致しない場合、第1時刻と第2時刻との間の時刻のデータを含む計測データが、バッファリングされている計測データに含まれるか否かを判定する。データ整合部16は、第1時刻と第2時刻との間の時刻のデータを含む計測データが、バッファリングされている計測データに含まれる場合、第1時刻と第2時刻との間の時刻のデータを含む計測データを主系のデータとして主従判定部12Aへ出力する。主従判定部12Aは、データ整合部16から受け取った主系のデータを時系列の順番に従ってデータ出力部14からデータ蓄積装置5へ出力させる。 Further, when the data at the first time and the data at the second time do not match, the data matching unit 16 buffers the measurement data including the data at the time between the first time and the second time. Determine if it is included in the measurement data. The data matching unit 16 is the time between the first time and the second time when the measurement data including the data of the time between the first time and the second time is included in the buffered measurement data. The measurement data including the above data is output to the master-slave determination unit 12A as the main system data. The master-slave determination unit 12A outputs the main system data received from the data matching unit 16 from the data output unit 14 to the data storage device 5 in chronological order.

なお、上述した例では、データ整合部16は、主系のデータの重複および欠落を計測データに含まれる時刻のデータに基づいて判定するが、主系のデータの重複および欠落を判定することができれば、時刻のデータを用いなくてもよい。例えば、データ整合部16は、計測データに計測値の取得順番を示すデータが含まれる場合、時刻のデータの場合と同様の手順で、取得順番を示すデータに基づいて主系のデータの重複および欠落を判定することができるようにしてもよい。 In the above example, the data matching unit 16 determines the duplication and omission of the main system data based on the time data included in the measurement data, but may determine the duplication and omission of the main system data. If possible, it is not necessary to use the time data. For example, when the measurement data includes data indicating the acquisition order of the measured values, the data matching unit 16 duplicates the main system data based on the data indicating the acquisition order in the same procedure as for the time data. It may be possible to determine the omission.

つづいて、サーバ装置4Aの動作を、フローチャートを用いて説明する。図8は、サーバ装置4Aによる計測データ選択処理の一例を示すフローチャートである。図8に示すステップS41,S49,およびS50の処理は、図4に示すステップS21,S22,およびS23の処理と同じであるため説明を省略する。 Subsequently, the operation of the server device 4A will be described with reference to a flowchart. FIG. 8 is a flowchart showing an example of measurement data selection processing by the server device 4A. Since the processing of steps S41, S49, and S50 shown in FIG. 8 is the same as the processing of steps S21, S22, and S23 shown in FIG. 4, the description thereof will be omitted.

図8に示すように、サーバ装置4Aの主従判定部12Aは、ステップS41で受信された計測データが主従関係の切り替え直後の計測データであるか否かを判定する(ステップS42)。主従判定部12Aは、受信された計測データが主従関係の切り替え直後の計測データであると判定した場合(ステップS42:Yes)、ステップS41で受信された計測データが主系のデータであるか否かを判定する(ステップS43)。 As shown in FIG. 8, the master-slave determination unit 12A of the server device 4A determines whether or not the measurement data received in step S41 is the measurement data immediately after the master-slave relationship is switched (step S42). When the master-slave determination unit 12A determines that the received measurement data is the measurement data immediately after the master-slave relationship is switched (step S42: Yes), whether or not the measurement data received in step S41 is the main system data. (Step S43).

主従判定部12Aは、ステップS41で受信された計測データが主系のデータであると判定した場合(ステップS43:Yes)、ステップS41で受信された計測データをデータ整合部16へ出力する。データ整合部16は、主従関係の切り替え直後に受信された主系のデータと、バッファリングしている主系となったゲートウェイ装置3の計測データとを比較し、主系のデータが欠落しているかどうかを判定する(ステップS44)。 When the master-slave determination unit 12A determines that the measurement data received in step S41 is the main system data (step S43: Yes), the master-slave determination unit 12A outputs the measurement data received in step S41 to the data matching unit 16. The data matching unit 16 compares the main system data received immediately after switching the master-slave relationship with the measurement data of the gateway device 3 which is the main system buffering, and the main system data is missing. It is determined whether or not the data is present (step S44).

データ整合部16は、主系のデータが欠落していると判定した場合(ステップS44:Yes)、バッファリングしている計測データから欠落していると判定した計測データを抽出し、抽出した計測データを主従判定部12Aへ出力する。主従判定部12Aは、データ整合部16から主系のデータとして出力されたデータを主系のデータとして時系列の順番でデータ出力部14に出力させる(ステップS45)。 When the data matching unit 16 determines that the main system data is missing (step S44: Yes), the data matching unit 16 extracts the measurement data determined to be missing from the buffered measurement data, and the extracted measurement is performed. The data is output to the master-slave determination unit 12A. The master-slave determination unit 12A causes the data output unit 14 to output the data output as the main system data from the data matching unit 16 as the main system data in the order of time series (step S45).

また、データ整合部16は、主系のデータが欠落していないと判定した場合(ステップS44:No)、主系のデータが重複しているか否かを判定する(ステップS46)。データ整合部16が主系のデータが重複していないと判定した場合(ステップS46:No)、主従判定部12Aは、主従関係の切り替え直後にデータ送受信部11によって受信された計測データを主系のデータとしてデータ蓄積装置5へ出力する(ステップS47)。 Further, when the data matching unit 16 determines that the main system data is not missing (step S44: No), the data matching unit 16 determines whether or not the main system data is duplicated (step S46). When the data matching unit 16 determines that the data of the main system is not duplicated (step S46: No), the master-slave determination unit 12A uses the measurement data received by the data transmission / reception unit 11 immediately after switching the master-slave relationship as the main system. Is output to the data storage device 5 as the data of (step S47).

データ整合部16は、主系のデータが重複していると判定した場合(ステップS46:Yes)、主系のデータの重複がある旨を示す重複情報を主従判定部12Aへ通知する。主従判定部12Aは、データ整合部16から重複情報を取得すると、ステップS47の処理を行わない。これにより、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータはデータ出力部14からデータ蓄積装置5へ出力されない。 When the data matching unit 16 determines that the main system data is duplicated (step S46: Yes), the data matching unit 16 notifies the master-slave determination unit 12A of duplicate information indicating that the main system data is duplicated. When the master-slave determination unit 12A acquires duplicate information from the data matching unit 16, the master-slave determination unit 12A does not perform the process of step S47. As a result, the main system data received by the data transmission / reception unit 11 immediately after the master-slave relationship is switched is not output from the data output unit 14 to the data storage device 5.

ステップS42において、受信された計測データが主従関係の切り替え直後の計測データではないと判定した場合(ステップS42:No)、サーバ装置4Aの主従判定部12Aは、データ送受信部11で受信される計測データをデータ整合部16へ出力する。データ整合部16は、主従判定部12Aから出力される計測データをゲートウェイ装置3単位でバッファリングする(ステップS48)。 When it is determined in step S42 that the received measurement data is not the measurement data immediately after the master-slave relationship is switched (step S42: No), the master-slave determination unit 12A of the server device 4A is the measurement received by the data transmission / reception unit 11. The data is output to the data matching unit 16. The data matching unit 16 buffers the measurement data output from the master-slave determination unit 12A in units of the gateway device 3 (step S48).

ステップS45の処理が終了した場合、ステップS47の処理が終了した場合、または受信された計測データが主系のデータではないと判定した場合(ステップS43:No)、図8に示す処理を終了する。 When the process of step S45 is completed, the process of step S47 is completed, or when it is determined that the received measurement data is not the main system data (step S43: No), the process shown in FIG. 8 is terminated. ..

実施の形態2にかかるサーバ装置4Aのハードウェア構成例は、図6に示すサーバ装置4と同じである。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、上述したサーバ装置4の機能に加え、主従判定部12Aおよびデータ整合部16の機能を実行することができる。 The hardware configuration example of the server device 4A according to the second embodiment is the same as that of the server device 4 shown in FIG. By reading and executing the program stored in the memory 102, the processor 101 can execute the functions of the master-slave determination unit 12A and the data matching unit 16 in addition to the functions of the server device 4 described above.

以上のように、実施の形態2にかかるサーバ装置4Aは、データ送受信部11によって受信される計測データをゲートウェイ装置3単位で時系列にバッファリングし、バッファリングしたデータに基づいて主従関係の切り替え前後における主系のデータの不連続性を解消するデータ整合部16を備える。これにより、ゲートウェイ装置3の故障といったタイミングで実行されるゲートウェイ装置3の主従関係の切替時に発生する主系のデータの不連続性を解消することができ、監視システム1の信頼性を向上させることができる。 As described above, the server device 4A according to the second embodiment buffers the measurement data received by the data transmission / reception unit 11 in time series in units of the gateway device 3, and switches the master-slave relationship based on the buffered data. The data matching unit 16 is provided to eliminate the discontinuity of the main system data before and after. This makes it possible to eliminate the discontinuity of the main system data that occurs when the master-slave relationship of the gateway device 3 is switched, which is executed at the timing of failure of the gateway device 3, and improves the reliability of the monitoring system 1. Can be done.

実施の形態3.
実施の形態3では、従系のゲートウェイ装置3からの計測データの送信を停止させる処理を有する点で、実施の形態1,2と異なる。以下においては、実施の形態2と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態2の監視システム1Aと異なる点を中心に説明する。
Embodiment 3.
The third embodiment is different from the first and second embodiments in that it has a process of stopping the transmission of measurement data from the subordinate gateway device 3. In the following, the components having the same functions as those of the second embodiment are designated by the same reference numerals and the description thereof will be omitted, and the differences from the monitoring system 1A of the second embodiment will be mainly described.

図9は、本発明の実施の形態3にかかる監視システムの構成例を示す図である。図9に示すように、実施の形態3にかかる監視システム1Bのサーバ装置4Bは、サーバ装置4Aの構成に加え、ゲートウェイ制御部17を備える。 FIG. 9 is a diagram showing a configuration example of the monitoring system according to the third embodiment of the present invention. As shown in FIG. 9, the server device 4B of the monitoring system 1B according to the third embodiment includes a gateway control unit 17 in addition to the configuration of the server device 4A.

ゲートウェイ制御部17は、データ送受信部11を介してゲートウェイ装置3へ電源オン要求または電源オフ要求を送信することで、ゲートウェイ装置3の動作を制御することができる。例えば、ゲートウェイ制御部17は、主従切替部15によって従系から主系へ切り替えられたゲートウェイ装置3へデータ送受信部11を介して電源オン要求を送信する。ゲートウェイ装置3は、電源オン要求を受信すると、動作を開始し、計測データのサーバ装置4Bへの転送処理を開始する。 The gateway control unit 17 can control the operation of the gateway device 3 by transmitting a power-on request or a power-off request to the gateway device 3 via the data transmission / reception unit 11. For example, the gateway control unit 17 transmits a power-on request to the gateway device 3 switched from the slave system to the main system by the master-slave switching unit 15 via the data transmission / reception unit 11. Upon receiving the power-on request, the gateway device 3 starts the operation and starts the transfer process of the measurement data to the server device 4B.

また、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられたゲートウェイ装置3へデータ送受信部11を介して電源オフ要求を送信する。ゲートウェイ装置3は、電源オフ要求を受信すると、動作を停止し、計測データのサーバ装置4Bへの転送処理を中止する。これにより、従系のゲートウェイ装置3から計測データの送信が停止されるため、サーバ装置4Bによる計測データの処理負荷を低減することができる。 Further, the gateway control unit 17 transmits a power-off request to the gateway device 3 switched from the main system to the slave system by the master-slave switching unit 15 via the data transmission / reception unit 11. Upon receiving the power-off request, the gateway device 3 stops its operation and stops the transfer processing of the measurement data to the server device 4B. As a result, the transmission of the measurement data is stopped from the slave gateway device 3, so that the processing load of the measurement data by the server device 4B can be reduced.

なお、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられるタイミングで、電源オン要求を主系になるゲートウェイ装置3へ送信し、電源オフ要求を従系となるゲートウェイ装置3へ送信するが、電源オン要求および電源オフ要求の送信タイミングは、上述した例に限定されない。 The gateway control unit 17 transmits a power-on request to the main gateway device 3 at the timing when the master-slave switching unit 15 switches from the main system to the slave system, and the power-off request is sent to the gateway device 3 as the slave system. However, the transmission timing of the power-on request and the power-off request is not limited to the above-mentioned example.

例えば、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられる直前のタイミングで電源オン要求を主系になるゲートウェイ装置3へ送信し、主従切替部15によって主系から従系へ切り替えられた後に電源オフ要求を従系となるゲートウェイ装置3へ送信することもできる。例えば、計測データが1回でも受信できない場合、ゲートウェイ制御部17は、電源オン要求を従系のゲートウェイ装置3へ送信することができる。 For example, the gateway control unit 17 transmits a power-on request to the gateway device 3 which is the main system at the timing immediately before the master-slave switching unit 15 switches from the main system to the slave system, and the master-slave switching unit 15 transmits the power-on request from the main system to the slave system. It is also possible to send a power-off request to the gateway device 3 which is a slave after being switched to. For example, if the measurement data cannot be received even once, the gateway control unit 17 can transmit a power-on request to the slave gateway device 3.

また、ゲートウェイ制御部17は、過去に主系から従系へ切り替えられた回数が予め設定された閾値以上になったゲートウェイ装置3へは電源オフ要求を送信しないこともできる。また、ゲートウェイ制御部17は、ゲートウェイ装置3の稼動時間が予め設定された時間以上である場合に限り、電源オフ要求を送信することもできる。 Further, the gateway control unit 17 may not transmit a power-off request to the gateway device 3 in which the number of times the main system has been switched to the slave system in the past exceeds a preset threshold value. Further, the gateway control unit 17 can also transmit a power-off request only when the operating time of the gateway device 3 is equal to or longer than a preset time.

なお、ゲートウェイ制御部17は、ゲートウェイ装置3をオフにするか否かを制御することに代えて、ゲートウェイ装置3をスリープ状態にするか否かを制御することもできる。この場合、ゲートウェイ制御部17は、電源オフ要求に代えてスリープ開始要求を送信し、電源オン要求に代えてスリープ停止要求を送信する。ゲートウェイ装置3は、スリープ開始要求を受信するとスリープ状態へ移行し、スリープ停止要求を受信するとスリープ状態を解除し動作状態へ移行する。 The gateway control unit 17 can also control whether or not to put the gateway device 3 into the sleep state, instead of controlling whether or not to turn off the gateway device 3. In this case, the gateway control unit 17 transmits a sleep start request instead of the power off request, and transmits a sleep stop request instead of the power on request. When the gateway device 3 receives the sleep start request, it shifts to the sleep state, and when it receives the sleep stop request, it cancels the sleep state and shifts to the operating state.

つづいて、サーバ装置4Bの動作を、フローチャートを用いて説明する。図10は、サーバ装置4Bによるゲートウェイ制御処理の一例を示すフローチャートである。図10に示すように、ゲートウェイ制御部17は、主従切替部15によって主従関係の切り替えが行われるか否かを判定する(ステップS51)。 Subsequently, the operation of the server device 4B will be described with reference to a flowchart. FIG. 10 is a flowchart showing an example of gateway control processing by the server device 4B. As shown in FIG. 10, the gateway control unit 17 determines whether or not the master-slave relationship is switched by the master-slave switching unit 15 (step S51).

ゲートウェイ制御部17は、主従関係の切り替えが行われると判定した場合(ステップS51:Yes)、主従関係の切り替えによって従系から主系になるゲートウェイ装置3へ電源オン要求を送信する(ステップS52)。また、ゲートウェイ制御部17は、主従関係の切り替えによって主系から従系になるゲートウェイ装置3へ電源オフ要求を送信する(ステップS53)。 When the gateway control unit 17 determines that the master-slave relationship is switched (step S51: Yes), the gateway control unit 17 transmits a power-on request from the slave system to the gateway device 3 which becomes the main system by switching the master-slave relationship (step S52). .. Further, the gateway control unit 17 transmits a power-off request from the main system to the gateway device 3 which becomes the slave system by switching the master-slave relationship (step S53).

ゲートウェイ制御部17は、ステップS53の処理が終了した場合、主従関係の切り替えが行われていないと判定した場合(ステップS51:No)、図10に示す処理を終了する。なお、図10に示す処理は繰り返し実行される。 When the process of step S53 is completed and it is determined that the master-slave relationship has not been switched (step S51: No), the gateway control unit 17 ends the process shown in FIG. The process shown in FIG. 10 is repeatedly executed.

実施の形態3にかかるサーバ装置4Bのハードウェア構成例は、図6に示すサーバ装置4と同じである。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、上述したサーバ装置4Aの機能に加え、ゲートウェイ制御部17の機能を実行することができる。 The hardware configuration example of the server device 4B according to the third embodiment is the same as that of the server device 4 shown in FIG. By reading and executing the program stored in the memory 102, the processor 101 can execute the function of the gateway control unit 17 in addition to the function of the server device 4A described above.

以上のように、実施の形態3にかかるサーバ装置4Bは、第1のゲートウェイ装置3および第2のゲートウェイ装置3のうち従系のゲートウェイ装置3からの計測データの送信を停止させるゲートウェイ制御部17を備える。これにより、従系のゲートウェイ装置3から計測データの送信が停止されるため、サーバ装置4Bによる計測データの処理負荷を低減することができる。 As described above, the server device 4B according to the third embodiment is a gateway control for stopping the transmission of measurement data from the slave gateway device 3 among the first gateway device 3 1 and the second gateway device 3 2 . A unit 17 is provided. As a result, the transmission of the measurement data is stopped from the slave gateway device 3, so that the processing load of the measurement data by the server device 4B can be reduced.

実施の形態4.
実施の形態4では、主従関係の組み合わせになるゲートウェイ装置3を自動的に検出する処理を有する点で、実施の形態1~3と異なる。以下においては、実施の形態3と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態3の監視システム1Bと異なる点を中心に説明する。
Embodiment 4.
The fourth embodiment is different from the first to third embodiments in that it has a process of automatically detecting the gateway device 3 which is a combination of master-slave relationships. In the following, the components having the same functions as those of the third embodiment are designated by the same reference numerals and the description thereof will be omitted, and the differences from the monitoring system 1B of the third embodiment will be mainly described.

図11は、本発明の実施の形態4にかかる監視システムの構成例を示す図である。図11に示すように、実施の形態4にかかる監視システム1Cのサーバ装置4Cは、データ送受信部11と、主従判定部12Cと、設定受付部13と、データ出力部14と、主従切替部15と、データ整合部16と、ゲートウェイ制御部17と、主従紐付部18とを備える。 FIG. 11 is a diagram showing a configuration example of the monitoring system according to the fourth embodiment of the present invention. As shown in FIG. 11, the server device 4C of the monitoring system 1C according to the fourth embodiment includes a data transmission / reception unit 11, a master-slave determination unit 12C, a setting reception unit 13, a data output unit 14, and a master-slave switching unit 15. , A data matching unit 16, a gateway control unit 17, and a master-slave linking unit 18.

主従判定部12Cは、主従関係情報を有しない場合、主従関係情報を有しない旨を主従紐付部18へ通知する。主従紐付部18は、主従判定部12Cから、主従関係情報を有しない旨を受けると、自動的に主従関係情報を生成する主従関係情報生成処理を実行する。 If the master-slave determination unit 12C does not have the master-slave relationship information, the master-slave determination unit 12C notifies the master-slave linking unit 18 that it does not have the master-slave relationship information. When the master-slave linking unit 18 receives from the master-slave determination unit 12C that it does not have the master-slave relationship information, the master-slave association information generation process for automatically generating the master-slave relationship information is executed.

主従紐付部18は、主従関係情報生成処理において、第1のゲートウェイ装置3からの計測データと第2のゲートウェイ装置3からの計測データとを比較し、比較した結果に基づいて、第1のゲートウェイ装置3と第2のゲートウェイ装置3とが主従の組み合わせになるゲートウェイ装置3であるかを判定する。 In the master-slave relationship information generation process, the master-slave linking unit 18 compares the measurement data from the first gateway device 3 1 with the measurement data from the second gateway device 32, and based on the result of the comparison, the first It is determined whether the gateway device 3 1 of the above and the second gateway device 3 2 are the gateway devices 3 that are a master-slave combination.

主従紐付部18は、計測データ同士の計測値の時系列的な変化の傾向が同じである場合に、第1のゲートウェイ装置3と第2のゲートウェイ装置3とが主従の組み合わせになるゲートウェイ装置3であると判定することができる。 The master-slave linking unit 18 is a gateway in which the first gateway device 3 1 and the second gateway device 3 2 are a master-slave combination when the tendency of the measured values of the measured data to change over time is the same. It can be determined that it is the device 3.

例えば、主従紐付部18は、第1のゲートウェイ装置3からの計測データを構成するバイナリデータと第2のゲートウェイ装置3からの計測データを構成するバイナリデータとを比較し、2つのバイナリデータ同士の一致度が予め設定された閾値以上であるか否かを判定する。 For example, the master-slave linking unit 18 compares the binary data constituting the measurement data from the first gateway device 3 1 and the binary data constituting the measurement data from the second gateway device 32 2 , and the two binary data. It is determined whether or not the degree of coincidence between the two is equal to or higher than a preset threshold value.

主従紐付部18は、2つのバイナリデータ同士の一致度が予め設定された閾値以上であると判定された回数が、予め設定された回数Nth以上である場合に、主従紐付部18は、同じ計測値が時系列にゲートウェイ装置3,3から送信されていると判定する。この場合、主従紐付部18は、第1のゲートウェイ装置3と第2のゲートウェイ装置3とが主従の組み合わせになるゲートウェイ装置3であると判定する。 When the number of times that the degree of matching between the two binary data is determined to be equal to or greater than the preset threshold value is equal to or greater than the preset number of times Nth, the master-slave association unit 18 performs the same measurement. It is determined that the values are transmitted from the gateway devices 3 1 and 32 in chronological order. In this case, the master-slave linking unit 18 determines that the first gateway device 3 1 and the second gateway device 3 2 are gateway devices 3 in which the master-slave combination is used.

このように、主従紐付部18は、バイナリデータを比較することで主従の組み合わせになるゲートウェイ装置3を判定することから、計測値を計測データから読み出して比較する場合に比べ、迅速かつ容易にデータの比較を行うことができる。なお、上述した「Nth」は、2以上の値であるが、Nth=1にしてもよい。 In this way, since the master-slave linking unit 18 determines the gateway device 3 that is a combination of master and slave by comparing the binary data, the data can be read quickly and easily as compared with the case where the measured values are read from the measured data and compared. Can be compared. Although the above-mentioned "Nth" is a value of 2 or more, Nth = 1 may be set.

なお、計測データには、ゲートウェイ装置3から送信されるパケットのペイロードに含まれており、主従紐付部18は、ペイロードのバイナリデータを上述した比較の対象とすることで、計測データのバイナリデータを比較することができる。なお、主従紐付部18は、ゲートウェイ装置3から送信されるパケット全体のバイナリデータを上述した比較の対象とすることもできる。 The measurement data is included in the payload of the packet transmitted from the gateway device 3, and the master-slave linking unit 18 makes the binary data of the payload the target of the above-mentioned comparison, so that the binary data of the measurement data can be obtained. Can be compared. The master-slave linking unit 18 can also make the binary data of the entire packet transmitted from the gateway device 3 the target of the above-mentioned comparison.

また、主従紐付部18は、計測値のデータおよび時刻のデータを上述した比較対象として計測データから読み出し、読み出した計測値と時刻の組み合わせ同士を比較することもできる。主従紐付部18は、互いの計測値および時刻が一致する回数が、予め設定された回数Nth以上である場合に、第1のゲートウェイ装置3と第2のゲートウェイ装置3とを主従の組み合わせになるゲートウェイ装置3と判定することができる。 Further, the master-slave linking unit 18 can read the measured value data and the time data from the measured data as the above-mentioned comparison target, and compare the read combination of the measured value and the time. The master-slave linking unit 18 combines the first gateway device 3 1 and the second gateway device 3 2 as a master-slave combination when the number of times the measured values and times match each other is Nth or more a preset number of times. It can be determined that the gateway device 3 becomes.

なお、主従紐付部18は、主従判定部12Cが主従関係情報を有している場合であっても、データ送受信部11においてデータが一定回数以上受信されない場合、主従関係情報を削除することができる。これにより、主従関係を有する2つのゲートウェイ装置3の一つが交換のために削除された場合、主従紐付部18は、主従判定部12Cによって主従関係情報が削除された後に、主従関係情報を再生成することができる。 Even if the master-slave determination unit 12C has the master-slave relationship information, the master-slave linking unit 18 can delete the master-slave relationship information if the data is not received more than a certain number of times by the data transmission / reception unit 11. .. As a result, when one of the two gateway devices 3 having a master-slave relationship is deleted for exchange, the master-slave linking unit 18 regenerates the master-slave relationship information after the master-slave relationship information is deleted by the master-slave determination unit 12C. can do.

つづいて、サーバ装置4Cの動作を、フローチャートを用いて説明する。図12は、サーバ装置4Cによる主従紐付処理の一例を示すフローチャートである。図12に示すように、主従紐付部18は、主従判定部12Cに主従関係情報がないか否かを判定する(ステップS61)。 Subsequently, the operation of the server device 4C will be described with reference to a flowchart. FIG. 12 is a flowchart showing an example of master-slave association processing by the server device 4C. As shown in FIG. 12, the master-slave linking unit 18 determines whether or not the master-slave determination unit 12C has master-slave relationship information (step S61).

主従紐付部18は、主従関係情報がないと判定した場合(ステップS61:Yes)、複数のゲートウェイ装置3から計測データが受信されたか否かを判定する(ステップS62)。主従紐付部18は、複数のゲートウェイ装置3から計測データが受信されたと判定した場合(ステップS62:Yes)、受信した計測データ同士を比較し(ステップS63)、比較した結果に基づいて、計測データ同士の計測値の時系列的な変化の傾向が同じであるか否かを判定する(ステップS64)。 When the master-slave linking unit 18 determines that there is no master-slave relationship information (step S61: Yes), the master-slave linking unit 18 determines whether or not measurement data has been received from the plurality of gateway devices 3 (step S62). When it is determined that the measurement data has been received from the plurality of gateway devices 3 (step S62: Yes), the master-slave linking unit 18 compares the received measurement data with each other (step S63), and the measurement data is based on the comparison result. It is determined whether or not the tendency of the time-series changes of the measured values of each other is the same (step S64).

主従紐付部18は、計測データ同士の計測値の時系列的な変化の傾向が同じであると判定した場合(ステップS64:Yes)、計測値の時系列的な変化の傾向が同じである計測データを送信する2つのゲートウェイ装置3の識別情報を含む主従関係情報を生成する(ステップS65)。 When the master-slave linking unit 18 determines that the tendency of the measured values of the measured data to change in time series is the same (step S64: Yes), the measurement has the same tendency of the measured values to change in time series. Generate master-slave relationship information including identification information of two gateway devices 3 for transmitting data (step S65).

主従関係情報があると判定した場合(ステップS61:No)、複数のゲートウェイ装置3から計測データが受信されていないと判定した場合(ステップS62:No)、計測データ同士の計測値の時系列的な変化の傾向が同じではないと判定した場合(ステップS64:No)、またはステップS65の処理が終了した場合、図12の処理を終了する。主従紐付部18は、図12の処理を繰り返し行う。 When it is determined that there is master-slave relationship information (step S61: No), and when it is determined that the measurement data has not been received from the plurality of gateway devices 3 (step S62: No), the measurement values of the measurement data are time-series. When it is determined that the tendencies of the changes are not the same (step S64: No), or when the process of step S65 is completed, the process of FIG. 12 is terminated. The master-slave tying portion 18 repeats the process shown in FIG.

実施の形態4にかかるサーバ装置4Cのハードウェア構成例は、図6に示すサーバ装置4と同じである。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、上述したサーバ装置4Bの機能に加え、主従判定部12Cおよび主従紐付部18の機能を実行することができる。 The hardware configuration example of the server device 4C according to the fourth embodiment is the same as that of the server device 4 shown in FIG. By reading and executing the program stored in the memory 102, the processor 101 can execute the functions of the master-slave determination unit 12C and the master-slave linking unit 18 in addition to the functions of the server device 4B described above.

以上のように、実施の形態4にかかるサーバ装置4Cは、第1のゲートウェイ装置3からの計測データと第2のゲートウェイ装置3からの計測データとを比較し、比較した結果に基づいて、第1のゲートウェイ装置3と第2のゲートウェイ装置3とを主従の組み合わせになるゲートウェイ装置3に設定する主従紐付部18を備える。これにより、主従の組み合わせになるゲートウェイ装置3を手動で設定する手間を省くことができるため、二重化の設定コストを削減できる。また、ゲートウェイ装置3を交換した場合であっても、自動的に主従関係を認識させることができ、二重化の設定コストを削減できる。 As described above, the server device 4C according to the fourth embodiment compares the measurement data from the first gateway device 3 1 with the measurement data from the second gateway device 32, and is based on the result of the comparison. A master-slave linking unit 18 for setting the first gateway device 3 1 and the second gateway device 3 2 in the gateway device 3 which is a master-slave combination is provided. As a result, it is possible to save the trouble of manually setting the gateway device 3 which is a combination of master and slave, and it is possible to reduce the setting cost of duplication. Further, even when the gateway device 3 is replaced, the master-slave relationship can be automatically recognized, and the duplication setting cost can be reduced.

実施の形態5.
実施の形態5では、特定のセキュリティキーコードを送信しないゲートウェイ装置からの計測データを主系のデータとして用いない処理を有する点で、実施の形態1~4と異なる。以下においては、実施の形態4と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態4の監視システム1Cと異なる点を中心に説明する。
Embodiment 5.
The fifth embodiment is different from the first to fourth embodiments in that the measurement data from the gateway device that does not transmit a specific security key code is not used as the main system data. In the following, the components having the same functions as those of the fourth embodiment are designated by the same reference numerals and the description thereof will be omitted, and the differences from the monitoring system 1C of the fourth embodiment will be mainly described.

図13は、本発明の実施の形態5にかかる監視システムの構成例を示す図である。図13に示すように、実施の形態5にかかる監視システム1Dの第1のゲートウェイ装置3Dおよび第2のゲートウェイ装置3Dは、キーコード生成部33を備える。以下、第1のゲートウェイ装置3Dおよび第2のゲートウェイ装置3Dを総称してゲートウェイ装置3Dと記載する。 FIG. 13 is a diagram showing a configuration example of the monitoring system according to the fifth embodiment of the present invention. As shown in FIG. 13, the first gateway device 3D 1 and the second gateway device 3D 2 of the monitoring system 1D according to the fifth embodiment include a key code generation unit 33. Hereinafter, the first gateway device 3D 1 and the second gateway device 3D 2 are collectively referred to as a gateway device 3D.

キーコード生成部33は、ゲートウェイ装置3Dの固有情報に基づいてセキュリティキーコードを生成する。ゲートウェイ装置3Dの固有情報は、例えば、ゲートウェイ装置3Dの製造番号またはMACアドレスである。なお、セキュリティキーコードは、ゲートウェイ装置3D毎に固有のコードであればよく、他の方法で生成されてもよい。 The key code generation unit 33 generates a security key code based on the unique information of the gateway device 3D. The unique information of the gateway device 3D is, for example, the serial number or MAC address of the gateway device 3D. The security key code may be a code unique to each gateway device 3D, and may be generated by another method.

データ転送部32は、データ受信部31で受信された計測データにキーコード生成部33で生成されたセキュリティキーコードを付加したデータをサーバ装置4Dへ送信する。以下、セキュリティキーコードを単にキーコードと記載する場合がある。 The data transfer unit 32 transmits data to which the security key code generated by the key code generation unit 33 is added to the measurement data received by the data reception unit 31 to the server device 4D. Hereinafter, the security key code may be simply referred to as a key code.

実施の形態5にかかる監視システム1Dのサーバ装置4Dは、データ送受信部11と、主従判定部12Cと、設定受付部13と、データ出力部14と、主従切替部15と、データ整合部16と、ゲートウェイ制御部17と、主従紐付部18と、コード解析部19と、許可部の一例であるデータ通信許可部20とを備える。 The server device 4D of the monitoring system 1D according to the fifth embodiment includes a data transmission / reception unit 11, a master-slave determination unit 12C, a setting reception unit 13, a data output unit 14, a master-slave switching unit 15, and a data matching unit 16. , A gateway control unit 17, a master-slave linking unit 18, a code analysis unit 19, and a data communication permission unit 20 which is an example of a permission unit.

コード解析部19は、ゲートウェイ装置3Dから送信されるデータに含まれるキーコードを解析する。データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードであるゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可する。また、データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードでないゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可しない。 The code analysis unit 19 analyzes the key code included in the data transmitted from the gateway device 3D. The data communication permission unit 20 permits the measurement data transmitted from the gateway device 3D whose key code analyzed by the code analysis unit 19 is a specific key code to be used as main system data. Further, the data communication permission unit 20 does not allow the measurement data transmitted from the gateway device 3D whose key code analyzed by the code analysis unit 19 is not a specific key code to be used as the main data.

データ通信許可部20は、サーバ装置4Dで計測データの受け付けを許可するゲートウェイ装置3Dのキーコードを特定のキーコードとして記憶しており、記憶したキーコードに基づいて、上述した許可および不許可の判定を行う。なお、設定受付部13は、主従関係情報の場合と同様に、端末装置8から送信されるコード設定情報に含まれるキーコードを特定のキーコードとして記憶することができる。 The data communication permission unit 20 stores the key code of the gateway device 3D that permits the reception of measurement data in the server device 4D as a specific key code, and the above-mentioned permission and disapproval are based on the stored key code. Make a judgment. The setting reception unit 13 can store the key code included in the code setting information transmitted from the terminal device 8 as a specific key code, as in the case of the master-slave relationship information.

なお、ゲートウェイ装置3Dは、計測データにキーコードを付加したデータをサーバ装置4Dへ送信するが、計測データとは別にキーコードをサーバ装置4Dへ送信することもできる。 The gateway device 3D transmits data in which a key code is added to the measurement data to the server device 4D, but the key code can also be transmitted to the server device 4D separately from the measurement data.

つづいて、サーバ装置4Dの動作を、フローチャートを用いて説明する。図14は、サーバ装置4Dによる計測データ選択処理の一例を示すフローチャートである。図14に示すステップS71,S74~S82の処理は、図8に示すステップS41~S50処理と同じであるため説明を省略する。 Next, the operation of the server device 4D will be described with reference to a flowchart. FIG. 14 is a flowchart showing an example of measurement data selection processing by the server device 4D. Since the processes of steps S71 and S74 to S82 shown in FIG. 14 are the same as the processes of steps S41 to S50 shown in FIG. 8, the description thereof will be omitted.

データ送受信部11によって計測データが受信された場合、コード解析部19は、データ送受信部11によって受信された計測データを含むデータに含まれるキーコードの内容を解析する(ステップS72)。データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードであるか否かを判定する(ステップS73)。 When the measurement data is received by the data transmission / reception unit 11, the code analysis unit 19 analyzes the contents of the key code included in the data including the measurement data received by the data transmission / reception unit 11 (step S72). The data communication permission unit 20 determines whether or not the key code analyzed by the code analysis unit 19 is a specific key code (step S73).

データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードであると判定した場合(ステップS73:Yes)、ステップS74へ移行することで、データ送受信部11によって受信された計測データの使用を許可する。 When the data communication permission unit 20 determines that the key code analyzed by the code analysis unit 19 is a specific key code (step S73: Yes), the data communication permission unit 20 is received by the data transmission / reception unit 11 by moving to step S74. Allow the use of measured data.

データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードではないと判定した場合(ステップS73:No)、ステップS74への移行を行わないことで、データ送受信部11によって受信された計測データの使用を許可しない。 When the data communication permission unit 20 determines that the key code analyzed by the code analysis unit 19 is not a specific key code (step S73: No), the data communication permission unit 20 does not perform the transition to step S74, so that the data transmission / reception unit 11 Do not allow the use of measurement data received by.

実施の形態5にかかるサーバ装置4Dのハードウェア構成例は、図6に示すサーバ装置4と同じである。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、上述したサーバ装置4Cの機能に加え、コード解析部19およびデータ通信許可部20の機能を実行することができる。 The hardware configuration example of the server device 4D according to the fifth embodiment is the same as that of the server device 4 shown in FIG. By reading and executing the program stored in the memory 102, the processor 101 can execute the functions of the code analysis unit 19 and the data communication permission unit 20 in addition to the functions of the server device 4C described above.

以上のように、実施の形態5にかかるサーバ装置4Dは、ゲートウェイ装置3Dから送信されるデータに含まれるキーコードを解析するコード解析部19と、コード解析部19によって解析されるキーコードが特定のキーコードであるゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可する通信許可部とを備える。これにより、サーバ装置4Dは、データ通信の許可対象として予め設定されたゲートウェイ装置3Dのみと有効な通信可能になるため、セキュアな二重化構成を容易かつ低コストで構築することができる。 As described above, in the server device 4D according to the fifth embodiment, the code analysis unit 19 that analyzes the key code included in the data transmitted from the gateway device 3D and the key code analyzed by the code analysis unit 19 are specified. It is provided with a communication permission unit that allows the measurement data transmitted from the gateway device 3D, which is the key code of the above, to be used as the main data. As a result, the server device 4D can effectively communicate only with the gateway device 3D preset as a data communication permission target, so that a secure duplex configuration can be easily and inexpensively constructed.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configuration shown in the above-described embodiment shows an example of the content of the present invention, can be combined with another known technique, and is one of the configurations as long as it does not deviate from the gist of the present invention. It is also possible to omit or change the part.

1,1A,1B,1C,1D 監視システム、2,2~2 計測データ出力装置、3,3,3,3D,3D,3D ゲートウェイ装置、4,4A,4B,4C,4D サーバ装置、5 データ蓄積装置、6,7 ネットワーク、8 端末装置、11 データ送受信部、12,12A,12C 主従判定部、13 設定受付部、14 データ出力部、15 主従切替部、16 データ整合部、17 ゲートウェイ制御部、18 主従紐付部、19 コード解析部、20 データ通信許可部、21,31 データ受信部、22 データ格納処理部、23 データ蓄積部、32 データ転送部、33 キーコード生成部。 1,1A, 1B, 1C , 1D monitoring system, 2,21-2n measurement data output device, 3,3 1,32,3D , 3D 1,3D 2 gateway device, 4,4A , 4B, 4C, 4D server device, 5 data storage device, 6,7 network, 8 terminal device, 11 data transmission / reception unit, 12, 12A, 12C master-slave judgment unit, 13 setting reception unit, 14 data output unit, 15 master-slave switching unit, 16 data matching Unit, 17 Gateway control unit, 18 Master-slave linking unit, 19 Code analysis unit, 20 Data communication permission unit, 21,31 Data reception unit, 22 Data storage processing unit, 23 Data storage unit, 32 Data transfer unit, 33 Key code generation Department.

Claims (14)

計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するデータ受信部と、
前記第1のゲートウェイ装置および前記第2のゲートウェイ装置の各々の識別情報に主系と従系のいずれに設定されているかを示す主従情報を関連付けた主従関係情報を有しており、前記主従関係情報と前記計測データに付加されたゲートウェイ装置の識別情報に基づいて、前記データ受信部で受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定する主従判定部と、
前記主従判定部によって判定された前記主系のデータを出力するデータ出力部と、
前記データ受信部によって前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替える主従切替部と、を備える
ことを特徴とするサーバ装置。
A data receiving unit that receives the same measurement data including measured values from each of the first gateway device and the second gateway device, and
Each of the identification information of the first gateway device and the second gateway device has master-slave relationship information in which master-slave information indicating whether the master system or the slave system is set is associated with the master-slave relationship information. Whether or not the measurement data received by the data receiving unit is the main system data transmitted from the main system gateway device based on the information and the identification information of the gateway device added to the measurement data. The master-slave judgment unit that determines whether or not
A data output unit that outputs the data of the main system determined by the master-slave determination unit, and
A server device including a master-slave switching unit that switches a master-slave relationship between the first gateway device and the second gateway device when the data of the main system is not received by the data receiving unit.
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するデータ受信部と、
前記データ受信部で受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定する主従判定部と、
前記主従判定部によって判定された前記主系のデータを出力するデータ出力部と、
前記データ受信部によって前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替える主従切替部と、
前記第1のゲートウェイ装置からの前記計測データと前記第2のゲートウェイ装置からの前記計測データとを比較し、比較した結果に基づいて、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置とを主従の組み合わせになるゲートウェイ装置に設定する主従紐付部と、を備える
ことを特徴とするサーバ装置。
A data receiving unit that receives the same measurement data including measured values from each of the first gateway device and the second gateway device, and
A master-slave determination unit that determines whether or not the measurement data received by the data reception unit is main system data that is data transmitted from the main system gateway device.
A data output unit that outputs the data of the main system determined by the master-slave determination unit, and
A master-slave switching unit that switches the master-slave relationship between the first gateway device and the second gateway device when the data of the main system is not received by the data receiving unit.
The measurement data from the first gateway device and the measurement data from the second gateway device are compared, and based on the result of the comparison, the first gateway device and the second gateway device are combined. A server device characterized by having a master-slave linking unit set in a gateway device that is a combination of master and slave.
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するデータ受信部と、
前記データ受信部で受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定する主従判定部と、
前記主従判定部によって判定された前記主系のデータを出力するデータ出力部と、
前記データ受信部によって前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替える主従切替部と、
前記ゲートウェイ装置から送信されるデータに含まれるセキュリティキーコードを解析するコード解析部と、
前記コード解析部によって解析されるセキュリティキーコードが特定のセキュリティキーコードであるゲートウェイ装置から送信される計測データを前記主系のデータとして用いることを許可する許可部と、を備える
ことを特徴とするサーバ装置。
A data receiving unit that receives the same measurement data including measured values from each of the first gateway device and the second gateway device, and
A master-slave determination unit that determines whether or not the measurement data received by the data reception unit is main system data that is data transmitted from the main system gateway device.
A data output unit that outputs the data of the main system determined by the master-slave determination unit, and
A master-slave switching unit that switches the master-slave relationship between the first gateway device and the second gateway device when the data of the main system is not received by the data receiving unit.
A code analysis unit that analyzes the security key code included in the data transmitted from the gateway device, and
The security key code analyzed by the code analysis unit includes a permission unit that permits the measurement data transmitted from the gateway device, which is a specific security key code, to be used as the main system data. Server device.
前記データ受信部によって受信される前記計測データを前記ゲートウェイ装置単位で時系列にバッファリングし、当該バッファリングしたデータに基づいて前記主従関係の切り替え前後における前記主系のデータの不連続性を解消するデータ整合部を備える
ことを特徴とする請求項1から3のいずれか1つに記載のサーバ装置。
The measurement data received by the data receiving unit is buffered in time series for each gateway device, and the discontinuity of the main system data before and after switching the master-slave relationship is eliminated based on the buffered data. The server device according to any one of claims 1 to 3, further comprising a data matching unit.
前記第1のゲートウェイ装置および前記第2のゲートウェイ装置のうち従系のゲートウェイ装置からの前記計測データの送信を停止させるゲートウェイ制御部を備える
ことを特徴とする請求項1から4のいずれか1つに記載のサーバ装置。
One of claims 1 to 4, wherein the gateway control unit for stopping the transmission of the measurement data from the slave gateway device among the first gateway device and the second gateway device is provided. The server device described in.
請求項1~5のいずれか1つに記載のサーバ装置と、
前記第1のゲートウェイ装置と、
前記第2のゲートウェイ装置と、を備える
ことを特徴とする監視システム。
The server device according to any one of claims 1 to 5.
The first gateway device and
A monitoring system comprising the second gateway device.
前記サーバ装置から出力される前記主系のデータを蓄積するデータ蓄積装置を備える
ことを特徴とする請求項6に記載の監視システム。
The monitoring system according to claim 6, further comprising a data storage device for storing the main system data output from the server device.
前記データ蓄積装置に蓄積されたデータを表示する端末装置を備える
ことを特徴とする請求項7に記載の監視システム。
The monitoring system according to claim 7, further comprising a terminal device for displaying the data stored in the data storage device.
コンピュータが実行するデータ処理方法であって、
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記第1のゲートウェイ装置および前記第2のゲートウェイ装置の各々の識別情報に主系と従系のいずれに設定されているかを示す主従情報を関連付けた主従関係情報を有しており、前記主従関係情報と前記計測データに付加されたゲートウェイ装置の識別情報に基づいて、前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、を含む
ことを特徴とするデータ処理方法。
A data processing method performed by a computer
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
Each of the identification information of the first gateway device and the second gateway device has master-slave relationship information in which master-slave information indicating whether the master system or the slave system is set is associated with the master-slave relationship information. Based on the information and the identification information of the gateway device added to the measurement data, it is determined whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device. Steps and
The step of outputting the main system data and
A data processing method comprising: a step of switching a master-slave relationship between the first gateway device and the second gateway device when the main system data is not received.
コンピュータが実行するデータ処理方法であって、
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、
前記第1のゲートウェイ装置からの前記計測データと前記第2のゲートウェイ装置からの前記計測データとを比較し、比較した結果に基づいて、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置とを主従の組み合わせになるゲートウェイ装置に設定するステップと、を含む
ことを特徴とするデータ処理方法。
A data processing method performed by a computer
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
The step of determining whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device, and
The step of outputting the main system data and
A step of switching the master-slave relationship between the first gateway device and the second gateway device when the main system data is not received, and
The measurement data from the first gateway device and the measurement data from the second gateway device are compared, and based on the result of the comparison, the first gateway device and the second gateway device are combined. A data processing method that includes a step to set up a gateway device that is a master-slave combination.
コンピュータが実行するデータ処理方法であって、
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、
前記ゲートウェイ装置から送信されるデータに含まれるセキュリティキーコードを解析するステップと、
前記解析されるセキュリティキーコードが特定のセキュリティキーコードであるゲートウェイ装置から送信される計測データを前記主系のデータとして用いることを許可するステップと、を含む
ことを特徴とするデータ処理方法。
A data processing method performed by a computer
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
The step of determining whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device, and
The step of outputting the main system data and
A step of switching the master-slave relationship between the first gateway device and the second gateway device when the main system data is not received, and
The step of analyzing the security key code contained in the data transmitted from the gateway device, and
A data processing method comprising: a step of permitting measurement data transmitted from a gateway device whose security key code to be analyzed is a specific security key code to be used as data of the main system.
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記第1のゲートウェイ装置および前記第2のゲートウェイ装置の各々の識別情報に主系と従系のいずれに設定されているかを示す主従情報を関連付けた主従関係情報を有しており、前記主従関係情報と前記計測データに付加されたゲートウェイ装置の識別情報に基づいて、前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
Each of the identification information of the first gateway device and the second gateway device has master-slave relationship information in which master-slave information indicating whether the master system or the slave system is set is associated with the master-slave relationship information. Based on the information and the identification information of the gateway device added to the measurement data, it is determined whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device. Steps and
The step of outputting the main system data and
A data processing program comprising causing a computer to execute a step of switching a master-slave relationship between the first gateway device and the second gateway device when the main system data is not received.
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、
前記第1のゲートウェイ装置からの前記計測データと前記第2のゲートウェイ装置からの前記計測データとを比較し、比較した結果に基づいて、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置とを主従の組み合わせになるゲートウェイ装置に設定するステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
The step of determining whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device, and
The step of outputting the main system data and
A step of switching the master-slave relationship between the first gateway device and the second gateway device when the main system data is not received, and
The measurement data from the first gateway device is compared with the measurement data from the second gateway device, and based on the result of the comparison, the first gateway device and the second gateway device are combined. A data processing program characterized by having a computer execute the steps to be set in a gateway device that is a combination of master and slave.
計測値を含む同一の計測データを第1のゲートウェイ装置および第2のゲートウェイ装置の各々から受信するステップと、
前記受信される計測データが主系のゲートウェイ装置から送信されるデータである主系のデータであるか否かを判定するステップと、
前記主系のデータを出力するステップと、
前記主系のデータが受信されない場合に、前記第1のゲートウェイ装置と前記第2のゲートウェイ装置との主従関係を切り替えるステップと、
前記ゲートウェイ装置から送信されるデータに含まれるセキュリティキーコードを解析するステップと、
前記解析されるセキュリティキーコードが特定のセキュリティキーコードであるゲートウェイ装置から送信される計測データを前記主系のデータとして用いることを許可するステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。
A step of receiving the same measurement data including the measurement value from each of the first gateway device and the second gateway device, and
The step of determining whether or not the received measurement data is the main system data which is the data transmitted from the main system gateway device, and
The step of outputting the main system data and
A step of switching the master-slave relationship between the first gateway device and the second gateway device when the main system data is not received, and
The step of analyzing the security key code contained in the data transmitted from the gateway device, and
Data processing characterized by causing a computer to perform a step of permitting the measurement data transmitted from the gateway device whose analyzed security key code is a specific security key code to be used as the main system data. program.
JP2017114611A 2017-06-09 2017-06-09 Server equipment, monitoring system, data processing method, and data processing program Active JP7030429B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017114611A JP7030429B2 (en) 2017-06-09 2017-06-09 Server equipment, monitoring system, data processing method, and data processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017114611A JP7030429B2 (en) 2017-06-09 2017-06-09 Server equipment, monitoring system, data processing method, and data processing program

Publications (3)

Publication Number Publication Date
JP2018206320A JP2018206320A (en) 2018-12-27
JP2018206320A5 JP2018206320A5 (en) 2020-01-30
JP7030429B2 true JP7030429B2 (en) 2022-03-07

Family

ID=64957253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017114611A Active JP7030429B2 (en) 2017-06-09 2017-06-09 Server equipment, monitoring system, data processing method, and data processing program

Country Status (1)

Country Link
JP (1) JP7030429B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12432091B2 (en) * 2020-10-30 2025-09-30 Hitachi Vantara Llc Failover mechanism for IoT gateway

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013143077A (en) 2012-01-12 2013-07-22 Hitachi Ltd Monitoring method for control device and control device monitoring system
JP2016015065A (en) 2014-07-03 2016-01-28 株式会社日立製作所 Process monitoring/control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013143077A (en) 2012-01-12 2013-07-22 Hitachi Ltd Monitoring method for control device and control device monitoring system
JP2016015065A (en) 2014-07-03 2016-01-28 株式会社日立製作所 Process monitoring/control system

Also Published As

Publication number Publication date
JP2018206320A (en) 2018-12-27

Similar Documents

Publication Publication Date Title
CN111835588B (en) In-band network remote measurement bearer flow selection method and system
JP2018077779A (en) Sensor interface apparatus, measurement information communication system, measurement information communication method, and measurement information communication program
TW201738795A (en) Intrusion detection device, intrusion detection method, and intrusion detection program
JP2015154465A (en) Display control apparatus, display control method, and program
JP5880315B2 (en) System management apparatus, system management method, and system management program
JP7030429B2 (en) Server equipment, monitoring system, data processing method, and data processing program
CN111971656B (en) Data processing apparatus
CN113507480A (en) Network equipment, network gate equipment and system, and data transmission and reporting method between networks
JP4466615B2 (en) Operation management system, monitoring device, monitored device, operation management method and program
JP6222759B2 (en) Failure notification device, failure notification method and program
US20070064270A1 (en) Device managing apparatus, device management method, computer program product
JP2025094117A (en) Information collection system, information collection method, and information collection program
JP2019201342A (en) Verification packet generation device, verification system, and verification packet generation program
JP5072880B2 (en) Metadata extraction server, metadata extraction method and program
KR100792241B1 (en) Remote integrated recording method and system
CN110915139A (en) Method, field device and cloud infrastructure for data acquisition
JP2017158175A (en) Data logging apparatus
CN112702319A (en) Access request port standardization method and device, electronic equipment and storage medium
JP6866092B2 (en) Relay device, relay system, relay program, and relay method
WO2020049857A1 (en) Information provision device, central monitoring device, and program
JP2025156838A (en) Server, communication system, control method and computer program
TWI763169B (en) Prediction system and prediction method for event type of cloud data center
JP7120657B2 (en) SERVER, SERVER SYSTEM, TIME SYNCHRONIZATION METHOD AND PROGRAM
JP6939220B2 (en) Data analysis program, data analysis method, and data analysis device
CN119892485A (en) A network security monitoring method and system

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191209

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210629

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210805

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220222

R150 Certificate of patent or registration of utility model

Ref document number: 7030429

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250