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 PDFInfo
- 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
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には、コストの低減とデータの信頼性確保とを両立するための解決策として、計測器およびセンサといった現場機器とクラウド上のサーバを結ぶゲートウェイ装置を二重化する技術が提案されている。
しかしながら、特許文献1に記載の技術では、主従関係の状況によってゲートウェイ装置の動作が切り替えられる必要があるため、システムに適合したゲートウェイ装置の導入、またはゲートウェイ装置へのソフトウェアのセットアップが必要である。すなわち、主従関係に従った動作をゲートウェイ装置に付加する必要がある。
However, in the technique described in
本発明は、上記に鑑みてなされたものであって、ゲートウェイ装置において主従関係に従った動作を付加することなく、ゲートウェイ装置を用いた二重化を図ることができるサーバ装置を得ることを目的とする。 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.
以下に、本発明の実施の形態にかかるサーバ装置、監視システム、データ処理方法、およびデータ処理プログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 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は、プラント、および公共施設などを監視対象とし、かかる監視対象の状態を監視したり監視対象の状態の変化を時系列に表示する表示画面を生成したりする。
FIG. 1 is a diagram showing a configuration example of a monitoring system according to the first embodiment of the present invention. The
かかる監視システム1は、計測データ出力装置21~2nと、第1のゲートウェイ装置31と、第2のゲートウェイ装置32と、サーバ装置4と、データ蓄積装置5とを備える。以下、計測データ出力装置21~2nを計測データ出力装置2と総称する場合があり、第1のゲートウェイ装置31と第2のゲートウェイ装置32とをゲートウェイ装置3と総称する場合がある。
The
計測データ出力装置2とゲートウェイ装置31,32とは、ネットワーク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
計測データ出力装置2は、監視対象に設けられる計測器およびセンサの少なくとも一つから得られる計測値を含む計測データを生成し、生成した計測データを第1のゲートウェイ装置31と第2のゲートウェイ装置32とにそれぞれネットワーク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
監視システム1では、監視目的に応じた種々の計測器および種々のセンサが監視対象に設けられる。計測器は、例えば、雨量計、水位計、および圧力計などであり、センサは、温度センサ、電圧センサ、電流センサ、流量センサ、および位置センサなどであるが、他の計測器および他のセンサであってもよい。
In the
各計測データ出力装置2は、計測器またはセンサによって計測値が得られる毎に、かかる計測値のデータを含む計測データを第1のゲートウェイ装置31と第2のゲートウェイ装置32へ繰り返し送信する。計測データ出力装置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
サーバ装置4は、ネットワーク7に接続されており、かかるネットワーク7がインターネットである場合、サーバ装置4は、クラウド上に配置されたサーバ装置であり、クラウドサーバとも呼ばれる。
When the
かかるサーバ装置4は、第1のゲートウェイ装置31と第2のゲートウェイ装置32の主従関係に基づいて、第1のゲートウェイ装置31と第2のゲートウェイ装置32の各々から受信した計測データのうち一方のデータをデータ蓄積装置5へ出力する。かかるサーバ装置4は、データ送受信部11と、主従判定部12と、設定受付部13と、データ出力部14と、主従切替部15とを備える。
The
データ送受信部11は、各計測データ出力装置2から出力される各計測データをネットワーク7経由で第1のゲートウェイ装置31と第2のゲートウェイ装置32の各々から受信する。
The data transmission /
主従判定部12は、データ送受信部11で受信した計測データが主系のデータであるか従系のデータであるかを判定する。主従判定部12は、ゲートウェイ装置3の主従関係を示す情報である主従関係情報を有しており、かかる主従関係情報に基づいて、データ送受信部11で受信した計測データが主系のデータであるか従系のデータであるかを判定する。
The master-
主従関係情報は、例えば、主従関係の組み合わせである2つのゲートウェイ装置31,32について、各ゲートウェイ装置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
ゲートウェイ装置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
図2に示す二重化設定画面70は、第1のゲートウェイ装置31の識別情報を入力するための入力ボックス71と、第2のゲートウェイ装置32の識別情報を入力するための入力ボックス72と、設定ボタン73とを含む。
The
端末装置8のユーザは、端末装置8における不図示の入力部を操作して、入力ボックス71へ第1のゲートウェイ装置31の識別情報を入力し、入力ボックス72へ第2のゲートウェイ装置32の識別情報を入力した後、設定ボタン73を操作する。これにより、第1のゲートウェイ装置31の識別情報と第2のゲートウェイ装置32の識別情報とを含む二重化設定データが端末装置8からサーバ装置4へ送信される。
The user of the
設定受付部13は、データ送受信部11で二重化設定データが受信されると、かかる二重化設定データに基づいて、主従関係情報を生成する。二重化設定データには、主系および従系を示す情報が含まれていないため、主従判定部12は、ランダムまたは予め設定された規則に基づいて各ゲートウェイ装置3に関連付ける主従フラグを決定する。設定受付部13は、主従判定部12が決定した主従フラグにゲートウェイ装置3の識別情報を関連付けて主従関係情報を生成する。
When the data transmission /
なお、二重化設定画面70は、入力ボックス71,72に代えて、予め設定されたゲートウェイ装置の中から二重化に用いるゲートウェイ装置3を選択するチェックボックスを設けてもよい。
In addition, the
主従判定部12は、第1のゲートウェイ装置31の計測データと第2のゲートウェイ装置32の計測データのうち、最初にデータ送受信部11で受信した計測データを送信したゲートウェイ装置3の識別情報に主従フラグ「1」を関連付けることができる。
The master-
また、主従判定部12は、第1のゲートウェイ装置31の計測データと第2のゲートウェイ装置32の計測データのうち、データ送受信部11で受信する時間が平均的に早い計測データを送信するゲートウェイ装置3の識別情報に主従フラグ「1」を関連付けることができる。これにより、主系のデータが取得されるタイミングを早めることができる。
Further, the master-
なお、二重化設定画面70に主系を指定するチェックボックスまたは選択ボックスを設けることもでき、端末装置8のユーザは、端末装置8における不図示の入力部を操作して、主系のゲートウェイ装置3を決定することができる。この場合、ユーザに指定された主系の情報は、二重化設定データに含まれ、設定受付部13は、二重化設定データに含まれる主系の情報に基づいて、主従関係情報を生成することができる。
A check box or selection box for designating the main system can also be provided on the
主従判定部12は、計測データに付加されたゲートウェイ装置3の識別情報に基づいて、主系のゲートウェイ装置3から送信される計測データが主系のデータであると判定し、従系のゲートウェイ装置3から送信される計測データが従系のデータであると判定する。
The master-
データ出力部14は、主従判定部12で判定された主系データをデータ蓄積装置5へ出力し、主従判定部12で判定された従系データはデータ蓄積装置5へ出力しない。これにより、2つのゲートウェイ装置31,32から送信される計測データのうち一方の計測データが選択されてデータ蓄積装置5へ出力される。
The
データ蓄積装置5は、データ受信部21と、データ格納処理部22と、データ蓄積部23とを備える。データ受信部21は、データ出力部14から出力される計測データを受信する。データ格納処理部22は、データ受信部21によって受信された計測データをデータ蓄積部23に蓄積する。これにより、各計測データ出力装置2から送信される計測データが繰り返しデータ蓄積装置5に蓄積される。
The
データ蓄積装置5に蓄積された計測データは、端末装置8の要求に基づき、監視システム1に設けられた不図示の処理装置で監視用のデータとして処理される。かかる処理装置は、端末装置8の要求に従った画面形式のデータを生成して端末装置8へ送信することができ、端末装置8は、処理装置から送信されるデータに基づいて、種々の画面表示形式で計測データに基づく監視画面を表示することができる。端末装置8に表示される画面の表示形式として、例えば、監視システム1で監視している範囲を模式図とする表示形式、および計測データに含まれる計測値を時系列に示すグラフを表示する表示形式などがある。
The measurement data stored in the
主従切替部15は、予め設定された切替条件が満たされる場合に、第1のゲートウェイ装置31と第2のゲートウェイ装置32との主従関係を切り替える。主従切替部15は、各ゲートウェイ装置3に関連付けられた主従フラグを切り替えることで主従関係の切り替えを行う。
The master-
例えば、第1のゲートウェイ装置31の識別情報に主従フラグ「1」が関連付けられ、第2のゲートウェイ装置32の識別情報に主従フラグ「0」が関連付けられているとする。この場合、主従切替部15は、第1のゲートウェイ装置31の識別情報に関連付けられる主従フラグを「1」から「0」へ変更し、第2のゲートウェイ装置32の識別情報に関連付けられる主従フラグを「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-
切替条件は、データ送受信部11における主系のデータの受信状態の条件であり、例えば、主系のデータが一定回数以上連続して受信されないこと、主系のデータが一定時間以上連続して受信されないこと、または主系のデータが一定頻度で受信されないことを含む。
The switching condition is a condition of the reception state of the main system data in the data transmission /
主従切替部15は、計測データ出力装置2毎に、データ送受信部11での計測データの受信時刻の履歴である受信履歴の情報を記憶し、記憶している受信履歴の情報に基づいて、計測データ出力装置2毎の計測データの送信間隔を判定することができる。
The master-
主従切替部15は、判定した送信間隔に基づいて、主系のデータが一定回数以上連続して正常に受信されないことを判定すること、および主系のデータが一定頻度で正常に受信されないことを判定することができる。また、主従切替部15は、判定した送信間隔よりもk倍以上の時間が経過しても主系のデータが受信されない場合に、主系のデータが一定時間以上連続して受信されないと判定することができる。なお、「k」は1以上の整数である。
Based on the determined transmission interval, the master-
主従切替部15は、主系のデータが切替条件を満たす場合であっても、データ送受信部11における従系のデータの受信状態が主系のデータの受信状態よりも悪い場合には、主従関係を切り替えないこともできる。また、主従切替部15は、端末装置8からの切り替え停止要求があった場合、主従関係を切り替える処理を停止することができる。
Even if the master system data satisfies the switching condition, the master-
このように、サーバ装置4は、主系のゲートウェイ装置3から送信される計測データをデータ蓄積装置5へ蓄積させ、また、データ送受信部11における主系のデータの受信状態に基づいて、ゲートウェイ装置3の主従関係を切り替えることができる。したがって、各ゲートウェイ装置3において主従関係に従った動作を付加することなく、複数のゲートウェイ装置3を用いた二重化を図ることができる。
In this way, the
つづいて、監視システム1の動作を、フローチャートを用いて説明する。図3は、実施の形態1にかかる監視システム1の処理の一例を示すフローチャートである。
Next, the operation of the
図3に示すように、監視システム1の計測データ出力装置2は、計測器およびセンサの少なくとも一つから計測値を得た場合、かかる計測値のデータを含む計測データを第1のゲートウェイ装置31と第2のゲートウェイ装置32へ送信する計測データ送信処理を実行する(ステップS11)。
As shown in FIG. 3, when the measurement data output device 2 of the
次に、監視システム1のゲートウェイ装置3は、計測データ出力装置2からネットワーク6を介して計測データを受信した場合、受信した計測データをサーバ装置4へネットワーク7を介して送信する計測データ転送処理を行う(ステップS12)。
Next, when the gateway device 3 of the
次に、監視システム1のサーバ装置4は、複数のゲートウェイ装置3の各々から送信される同一の計測データのうち一つの計測データを、ゲートウェイ装置3の主従関係に基づいて選択し、選択した計測データを主系のデータとしてデータ蓄積装置5へ出力する計測データ選択処理を行う(ステップS13)。かかる計測データ選択処理は、図4に示すステップS21~S23に示す処理であり、後で詳述する。
Next, the
次に、監視システム1のデータ蓄積装置5は、サーバ装置4から出力される計測データを受信し、受信した計測データをデータ蓄積部23に蓄積する計測データ蓄積処理を実行する(ステップS14)。
Next, the
図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 /
サーバ装置4の主従判定部12は、主従関係情報に基づき、データ送受信部11によって受信された計測データが主系のデータであるか否かを判定する(ステップS22)。データ出力部14は、データ送受信部11によって受信された計測データが主系のデータであると判定された場合(ステップS22:Yes)、データ送受信部11によって受信された計測データを主系のデータとしてデータ蓄積装置5へ出力する(ステップS23)。
The master-
また、データ出力部14は、データ送受信部11によって受信された計測データが主系のデータではないと判定された場合(ステップS22:No)、ステップS23の処理を行わない。したがって、主系のデータではなく従系のデータであると判定された計測データは、データ蓄積装置5へ出力されない。なお、図4に示す処理は、ゲートウェイ装置3から送信されてデータ送受信部11によって受信されるすべての計測データに対して実行される。
Further, when it is determined that the measurement data received by the data transmission /
次に、サーバ装置4の主従切替部15が行う主従切替処理について、図5に示すフローチャートを用いて説明する。図5は、主従切替処理の一例を示すフローチャートである。
Next, the master-slave switching process performed by the master-
図5に示すように、主従切替部15は、予め設定された切替条件を満たすかどうかを判定する(ステップS31)。主従切替部15は、予め設定された切替条件を満たすと判定した場合(ステップS31:Yes)、ゲートウェイ装置3の主従関係を切り替える(ステップS32)。主従切替部15は、予め設定された切替条件を満たさないと判定した場合(ステップS31:No)、ゲートウェイ装置3の主従関係の切り替えを行わない。
As shown in FIG. 5, the master-
図6は、実施の形態1にかかるサーバ装置4のハードウェア構成の一例を示す図である。図6に示すように、サーバ装置4は、プロセッサ101と、メモリ102と、インタフェース回路103とを備えるコンピュータを含む。
FIG. 6 is a diagram showing an example of the hardware configuration of the
プロセッサ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
メモリ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
以上のように、実施の形態1にかかるサーバ装置4は、データ受信部の一例であるデータ送受信部11と、主従判定部12と、データ出力部14と、主従切替部15とを備える。データ送受信部11は、計測値を含む同一の計測データを第1のゲートウェイ装置31および第2のゲートウェイ装置32の各々から受信する。主従判定部12は、データ送受信部11で受信される計測データが主系のゲートウェイ装置3から送信されるデータである主系のデータであるか否かを判定する。データ出力部14は、主従判定部12によって判定された主系のデータを出力する。主従切替部15は、データ送受信部11によって主系のデータが受信されない場合に、第1のゲートウェイ装置31と第2のゲートウェイ装置32との主従関係を切り替える。これにより、各ゲートウェイ装置3において主従関係に従った動作を付加することなく、複数のゲートウェイ装置3を用いた二重化を図ることができる。
As described above, the
実施の形態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
図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
主従判定部12Aは、データ送受信部11で受信される計測データと、かかる計測データを送信したゲートウェイ装置3の情報とをデータ整合部16へ出力する。データ整合部16は、主従判定部12Aから出力される計測データを時系列にゲートウェイ装置3単位でバッファリングする。データ整合部16におけるバッファリング量は、主系のデータの不連続性を解消することができるように予め設定された量に設定される。
The master-
主従判定部12Aは、主従切替部15によってゲートウェイ装置3の主従関係が切り替えられた場合、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータと、かかる主系のデータを送信したゲートウェイ装置3の情報とをデータ整合部16へ出力する。主系のデータは、主従関係の切り替えによって主系になったゲートウェイ装置3から送信される計測データである。
When the master-slave relationship of the gateway device 3 is switched by the master-
データ整合部16は、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータと、バッファリングしている主系となったゲートウェイ装置3の計測データとを比較し、主系のデータの重複および欠落を判定する。
The
主系のデータの重複および欠落は、データ送受信部11において2つのゲートウェイ装置31,32から同一の計測データが時間差で受信されることによって生じる。主系のデータの重複は、主従関係の切り替え直前に受信した主系のデータと主従関係の切り替え直後に受信した主系のデータが同一である場合に生じる。
Duplication and omission of main system data occur when the same measurement data is received from two
また、主系のデータの欠落は、主従関係の切り替え直前に受信された主系のデータに時系列的に連続するデータが、主従関係の切り替えにより主系になるゲートウェイ装置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
データ整合部16は、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータに含まれる時刻のデータと、バッファリングしている主系のデータに含まれる時刻のデータとが一致するか否かを判定する。以下、説明の便宜上、主従関係の切り替え直後に受信された主系のデータに含まれる時刻のデータを第1時刻のデータと記載し、バッファリングしている主系のデータに含まれる時刻のデータを第2時刻のデータと記載する。
The
データ整合部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
また、データ整合部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
なお、上述した例では、データ整合部16は、主系のデータの重複および欠落を計測データに含まれる時刻のデータに基づいて判定するが、主系のデータの重複および欠落を判定することができれば、時刻のデータを用いなくてもよい。例えば、データ整合部16は、計測データに計測値の取得順番を示すデータが含まれる場合、時刻のデータの場合と同様の手順で、取得順番を示すデータに基づいて主系のデータの重複および欠落を判定することができるようにしてもよい。
In the above example, the
つづいて、サーバ装置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-
主従判定部12Aは、ステップS41で受信された計測データが主系のデータであると判定した場合(ステップS43:Yes)、ステップS41で受信された計測データをデータ整合部16へ出力する。データ整合部16は、主従関係の切り替え直後に受信された主系のデータと、バッファリングしている主系となったゲートウェイ装置3の計測データとを比較し、主系のデータが欠落しているかどうかを判定する(ステップS44)。
When the master-
データ整合部16は、主系のデータが欠落していると判定した場合(ステップS44:Yes)、バッファリングしている計測データから欠落していると判定した計測データを抽出し、抽出した計測データを主従判定部12Aへ出力する。主従判定部12Aは、データ整合部16から主系のデータとして出力されたデータを主系のデータとして時系列の順番でデータ出力部14に出力させる(ステップS45)。
When the
また、データ整合部16は、主系のデータが欠落していないと判定した場合(ステップS44:No)、主系のデータが重複しているか否かを判定する(ステップS46)。データ整合部16が主系のデータが重複していないと判定した場合(ステップS46:No)、主従判定部12Aは、主従関係の切り替え直後にデータ送受信部11によって受信された計測データを主系のデータとしてデータ蓄積装置5へ出力する(ステップS47)。
Further, when the
データ整合部16は、主系のデータが重複していると判定した場合(ステップS46:Yes)、主系のデータの重複がある旨を示す重複情報を主従判定部12Aへ通知する。主従判定部12Aは、データ整合部16から重複情報を取得すると、ステップS47の処理を行わない。これにより、主従関係の切り替え直後にデータ送受信部11で受信された主系のデータはデータ出力部14からデータ蓄積装置5へ出力されない。
When the
ステップ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-
ステップ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
以上のように、実施の形態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 /
実施の形態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
図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
ゲートウェイ制御部17は、データ送受信部11を介してゲートウェイ装置3へ電源オン要求または電源オフ要求を送信することで、ゲートウェイ装置3の動作を制御することができる。例えば、ゲートウェイ制御部17は、主従切替部15によって従系から主系へ切り替えられたゲートウェイ装置3へデータ送受信部11を介して電源オン要求を送信する。ゲートウェイ装置3は、電源オン要求を受信すると、動作を開始し、計測データのサーバ装置4Bへの転送処理を開始する。
The
また、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられたゲートウェイ装置3へデータ送受信部11を介して電源オフ要求を送信する。ゲートウェイ装置3は、電源オフ要求を受信すると、動作を停止し、計測データのサーバ装置4Bへの転送処理を中止する。これにより、従系のゲートウェイ装置3から計測データの送信が停止されるため、サーバ装置4Bによる計測データの処理負荷を低減することができる。
Further, the
なお、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられるタイミングで、電源オン要求を主系になるゲートウェイ装置3へ送信し、電源オフ要求を従系となるゲートウェイ装置3へ送信するが、電源オン要求および電源オフ要求の送信タイミングは、上述した例に限定されない。
The
例えば、ゲートウェイ制御部17は、主従切替部15によって主系から従系へ切り替えられる直前のタイミングで電源オン要求を主系になるゲートウェイ装置3へ送信し、主従切替部15によって主系から従系へ切り替えられた後に電源オフ要求を従系となるゲートウェイ装置3へ送信することもできる。例えば、計測データが1回でも受信できない場合、ゲートウェイ制御部17は、電源オン要求を従系のゲートウェイ装置3へ送信することができる。
For example, the
また、ゲートウェイ制御部17は、過去に主系から従系へ切り替えられた回数が予め設定された閾値以上になったゲートウェイ装置3へは電源オフ要求を送信しないこともできる。また、ゲートウェイ制御部17は、ゲートウェイ装置3の稼動時間が予め設定された時間以上である場合に限り、電源オフ要求を送信することもできる。
Further, the
なお、ゲートウェイ制御部17は、ゲートウェイ装置3をオフにするか否かを制御することに代えて、ゲートウェイ装置3をスリープ状態にするか否かを制御することもできる。この場合、ゲートウェイ制御部17は、電源オフ要求に代えてスリープ開始要求を送信し、電源オン要求に代えてスリープ停止要求を送信する。ゲートウェイ装置3は、スリープ開始要求を受信するとスリープ状態へ移行し、スリープ停止要求を受信するとスリープ状態を解除し動作状態へ移行する。
The
つづいて、サーバ装置4Bの動作を、フローチャートを用いて説明する。図10は、サーバ装置4Bによるゲートウェイ制御処理の一例を示すフローチャートである。図10に示すように、ゲートウェイ制御部17は、主従切替部15によって主従関係の切り替えが行われるか否かを判定する(ステップS51)。
Subsequently, the operation of the
ゲートウェイ制御部17は、主従関係の切り替えが行われると判定した場合(ステップS51:Yes)、主従関係の切り替えによって従系から主系になるゲートウェイ装置3へ電源オン要求を送信する(ステップS52)。また、ゲートウェイ制御部17は、主従関係の切り替えによって主系から従系になるゲートウェイ装置3へ電源オフ要求を送信する(ステップS53)。
When the
ゲートウェイ制御部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
実施の形態3にかかるサーバ装置4Bのハードウェア構成例は、図6に示すサーバ装置4と同じである。プロセッサ101は、メモリ102に記憶されたプログラムを読み出して実行することによって、上述したサーバ装置4Aの機能に加え、ゲートウェイ制御部17の機能を実行することができる。
The hardware configuration example of the
以上のように、実施の形態3にかかるサーバ装置4Bは、第1のゲートウェイ装置31および第2のゲートウェイ装置32のうち従系のゲートウェイ装置3からの計測データの送信を停止させるゲートウェイ制御部17を備える。これにより、従系のゲートウェイ装置3から計測データの送信が停止されるため、サーバ装置4Bによる計測データの処理負荷を低減することができる。
As described above, the
実施の形態4.
実施の形態4では、主従関係の組み合わせになるゲートウェイ装置3を自動的に検出する処理を有する点で、実施の形態1~3と異なる。以下においては、実施の形態3と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態3の監視システム1Bと異なる点を中心に説明する。
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
図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 /
主従判定部12Cは、主従関係情報を有しない場合、主従関係情報を有しない旨を主従紐付部18へ通知する。主従紐付部18は、主従判定部12Cから、主従関係情報を有しない旨を受けると、自動的に主従関係情報を生成する主従関係情報生成処理を実行する。
If the master-
主従紐付部18は、主従関係情報生成処理において、第1のゲートウェイ装置31からの計測データと第2のゲートウェイ装置32からの計測データとを比較し、比較した結果に基づいて、第1のゲートウェイ装置31と第2のゲートウェイ装置32とが主従の組み合わせになるゲートウェイ装置3であるかを判定する。
In the master-slave relationship information generation process, the master-
主従紐付部18は、計測データ同士の計測値の時系列的な変化の傾向が同じである場合に、第1のゲートウェイ装置31と第2のゲートウェイ装置32とが主従の組み合わせになるゲートウェイ装置3であると判定することができる。
The master-
例えば、主従紐付部18は、第1のゲートウェイ装置31からの計測データを構成するバイナリデータと第2のゲートウェイ装置32からの計測データを構成するバイナリデータとを比較し、2つのバイナリデータ同士の一致度が予め設定された閾値以上であるか否かを判定する。
For example, the master-
主従紐付部18は、2つのバイナリデータ同士の一致度が予め設定された閾値以上であると判定された回数が、予め設定された回数Nth以上である場合に、主従紐付部18は、同じ計測値が時系列にゲートウェイ装置31,32から送信されていると判定する。この場合、主従紐付部18は、第1のゲートウェイ装置31と第2のゲートウェイ装置32とが主従の組み合わせになるゲートウェイ装置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-
このように、主従紐付部18は、バイナリデータを比較することで主従の組み合わせになるゲートウェイ装置3を判定することから、計測値を計測データから読み出して比較する場合に比べ、迅速かつ容易にデータの比較を行うことができる。なお、上述した「Nth」は、2以上の値であるが、Nth=1にしてもよい。
In this way, since the master-
なお、計測データには、ゲートウェイ装置3から送信されるパケットのペイロードに含まれており、主従紐付部18は、ペイロードのバイナリデータを上述した比較の対象とすることで、計測データのバイナリデータを比較することができる。なお、主従紐付部18は、ゲートウェイ装置3から送信されるパケット全体のバイナリデータを上述した比較の対象とすることもできる。
The measurement data is included in the payload of the packet transmitted from the gateway device 3, and the master-
また、主従紐付部18は、計測値のデータおよび時刻のデータを上述した比較対象として計測データから読み出し、読み出した計測値と時刻の組み合わせ同士を比較することもできる。主従紐付部18は、互いの計測値および時刻が一致する回数が、予め設定された回数Nth以上である場合に、第1のゲートウェイ装置31と第2のゲートウェイ装置32とを主従の組み合わせになるゲートウェイ装置3と判定することができる。
Further, the master-
なお、主従紐付部18は、主従判定部12Cが主従関係情報を有している場合であっても、データ送受信部11においてデータが一定回数以上受信されない場合、主従関係情報を削除することができる。これにより、主従関係を有する2つのゲートウェイ装置3の一つが交換のために削除された場合、主従紐付部18は、主従判定部12Cによって主従関係情報が削除された後に、主従関係情報を再生成することができる。
Even if the master-
つづいて、サーバ装置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-
主従紐付部18は、主従関係情報がないと判定した場合(ステップS61:Yes)、複数のゲートウェイ装置3から計測データが受信されたか否かを判定する(ステップS62)。主従紐付部18は、複数のゲートウェイ装置3から計測データが受信されたと判定した場合(ステップS62:Yes)、受信した計測データ同士を比較し(ステップS63)、比較した結果に基づいて、計測データ同士の計測値の時系列的な変化の傾向が同じであるか否かを判定する(ステップS64)。
When the master-
主従紐付部18は、計測データ同士の計測値の時系列的な変化の傾向が同じであると判定した場合(ステップS64:Yes)、計測値の時系列的な変化の傾向が同じである計測データを送信する2つのゲートウェイ装置3の識別情報を含む主従関係情報を生成する(ステップS65)。
When the master-
主従関係情報があると判定した場合(ステップ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-
実施の形態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
以上のように、実施の形態4にかかるサーバ装置4Cは、第1のゲートウェイ装置31からの計測データと第2のゲートウェイ装置32からの計測データとを比較し、比較した結果に基づいて、第1のゲートウェイ装置31と第2のゲートウェイ装置32とを主従の組み合わせになるゲートウェイ装置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
実施の形態5.
実施の形態5では、特定のセキュリティキーコードを送信しないゲートウェイ装置からの計測データを主系のデータとして用いない処理を有する点で、実施の形態1~4と異なる。以下においては、実施の形態4と同様の機能を有する構成要素については同一符号を付して説明を省略し、実施の形態4の監視システム1Cと異なる点を中心に説明する。
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のゲートウェイ装置3D1および第2のゲートウェイ装置3D2は、キーコード生成部33を備える。以下、第1のゲートウェイ装置3D1および第2のゲートウェイ装置3D2を総称してゲートウェイ装置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
キーコード生成部33は、ゲートウェイ装置3Dの固有情報に基づいてセキュリティキーコードを生成する。ゲートウェイ装置3Dの固有情報は、例えば、ゲートウェイ装置3Dの製造番号またはMACアドレスである。なお、セキュリティキーコードは、ゲートウェイ装置3D毎に固有のコードであればよく、他の方法で生成されてもよい。
The key
データ転送部32は、データ受信部31で受信された計測データにキーコード生成部33で生成されたセキュリティキーコードを付加したデータをサーバ装置4Dへ送信する。以下、セキュリティキーコードを単にキーコードと記載する場合がある。
The
実施の形態5にかかる監視システム1Dのサーバ装置4Dは、データ送受信部11と、主従判定部12Cと、設定受付部13と、データ出力部14と、主従切替部15と、データ整合部16と、ゲートウェイ制御部17と、主従紐付部18と、コード解析部19と、許可部の一例であるデータ通信許可部20とを備える。
The server device 4D of the
コード解析部19は、ゲートウェイ装置3Dから送信されるデータに含まれるキーコードを解析する。データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードであるゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可する。また、データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードでないゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可しない。
The
データ通信許可部20は、サーバ装置4Dで計測データの受け付けを許可するゲートウェイ装置3Dのキーコードを特定のキーコードとして記憶しており、記憶したキーコードに基づいて、上述した許可および不許可の判定を行う。なお、設定受付部13は、主従関係情報の場合と同様に、端末装置8から送信されるコード設定情報に含まれるキーコードを特定のキーコードとして記憶することができる。
The data
なお、ゲートウェイ装置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 /
データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードであると判定した場合(ステップS73:Yes)、ステップS74へ移行することで、データ送受信部11によって受信された計測データの使用を許可する。
When the data
データ通信許可部20は、コード解析部19によって解析されるキーコードが特定のキーコードではないと判定した場合(ステップS73:No)、ステップS74への移行を行わないことで、データ送受信部11によって受信された計測データの使用を許可しない。
When the data
実施の形態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
以上のように、実施の形態5にかかるサーバ装置4Dは、ゲートウェイ装置3Dから送信されるデータに含まれるキーコードを解析するコード解析部19と、コード解析部19によって解析されるキーコードが特定のキーコードであるゲートウェイ装置3Dから送信される計測データを主系のデータとして用いることを許可する通信許可部とを備える。これにより、サーバ装置4Dは、データ通信の許可対象として予め設定されたゲートウェイ装置3Dのみと有効な通信可能になるため、セキュアな二重化構成を容易かつ低コストで構築することができる。
As described above, in the server device 4D according to the fifth embodiment, the
以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 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,21~2n 計測データ出力装置、3,31,32,3D,3D1,3D2 ゲートウェイ装置、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のゲートウェイ装置との主従関係を切り替える主従切替部と、を備える
ことを特徴とするサーバ装置。 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のゲートウェイ装置とを主従の組み合わせになるゲートウェイ装置に設定する主従紐付部と、を備える
ことを特徴とするサーバ装置。 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のゲートウェイ装置との主従関係を切り替える主従切替部と、
前記ゲートウェイ装置から送信されるデータに含まれるセキュリティキーコードを解析するコード解析部と、
前記コード解析部によって解析されるセキュリティキーコードが特定のセキュリティキーコードであるゲートウェイ装置から送信される計測データを前記主系のデータとして用いることを許可する許可部と、を備える
ことを特徴とするサーバ装置。 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から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のゲートウェイ装置と、
前記第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のゲートウェイ装置との主従関係を切り替えるステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。 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のゲートウェイ装置とを主従の組み合わせになるゲートウェイ装置に設定するステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。 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のゲートウェイ装置との主従関係を切り替えるステップと、
前記ゲートウェイ装置から送信されるデータに含まれるセキュリティキーコードを解析するステップと、
前記解析されるセキュリティキーコードが特定のセキュリティキーコードであるゲートウェイ装置から送信される計測データを前記主系のデータとして用いることを許可するステップと、をコンピュータに実行させる
ことを特徴とするデータ処理プログラム。 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.
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)
| 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)
| 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 |
-
2017
- 2017-06-09 JP JP2017114611A patent/JP7030429B2/en active Active
Patent Citations (2)
| 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 |