JP2009064450A - Remote control monitoring system - Google Patents

Remote control monitoring system Download PDF

Info

Publication number
JP2009064450A
JP2009064450A JP2008259925A JP2008259925A JP2009064450A JP 2009064450 A JP2009064450 A JP 2009064450A JP 2008259925 A JP2008259925 A JP 2008259925A JP 2008259925 A JP2008259925 A JP 2008259925A JP 2009064450 A JP2009064450 A JP 2009064450A
Authority
JP
Japan
Prior art keywords
gateway
center server
command
processing unit
polling
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.)
Granted
Application number
JP2008259925A
Other languages
Japanese (ja)
Other versions
JP4858524B2 (en
Inventor
Yoshihisa Honma
義久 本間
Yasuhiro Yanagi
康裕 柳
Takeshi Wanaka
剛 和中
Takeshi Ueno
武史 上野
Toshinobu Kawasaki
利信 河崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Electric Works Co Ltd filed Critical Panasonic Electric Works Co Ltd
Priority to JP2008259925A priority Critical patent/JP4858524B2/en
Publication of JP2009064450A publication Critical patent/JP2009064450A/en
Application granted granted Critical
Publication of JP4858524B2 publication Critical patent/JP4858524B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a remote control monitoring system with high reliability to improve security in a network. <P>SOLUTION: A gateway 1 performs polling using an HTTP to a center server 2. The center server 2 transmits the command of a control request or a monitor request to the gateway 1 by a response packet in response to the polling. When receiving the control request command by the response packet, the gateway 1 transmits a control-request response command for confirming the reception by a request packet. When receiving the monitor request command, the gateway 1 transmits a monitor-request response command that indicates the change of state of a monitor-object apparatus 5 connected to a local bus 4, by the request packet. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、インターネットに接続されたネット端末を用いて住宅等に設置された機器の制御や監視を行う遠隔制御監視システムに関する。   The present invention relates to a remote control monitoring system for controlling and monitoring a device installed in a house or the like using a network terminal connected to the Internet.

従来、宅内に設けてある電気機器をインターネット上のパソコン等のネット端末で監視するために、ゲートウェイ装置を通じてネット端末へ監視の情報を提供する遠隔監視システムが提供されている。(特許文献1)
ところでこのようなシステムでは、ネット端末とゲートウェイとの間の情報授受をセンターサーバーを介して行う場合が多く、このようなシステムでは例えば、HTTP(Hyper Text Transfer Protocol)を使用してセンターサーバとゲートウェイ双方向でコマンドの通信を行う通信方法が採用されるのが通例である。
2. Description of the Related Art Conventionally, a remote monitoring system that provides monitoring information to a network terminal through a gateway device has been provided in order to monitor an electrical device provided in a home with a network terminal such as a personal computer on the Internet. (Patent Document 1)
By the way, in such a system, information exchange between the network terminal and the gateway is often performed via the center server. In such a system, for example, the center server and the gateway using HTTP (Hyper Text Transfer Protocol) is used. A communication method in which commands are communicated bidirectionally is usually adopted.

この通信方法を採用した、従来システムは、例えば図17に示すようにゲートウェイ1にはHTTPサーバ部100を実装し、センターサーバ2にはWebブラウザを搭載したパソコンや携帯電話機(ブラウザフォン)からなるネット端末3に対応するためのHTTPサーバ部200と、ゲートウェイ1側のHTTPサーバ部100に対応するHTTPクライアント部201とを実装していた。   For example, as shown in FIG. 17, the conventional system employing this communication method includes an HTTP server unit 100 mounted on the gateway 1 and a personal computer or mobile phone (browser phone) mounted with a Web browser on the center server 2. The HTTP server unit 200 for supporting the network terminal 3 and the HTTP client unit 201 corresponding to the HTTP server unit 100 on the gateway 1 side are mounted.

そしてこの従来システムにより機器の遠隔制御や監視を行う遠隔制御監視システムを構築した場合には、センターサーバ2のHTTPサーバ部200に対してネット端末3からはHTTPのリクエストパケット(P1)でネット端末3から制御や監視の要求情報が送られ、またレスポンスパケット(P2)でHTTPサーバ部200からネット端末3に監視情報等が送信されるようになっている。   When a remote control monitoring system for remote control and monitoring of devices is constructed using this conventional system, the network terminal 3 sends an HTTP request packet (P1) to the HTTP server unit 200 of the center server 2 using the HTTP request packet (P1). 3, control information and control request information are sent from the HTTP server unit 200 to the network terminal 3 in response packet (P2).

一方センターサーバ2のHTTPクライアント部201によりゲートウェイ1側のHTTPサーバ部100に対して制御や監視の要求コマンドがHTTPのリクエストパケット(P3)でゲートウェイ1側へ、また、HTTPのレスポンスパケット(P4)で制御要求応答情報や監視要求応答情報がゲートウェイ1からセンターサーバ2側へ送信されるようになっている。
特開2002−315234号公報
On the other hand, the HTTP client unit 201 of the center server 2 sends a control or monitoring request command to the HTTP server unit 100 on the gateway 1 side to the gateway 1 side with an HTTP request packet (P3), and an HTTP response packet (P4). Thus, control request response information and monitoring request response information are transmitted from the gateway 1 to the center server 2 side.
JP 2002-315234 A

ところで図17で示すような従来例では、ゲートウェイ1でのリソース消費(ゲートウェイ1を構成するCPU、ディスク容量、メモリ容量)が大きくなるという問題が有り、またゲートウェイの受信ポートを開く必要が有るため、セキュリティの確保が難しいと言う問題が有った。   However, in the conventional example as shown in FIG. 17, there is a problem that resource consumption (CPU, disk capacity, memory capacity constituting the gateway 1) is increased, and it is necessary to open the reception port of the gateway. There was a problem that it was difficult to ensure security.

本発明は、上記の点に鑑みて為されたもので、その目的とするところはネットワークセキュリティ性の向上が図れた信頼性の高い遠隔制御監視システムを提供することに有る。   The present invention has been made in view of the above points, and an object of the present invention is to provide a highly reliable remote control monitoring system capable of improving network security.

請求項1の遠隔制御監視システムの発明では、インターネットに接続されたインターネット端末に対してユーザインターフェースを提供するWebユーザインターフェース処理部と、インターネット端末のWeb画面から制御・監視の操作が行われ、インターネットを通じて制御・監視の要求情報が送られてくると、これらの要求情報を所定形式のコマンドに置き換えるコマンド処理部と、コマンド処理部から上記コマンドが与えられるとともにインターネットに接続されたゲートウェイとの間のコマンド通信処理を行うゲートウェイ通信処理部とを備えたセンターサーバと、上記センターサーバとの間のコマンド通信処理を行うセンターサーバ通信処理部と、制御・監視の対象機器との間でローカルバスを介してコマンド通信処理を行うローカル伝送通信処理部とを備えた上記ゲートウェイと、上記ゲートウェイのローカル伝送通信処理部を通じて送られてくるコマンドにより制御され、若しくは状態情報を上記ゲートウェイのローカル伝送通信処理部へ返す上記対象機器とから構成され、上記ゲートウェイのセンターサーバ通信処理部によりセンターサーバに対して繰り返しポーリングを行い、センターサーバのゲートウェイ通信処理部では上記ポーリング毎に、ゲートウェイへ送信するコマンドがコマンド処理部から与えられているか否かをチェックし、上記コマンドが与えられていれば当該コマンドをセットし、上記ポーリングのレスポンスをゲートウェイに送信し、ゲートウェイのセンターサーバ通信処理部は、ポーリング周期の設定値を書き込んだ設定ファイルが格納されている記憶部を具備し、当該設定値に基づく周期で上記ポーリングを行い、センターサーバでは、上記ポーリングのレスポンスとして上記設定値を送信することで上記設定ファイルの上記設定値を変更自在に書き込むことを特徴とする。   According to the first aspect of the remote control monitoring system of the present invention, a Web user interface processing unit that provides a user interface to an Internet terminal connected to the Internet, and a control / monitoring operation are performed from the Web screen of the Internet terminal. Control / monitoring request information is sent through the command processing unit that replaces the request information with a command in a predetermined format, and the command processing unit gives the command and the gateway connected to the Internet. A local server is connected between a center server having a gateway communication processing unit that performs command communication processing, a center server communication processing unit that performs command communication processing with the center server, and a control / monitoring target device. Command communication processing The gateway including a local transmission communication processing unit, and the target device controlled by a command transmitted through the local transmission communication processing unit of the gateway or returning status information to the local transmission communication processing unit of the gateway. Whether the center server communication processing unit of the gateway repeatedly polls the center server, and a command to be transmitted to the gateway is given from the command processing unit for each polling in the gateway communication processing unit of the center server. If the above command is given, the command is set, the polling response is sent to the gateway, and the center server communication processing unit of the gateway stores the setting file in which the setting value of the polling cycle is written The center server performs polling at a cycle based on the set value, and the center server writes the set value as a response to the polling so that the set value of the set file can be freely changed. It is characterized by that.

請求項1の遠隔制御監視システムの発明は、インターネットに接続されたインターネット端末に対してユーザインターフェースを提供するWebユーザインターフェース処理部と、インターネット端末のWeb画面から制御・監視の操作が行われ、インターネットを通じて制御・監視の要求情報が送られてくると、これらの要求情報を所定形式のコマンドに置き換えるコマンド処理部と、コマンド処理部から上記コマンドが与えられるとともにインターネットに接続されたゲートウェイとの間のコマンド通信処理を行うゲートウェイ通信処理部とを備えたセンターサーバと、上記センターサーバとの間のコマンド通信処理を行うセンターサーバ通信処理部と、制御・監視の対象機器との間でローカルバスを介してコマンド通信処理を行うローカル伝送通信処理部とを備えた上記ゲートウェイと、上記ゲートウェイのローカル伝送通信処理部を通じて送られてくるコマンドにより制御され、若しくは状態情報を上記ゲートウェイのローカル伝送通信処理部へ返す上記対象機器とから構成され、上記ゲートウェイのセンターサーバ通信処理部によりセンターサーバに対して繰り返しポーリングを行い、センターサーバのゲートウェイ通信処理部では上記ポーリング毎に、ゲートウェイへ送信するコマンドがコマンド処理部から与えられているか否かをチェックし、上記コマンドが与えられていれば当該コマンドをセットし、上記ポーリングのレスポンスをゲートウェイに送信し、ゲートウェイのセンターサーバ通信処理部は、ポーリング周期の設定値を書き込んだ設定ファイルが格納されている記憶部を具備し、当該設定値に基づく周期で上記ポーリングを行い、センターサーバでは、上記ポーリングのレスポンスとして上記設定値を送信することで上記設定ファイルの上記設定値を変更自在に書き込むので、制御・監視対象の機器をインターネットに接続されるネット端末から遠隔に制御・監視できるシステムを提供できるものであって、ゲートウェイからセンターサーバに対してポーリングを行い、そのレスポンスでコマンドをセンターサーバから受け取ることで、ルータ等が介在し、そのファイヤーウオールが設定されていてもコマンドを受け取ることができ、そのためルータの設定などを行う必要がなく、施工性が向上し、またゲートウェイの受信ポートが不要となるためネットワークセキュリティ性を向上させることができ、信頼性の高い遠隔制御監視システムを実現できる。また、センターサーバの負荷が増大したときにセンターサーバから上記ポーリングのレスポンスとして上記設定値を送信しゲートウェイのポーリング周期を変更することで、センターサーバの負荷を軽減することができる。   The invention of the remote control monitoring system according to claim 1 includes a Web user interface processing unit that provides a user interface to an Internet terminal connected to the Internet, and a control / monitoring operation performed from a Web screen of the Internet terminal. Control / monitoring request information is sent through the command processing unit that replaces the request information with a command in a predetermined format, and the command processing unit gives the command and the gateway connected to the Internet. A local server is connected between a center server having a gateway communication processing unit that performs command communication processing, a center server communication processing unit that performs command communication processing with the center server, and a control / monitoring target device. Command communication processing And the target device which is controlled by a command sent through the local transmission communication processing unit of the gateway or returns status information to the local transmission communication processing unit of the gateway. Whether the center server communication processing unit of the gateway repeatedly polls the center server, and a command to be transmitted to the gateway is given from the command processing unit for each polling in the gateway communication processing unit of the center server. If the above command is given, the command is set, the polling response is sent to the gateway, and the center server communication processing unit of the gateway stores the setting file in which the setting value of the polling cycle is written The The center server performs polling at a cycle based on the setting value, and the center server writes the setting value as the response to the polling so that the setting value of the setting file can be changed freely. , Which can provide a system that can remotely control and monitor devices to be controlled and monitored from a network terminal connected to the Internet, polling the center server from the gateway, and sending commands from the center server in response By receiving, even if a router, etc. intervenes and the firewall is set, commands can be received, so there is no need to set the router etc., workability is improved, and no gateway reception port is required To improve network security And a highly reliable remote control monitoring system can be realized. Further, when the load on the center server increases, the load on the center server can be reduced by transmitting the set value as the polling response from the center server and changing the polling cycle of the gateway.

まず本発明を基本構成より説明する。   First, the present invention will be described from the basic configuration.

(基本構成)
図1は本構成例のシステムの全体構成を示しており、例えば住宅H内に設けられたローカルバス4に接続された制御・監視対象となる電気機器等の各種機器5と、ローカルバス4側とインターネット7や宅内LANとの間に介在するゲートウェイ1と、ゲートウェイ1やパーソナルコンピュータ(パソコン)6を接続するハブ機能を備えるとともにこれらゲートウェイ1やパソコン6をインターネット7に接続するためのルータ8とを宅内設備として備えている。
(Basic configuration)
FIG. 1 shows the overall configuration of the system of this configuration example. For example, various devices 5 such as electric devices to be controlled / monitored connected to a local bus 4 provided in a house H, and the local bus 4 side. And a router 8 for connecting the gateway 1 and the personal computer 6 to the Internet 7 as well as having a hub function for connecting the gateway 1 and the personal computer (personal computer) 6 to each other. Equipped as in-house equipment.

一方宅外には、宅内設備を設置している複数のユーザに対応して制御・監視に関するサービスを提供するためにセンターサーバ2をインターネット7に接続してある。センターサーバ2はサービス提供業者等が設置する管理センター(図示せず)に準備するものとする。   On the other hand, outside the house, the center server 2 is connected to the Internet 7 in order to provide services related to control and monitoring corresponding to a plurality of users who have installed in-house facilities. The center server 2 is prepared in a management center (not shown) installed by a service provider.

ここでセンターサーバ2は複数の住宅Hのゲートウェイ1に対応するものであって、その処理能力に応じて対応するゲートウェイ1の数が決められている。   Here, the center server 2 corresponds to the gateways 1 of a plurality of houses H, and the number of the corresponding gateways 1 is determined according to the processing capability.

一方、ユーザが宅外から住宅H内の機器5の制御・監視を可能とするためにインターネット7に接続したWebブラウザ搭載のパソコンや携帯電話機(ブラウザフォン)などのネット端末3が用いられる。   On the other hand, in order to enable the user to control and monitor the device 5 in the house H from outside the home, a network terminal 3 such as a personal computer or a mobile phone (browser phone) mounted on a web browser connected to the Internet 7 is used.

ゲートウェイ1やセンターサーバ2は実際には夫々コンピュータシステムで構成されるものであるが本発明で重要な構成となるゲートウェイ1及びセンターサーバ2の機能構成を図2,3により説明する。   Although the gateway 1 and the center server 2 are actually configured by computer systems, the functional configurations of the gateway 1 and the center server 2 which are important components in the present invention will be described with reference to FIGS.

ゲートウェイ1は図2に示すような機能構成を有するもので、図示するようセンターサーバ通信処理部10と、制御・監視の対象機器5との間でローカルバスを介してコマンド通信処理を行うローカル伝送通信処理部11とを備え、センターサーバ通信処理部10にはHTTPクライアント部10a、ポーリング先となるセンターサーバ2のIPアドレス等を登録している設定ファイルを格納している記憶部10bを備えている。   The gateway 1 has a functional configuration as shown in FIG. 2, and performs local communication for command communication processing between the center server communication processing unit 10 and the control / monitoring target device 5 via a local bus as shown in the figure. The center server communication processing unit 10 includes an HTTP client unit 10a and a storage unit 10b that stores a setting file in which the IP address of the center server 2 that is a polling destination is registered. Yes.

センターサーバ2は図3に示す機能構成を有するもので、図示するようにネット端末3のWebブラウザの画面上で機器5の制御・監視のための操作を行うWebページと、監視情報を表示するためのWebページとを提供するためのHTTPサーバ部20aを備えたWebユーザインターフェース処理部20と、ゲートウェイ1側のHTTPクライアント部10aとの間でHTTPにより情報の授受を行うためのHTTPサーバ部21aを備え、ゲートウェイ1側からのHTTPのリクエストパケットを受信すると、HTTPのレスポンスパケットを返すようになっているゲートウェイ通信処理部21と、Webユーザインターフェース処理部20から受け取った制御・監視の要求情報を要求コマンドとして変換しゲートウェイ通信処理部21に渡すとともに、ゲートウェイ通信処理部21で受信したリクエストパケットから取り出したゲートウェイ1からの制御・監視の要求応答コマンドを制御結果情報、状態情報に変換してWebユーザインターフェース処理部20へ渡すコマンド処理部22とから構成される。   The center server 2 has the functional configuration shown in FIG. 3, and displays a Web page for performing operations for controlling and monitoring the device 5 on the screen of the Web browser of the network terminal 3 and monitoring information as shown in the figure. HTTP server unit 21a for exchanging information by HTTP between Web user interface processing unit 20 including HTTP server unit 20a for providing a Web page for the purpose and HTTP client unit 10a on the gateway 1 side When receiving an HTTP request packet from the gateway 1 side, the gateway communication processing unit 21 that returns an HTTP response packet and the control / monitoring request information received from the Web user interface processing unit 20 are received. Converted as a request command and gateway communication processor 1 is also transferred to the Web user interface processing unit 20 by converting the control / monitoring request response command from the gateway 1 extracted from the request packet received by the gateway communication processing unit 21 into control result information and status information. Part 22.

次に本構成例の動作を詳説する。   Next, the operation of this configuration example will be described in detail.

まず、住宅H内の設備が起動すると、ゲートウェイ1のセンターサーバ通信処理部10のHTTPクライアント部10aは、記憶部10bに予め格納されているIPアドレスのセンターサーバ2のゲートウェイ通信処理部21のHTTPサーバ部21aに対してポーリングを、図4(a)に示すように内蔵タイマ機能で設定された所定周期で開始する(ステップS1)。   First, when the equipment in the house H is activated, the HTTP client unit 10a of the center server communication processing unit 10 of the gateway 1 starts the HTTP of the gateway communication processing unit 21 of the center server 2 of the IP server stored in the storage unit 10b in advance. Polling for the server unit 21a is started at a predetermined cycle set by the built-in timer function as shown in FIG. 4A (step S1).

そしてこの場合まずセンターサーバ通信処理部10がセンターサーバ2に対して送信するコマンド(例えば後述する制御要求結果応答コマンドや監視要求応答コマンド)が有るか否かをチェックし(ステップS2)、有れば送信するコマンドをセットし(ステップS3)、なければ非セットのままHTTPのリクエストパケットをセンターサーバ2へ送信する(ステップS4)。   In this case, first, it is checked whether there is a command (for example, a control request result response command or a monitoring request response command described later) that the center server communication processing unit 10 transmits to the center server 2 (step S2). If so, the command to be transmitted is set (step S3). If not, the HTTP request packet is transmitted to the center server 2 without being set (step S4).

一方センターサーバ2のHTTPサーバ部21aでは図4(b)に示すようにHTTPのリクエストパケットを受信する(ステップS10)と、当該リクエストパケット内の受信コマンドを取り出し(ステップS11)、次いでゲートウェイ1への送信するコマンド(後述する制御要求コマンド、監視要求コマンド)がコマンド処理部22から与えられているか否かをチェックし(ステップS12)、有れば送信するコマンドをセットし(ステップS13)、なければ非セットのままHTTPのレスポンスパケットをゲートウェイ1へ送信する(ステップS14)。   On the other hand, as shown in FIG. 4B, the HTTP server unit 21a of the center server 2 receives an HTTP request packet (step S10), extracts a received command in the request packet (step S11), and then to the gateway 1 Is sent from the command processing unit 22 (step S12). If there is a command to be sent (step S13), the command to be sent is set (step S13). If not set, the HTTP response packet is transmitted to the gateway 1 (step S14).

そしてこのセンターサーバ2からHTTPのレスポンスパケットを図4(a)のステップS5で受信したゲートウェイ1のHTTPクライアント部10aではHTTPのレスポンスパケットから受信コマンドを取り出す処理を行う(ステップS6)。   Then, the HTTP client unit 10a of the gateway 1 that has received the HTTP response packet from the center server 2 in step S5 in FIG. 4A performs a process of extracting the received command from the HTTP response packet (step S6).

以上のようにしてゲートウェイ1から対応するセンターサーバ2に対してポーリングを行い、このポーリングに呼応する形でセンターサーバ2から、レスポンスパケットにより制御要求や監視要求のコマンドをゲートウェイ1へ送信するようになっている。またゲートウェイ1はレスポンスパケットにより制御要求コマンドを受信した際には、それを受け付けたことを確認するための制御要求応答コマンドを、また監視要求コマンドの受信に対してはローカルバス4に接続している監視対象の機器5の状態変化を示す監視要求応答コマンドをHTTPのリクエストパケットで送信するようになっている。   As described above, the corresponding center server 2 is polled from the gateway 1, and the control request and the monitoring request command are transmitted from the center server 2 to the gateway 1 by the response packet in response to the polling. It has become. When the gateway 1 receives a control request command by a response packet, the gateway 1 connects a control request response command for confirming that the control request command has been received, and connects the local bus 4 for reception of the monitoring request command. A monitoring request response command indicating a state change of the monitoring target device 5 is transmitted by an HTTP request packet.

図5は図4(a)(b)に示すセンターサーバ2とゲートウェイ1との間のHTTPによるパケットの送受信のシーケンス及びセンターサーバ2とネット端末3とのHTTPによるパケットの送受信のシーケンスを示しており、ゲートウェイ1ではHTTPクライアント部10aによってセンターサーバ2に対してポーリングを行い、センターサーバ2のHTTPサーバ部21aではゲートウェイ1からのHTTPのリクエストパケット(P3)に対してHTTPのレスポンスパケット(P4)の送信を行うことにより、双方の間でコマンドを送受信するのである。   FIG. 5 shows an HTTP packet transmission / reception sequence between the center server 2 and the gateway 1 shown in FIGS. 4A and 4B and an HTTP packet transmission / reception sequence between the center server 2 and the network terminal 3. The gateway 1 polls the center server 2 with the HTTP client unit 10a, and the HTTP server unit 21a of the center server 2 responds to the HTTP request packet (P3) from the gateway 1 with an HTTP response packet (P4). By transmitting this, a command is transmitted and received between the two.

ネット端末3とセンターサーバ2のWebユーザインターフェース部20のHTTPサーバ部20aとの間では、ネット端末3のWebブラウザ上での操作による制御や監視を要求する情報をリクエストパケット(P1)をHTTPサーバ部20aが受信して(P1)、コマンド処理部22にこれら情報を渡し、またコマンド処理部22がゲートウェイ通信処理部21から受け取った機器1の制御要求応答コマンドや、監視要求応答コマンドに対応する制御の受け付け結果情報や、監視情報をレスポンスパケット(P2)によりネット端末3へHTTPサーバ部20aから送信し、ネット端末3ではWebブラウザでこれら情報を確認するのである。   Between the network terminal 3 and the HTTP server unit 20a of the web user interface unit 20 of the center server 2, a request packet (P1) for requesting control and monitoring by operation on the web browser of the network terminal 3 is sent to the HTTP server. The information is received by the unit 20a (P1) and passed to the command processing unit 22, and the command processing unit 22 corresponds to the control request response command and the monitoring request response command of the device 1 received from the gateway communication processing unit 21. The control acceptance result information and the monitoring information are transmitted from the HTTP server unit 20a to the network terminal 3 by the response packet (P2), and the network terminal 3 confirms the information with a web browser.

ここでコマンドのパケットフォーマット例を図6で説明する。   Here, a packet format example of the command will be described with reference to FIG.

このパケットフォーマットは送信先アドレスデータA1、送信元アドレスデータA2、パケット種別(コマンド)を示すデータB、ボディ長を示すデータCを書き込んだヘッダ部と、コマンドに対応したデータからなるボディ部Dとで構成され、パケット種別とボディ部Dのデータ内容との関係は、表1に示す内容とする。尚リクエストライン或いはレスポンスラインは図では省略している。   This packet format includes transmission destination address data A1, transmission source address data A2, data B indicating packet type (command), header portion in which data C indicating body length is written, and body portion D including data corresponding to the command. The relationship between the packet type and the data content of the body part D is the content shown in Table 1. The request line or response line is omitted in the figure.

Figure 2009064450
Figure 2009064450

尚ローカルバス4に接続される制御・監視対象の機器5の制御番号、制御内容、状態番号、状態は予め決められ、センターサーバ2の例えばコマンド処理部22内にはそれらの情報が保持されているものとし、コマンド処理部22では制御要求コマンドの処理を行う場合には対象となる機器5の制御番号と、その制御内容をセット、また監視要求コマンドの処理を行う場合には対象となる機器5の状態番号をセットする。更にゲートウェイ1から受け取った制御要求応答コマンドの処理を行う場合にはボディ部の内容に応じて正常又は異常を示す情報を生成し、また監視要求応答コマンドを受け取った場合には対応する機器5の状態番号と、その状態の情報を生成してWebユーザインターフェース部20へ渡す処理を行う。   The control number, control content, status number, and status of the device 5 to be controlled / monitored connected to the local bus 4 are determined in advance, and such information is held in, for example, the command processing unit 22 of the center server 2. The command processing unit 22 sets the control number of the target device 5 and the control content when the control request command is processed, and the target device when the monitor request command is processed. Set the state number of 5. Further, when processing the control request response command received from the gateway 1, information indicating normality or abnormality is generated according to the contents of the body portion, and when the monitoring request response command is received, the corresponding device 5 A state number and information on the state are generated and passed to the Web user interface unit 20.

一方ゲートウェイ1ではセンターサーバ2からの制御要求コマンドを受け取ると内容として示される機器番号と制御内容からローカルバス4に接続されている当該機器番号の制御対象の機器5に対して所定形式の制御信号を送信して制御内容に対応した制御を行う。またこの制御要求コマンドを正常に受け付けたことを制御要求応答コマンドとしてリクエストパケットによりセンターサーバ2へ送信する。同様にセンターサーバ2からの監視要求コマンドを受け取るとその内容で示される状態番号からローカルバス4に接続されている当該状態番号の機器5から状態情報をローカルバス4を通じて受け取り、監視要求応答コマンドとしてリクエストパケットによりセンターサーバ2へ送信する。   On the other hand, when the gateway 1 receives the control request command from the center server 2, a control signal in a predetermined format is sent to the control target device 5 connected to the local bus 4 from the device number indicated as the content and the control content. To perform control corresponding to the control content. Further, the fact that this control request command is normally received is transmitted to the center server 2 by a request packet as a control request response command. Similarly, when a monitoring request command is received from the center server 2, status information is received through the local bus 4 from the device 5 of the status number connected to the local bus 4 from the status number indicated by the content, and as a monitoring request response command. A request packet is transmitted to the center server 2.

以上のように本構成例では、インターネット7に接続されているセンターサーバ2からHTTPのレスポンスパケットでコマンドをゲートウェイ1へ送るため、ゲートウェイ1側で受信ポートが不要となり、その結果ネットワークのセキュリティ性を向上させることができる。   As described above, in this configuration example, a command is sent from the center server 2 connected to the Internet 7 to the gateway 1 using an HTTP response packet, so that no reception port is required on the gateway 1 side. As a result, network security is improved. Can be improved.

またセンターサーバー2からのゲートウェイ1への接続を可能とするための設定をルータ8で行う必要が無くなるため、住宅H側の設備の施工性を向上させることができる。   Moreover, since it becomes unnecessary to perform the setting for enabling the connection from the center server 2 to the gateway 1 by the router 8, the workability of the equipment on the house H side can be improved.

特に言及しなかったが、本構成例では、セキュリティ性を高くするために、センターサーバ2とゲートウェイ1との間の通信に暗号化通信(例えばHTTPS<Hyper Text Transfer Protocol Security>等を)用いているのは言うまでもない。   Although not particularly mentioned, in this configuration example, encrypted communication (for example, HTTPS <Hyper Text Transfer Protocol Security> or the like) is used for communication between the center server 2 and the gateway 1 in order to increase security. Needless to say.

更にネット端末3から上記センターサーバ2に送られてくる要求情報が複数の制御要求や監視要求の場合には、これら複数の要求に対応して上記コマンド処理部22は複数のコマンドにまとめ、レスポンスパケットとしてゲートウェイ1に送信するようにしても良い。またこれに対応してゲートウェイ1から送られてくる制御要求応答や監視要求の複数のコマンドもまとめ、リクエストパケットとしてセンターサーバ2に送信するようにしても良い。   Further, when the request information sent from the network terminal 3 to the center server 2 is a plurality of control requests or monitoring requests, the command processing unit 22 collects a plurality of commands in response to the plurality of requests and a response. You may make it transmit to the gateway 1 as a packet. Correspondingly, a plurality of commands of control request responses and monitoring requests sent from the gateway 1 may be collected and sent to the center server 2 as request packets.

つまりリクエストパケットでは図7(a)に示すようにマルチパートのボディ部Dで複数のコマンドd1…をまとめて送る。同様にレスポンスパケットでは図7(b)に示すマルチパートのボディ部Dで複数のコマンドd1…をまとめて送る。   That is, in the request packet, as shown in FIG. 7A, a plurality of commands d1,... Similarly, in the response packet, a plurality of commands d1,... Are sent together in the multipart body part D shown in FIG.

ここで図7(a)(b)ではHTTPのバージョンとしてHTTP/1.1が採用されており、リクエストパケットでは、メソッド、リクエストURLとプロトコルバージョンが書き込まれたリクエストラインRQと、リクエストを生成したユーザエージェントについての情報やボディ部Dのデータ長、メディアタイプ(ここではマルチパート)などの情報を書き込んだヘッダ部HDと、ボディ部Dとからなる。   Here, in FIGS. 7A and 7B, HTTP / 1.1 is adopted as the HTTP version. In the request packet, the request, the request URL RQ in which the method, the request URL, and the protocol version are written, and the request are generated. The header part HD in which information on the user agent, the data length of the body part D, information on the media type (here, multipart), and the like are written, and the body part D are included.

一方、レスポンスパケットでは、プロトコルのバージョン、ステータスコード番号、それに関連したテキストフレーズからなるステータスラインSLと、データ、ボディ部Dのデータ長、メディアタイプ(ここではマルチパート)などの情報を書き込んだレスポンスヘッダ部REH、ボディ部Dとからなる。   On the other hand, in the response packet, a status line SL including a protocol version, a status code number, and a related text phrase, and a response in which information such as data, data length of the body part D, media type (here, multipart) is written. It consists of a header part REH and a body part D.

尚これらはパケット構成はHTTP/1.1に用いられるパケット構成であるので、概略のみの説明とする。   Since these are packet configurations used for HTTP / 1.1, only an outline will be given.

(実施形態1)
ところで、センターサーバ2に対応するゲートウェイ1の数は、センターサーバ2の処理能力で限定されるが、センターサーバ2の負荷が増大したときにゲートウェイ1のポーリング周期を変更することで、負荷を軽減することができる。
(Embodiment 1)
By the way, the number of gateways 1 corresponding to the center server 2 is limited by the processing capacity of the center server 2, but the load is reduced by changing the polling cycle of the gateway 1 when the load of the center server 2 increases. can do.

またネット端末3での制御・監視を不要なユーザ宅においては、ゲートウェイ1からセンターサーバ2へのポーリングを停止させることで、宅内のLANのトラフィックを低減することができる。   Further, in a user's home that does not need to be controlled and monitored by the network terminal 3, by stopping polling from the gateway 1 to the center server 2, the traffic on the home LAN can be reduced.

そこで本実施形態では、センターサーバ通信処理部10の記憶部10bに格納している設定ファイルにポーリング周期の設定値を変更自在に書き込み、この設置値に基づいて内蔵タイマによるポーリング周期を設定することができるようにし、またポーリング自体を停止させる設定を行えるようにしたものである。つまりここではセンターサーバ2及びパソコン6がフェイルの変更を行うための設定手段を構成することなる。   Therefore, in the present embodiment, the setting value of the polling cycle is written in the setting file stored in the storage unit 10b of the center server communication processing unit 10 in a changeable manner, and the polling cycle by the built-in timer is set based on the setting value. And can be set to stop polling itself. That is, here, the center server 2 and the personal computer 6 constitute a setting means for changing the failure.

尚システム構成及びセンターサーバ2の構成、ゲートウェイ1の構成は基本的に同じであるので構成の図示、説明は省略する。センターサーバ2から上記設定ファイルにポーリング周期の設定値を書き込むことができるようにし、またゲートウェイ1に対してポーリング停止を宅内のパソコン6からLANを介して指示することができるようにしたものである。   Since the system configuration, the configuration of the center server 2 and the configuration of the gateway 1 are basically the same, illustration and description of the configuration are omitted. The center server 2 can write the setting value of the polling cycle to the setting file, and can instruct the gateway 1 to stop polling from the home personal computer 6 via the LAN. .

この場合センターサーバ2からはHTTPのレスポンスとして上記設定値データを送信することで設定変更を可能とする。またポーリング停止を指示するコマンドをゲートウェイ1に与える方法は、特に限定されるものでないので、適宜周知の形式で行えば良い。   In this case, the setting can be changed by transmitting the set value data from the center server 2 as an HTTP response. The method for giving a command to stop polling to the gateway 1 is not particularly limited, and may be performed in a known format as appropriate.

而して本実施形態のゲートウェイ1では起動すると、まずセンターサーバ通信処理部10は記憶部10bの設定ファイルに書き込まれた設定値に基づいて図8に示すように内蔵タイマにより所定周期でポーリングを開始するが(ステップS1)、ポーリング過程には記憶部10bの設定ファイルにポーリング停止が設定されているか否かをチェックするステップS7を設けており、このステップS7で停止が設定されていると判定された場合にはポーリングを停止する。   Thus, when the gateway 1 of this embodiment is activated, the center server communication processing unit 10 first performs polling at a predetermined cycle by the built-in timer as shown in FIG. 8 based on the setting value written in the setting file of the storage unit 10b. Although it starts (step S1), in the polling process, step S7 is provided for checking whether or not the polling stop is set in the setting file of the storage unit 10b, and it is determined that the stop is set in this step S7. If so, polling is stopped.

尚ポーリングの処理は基本構成と同じであるので、図4(a)に示すフローチャートと同じ処理ステップには同じ符号を付して説明は省略する。   Since the polling process is the same as the basic configuration, the same process steps as those in the flowchart shown in FIG.

またその他の動作も基本構成と同じであるので説明は省略する。   Since other operations are the same as the basic configuration, the description thereof is omitted.

(実施形態2)
本実施形態は、センターサーバ2と同じ機能を持つバックアップ用センターサーバ2Aを図9に示すようにインターネット7に接続し、ゲートウェイ1側でセンターサーバ2からのレスポンスが所定の時間途絶えたとき、ポーリング対象をバックアップ用センターサーバ2Aに切り替えることで、センターサーバ2のトラブル発生時やメンテナンス時にもシステムダウンが生じないようにしたものである。
(Embodiment 2)
In this embodiment, when a backup center server 2A having the same function as the center server 2 is connected to the Internet 7 as shown in FIG. 9 and the response from the center server 2 is interrupted for a predetermined time on the gateway 1, polling is performed. By switching the target to the backup center server 2A, the system is prevented from being down even when trouble occurs in the center server 2 or during maintenance.

尚センターサーバ2の構成は実施形態1と同じであるので、図示及びその説明は省略する。   Since the configuration of the center server 2 is the same as that of the first embodiment, illustration and description thereof are omitted.

また本実施形態では、図10に示すようにゲートウェイ1側にセンターサーバ2からのレスポンスパケットの受信の途絶えを監視する監視機能部10cをセンターサーバ通信処理部10内に設けるとともに、記憶部10bの設定ファイルにセンターサーバ2のIPアドレスと、バックアップ用のセンターサーバ2AのIPアドレスを予め登録しておく。   Further, in the present embodiment, as shown in FIG. 10, a monitoring function unit 10c that monitors the interruption of response packet reception from the center server 2 is provided in the center server communication processing unit 10 on the gateway 1 side, and the storage unit 10b The IP address of the center server 2 and the IP address of the backup center server 2A are registered in advance in the setting file.

そしてゲートウェイ1からセンターサーバ2に対してポーリングを開始する際に、まず起動時にセンターサーバ通信処理部10は図11に示すようにステップS1でセンターサーバ2のIPアドレスをセットし、ステップS2で監視機能部10cでカウントするコネクション接続のリトライ回数を0にセットし、更にこのステップS3でリトライ回数のカウント値が所定回数(例えば3回)を超えているか否かをチェックし、超えていなければステップS4でセンターサーバ2にコネクション接続を行い、接続が成功すると通常モードの処理へ移行(ステップS5)する。   When the polling is started from the gateway 1 to the center server 2, the center server communication processing unit 10 first sets the IP address of the center server 2 in step S1 as shown in FIG. The connection connection retry count counted by the function unit 10c is set to 0. Further, in this step S3, it is checked whether or not the retry count value exceeds a predetermined number (for example, 3 times). In S4, a connection is made to the center server 2, and when the connection is successful, the process proceeds to a normal mode process (step S5).

これにより上述したゲートウェイ1からセンターサーバ2に対するHTTPによるリクエスト送信と、レスポンス受信とのポーリングが内蔵タイマによって競ってされる周期で行われる(ステップS6〜S8)。そして通常モードのルーチンではステップS7でソケットエラーの有無を監視機能部10cでチェックし、ここでソケットエラーが発生する、コネクションを切断し(ステップS9)、上記のステップS2に戻る。   As a result, the above-described polling of HTTP request transmission from the gateway 1 to the center server 2 and response reception is performed in a cycle in which the built-in timer competes (steps S6 to S8). In the normal mode routine, in step S7, the monitoring function unit 10c checks for the presence of a socket error. Here, the socket in which the socket error occurs is disconnected (step S9), and the process returns to step S2.

そしてステップS1〜S3の処理を経て、ステップS4でセンターサーバ2へのコネクション接続が行われ、接続が失敗すると、リトライ回数のカウント値に1を加算し(ステップS10)、ステップS3へ移行し、カウント値が所定値を超えているか否かのチェックを行い、超えていなければステップS4でのコネクション接続がリトライされる。そして接続の失敗が連続し、リトライ回数が3回に達すると、ステップS11で現在セットされているIPアドレスがバックアップ用のセンターサーバ2AのIPアドレスか否かのチェックを行う。ここではセンターサーバ2のIPアドレスがセットされているので、ステップS12でセットするIPアドレスをバックアップ用のセンターサーバ2AのIPアドレスに切り替え、センターサーバ2に対する場合と同様な処理を行う。   Then, through the processing of steps S1 to S3, connection to the center server 2 is performed in step S4, and when the connection fails, 1 is added to the count value of the number of retries (step S10), and the process proceeds to step S3. It is checked whether or not the count value exceeds a predetermined value, and if not, the connection connection in step S4 is retried. When connection failures continue and the number of retries reaches three, it is checked in step S11 whether the currently set IP address is the IP address of the backup center server 2A. Since the IP address of the center server 2 is set here, the IP address set in step S12 is switched to the IP address of the backup center server 2A, and the same processing as that for the center server 2 is performed.

そしてバックアップ用のセンターサーバ2Aに対するポーリング中に上述と同様にソケットエラーが発生するとコネクション切断を行った後、コネクション接続をリトライし、このリトライ回数が3回に達すると、上述と同様にステップS11で現在セットされているIPアドレスがセンターサーバ2AのIPアドレスか否かのチェックを行う。この場合セットされているIPアドレスはバックアップ用センターサーバ2AのIPアドレスであるので、センターサーバ通信処理部10の動作がローカルモードの処理へ移行する(ステップS13)。このローカルモードではまずセンターサーバ2のIPアドレスによるコネクション接続を行い(ステップS14)、成功すればステップS5の通常モードへ移行する(この場合IPアドレスはセンターサーバ2のIPアドレスにセットする)。そして失敗すればバックアップ用センターサーバ2AのIPアドレスでコネクション接続を行い(ステップS15)、成功すればステップS5の通常モードへ移行する(この場合IPアドレスはバックアップ用センターサーバ2AのIPアドレスにセットする)。また失敗すれば内蔵タイマで定まる周期(ステップS16)で何れかのコネクション接続が成功するまで、ステップS14、S15の処理が繰り返される。   If a socket error occurs during the polling to the backup center server 2A, the connection is disconnected and then the connection is retried. When the number of retries reaches 3, the same in the step S11 as described above. It is checked whether the currently set IP address is the IP address of the center server 2A. In this case, since the set IP address is the IP address of the backup center server 2A, the operation of the center server communication processing unit 10 shifts to processing in the local mode (step S13). In this local mode, connection connection is first made using the IP address of the center server 2 (step S14), and if successful, the process proceeds to the normal mode of step S5 (in this case, the IP address is set to the IP address of the center server 2). If unsuccessful, connection is established with the IP address of the backup center server 2A (step S15). If successful, the process proceeds to the normal mode of step S5 (in this case, the IP address is set to the IP address of the backup center server 2A). ). If the connection fails, the processes in steps S14 and S15 are repeated until one of the connection connections succeeds in a cycle determined by the built-in timer (step S16).

尚ローカルモードを無くして、リトライ回数が3回に達する度にポーリングの対象となるセンターサーバのIPアドレスを切り替えるようにしても良い。   The local mode may be eliminated and the IP address of the center server to be polled may be switched every time the number of retries reaches 3.

以上のように本実施形態では、センターサーバ2からのレスポンスパケットの受信が所定の時間途絶えると、自動的にゲートウェイ1側でポーリング対象をバックアップ用のセンターサーバ2AのIPアドレスに切り替えることで、センターサーバ2のダウン時やメンテナンス時のシステムダウンを防ぐことができるようになっている。またバックアップ用センターサーバ2Aからのレスポンスが無くなった場合にも自動的にセンターサーバ2への接続に切り替わることも可能であるので、メンテナンス終了時などのセンターサーバ1への自動復帰もできるのである。   As described above, in this embodiment, when reception of a response packet from the center server 2 is interrupted for a predetermined time, the gateway 1 automatically switches the polling target to the IP address of the backup center server 2A. The system can be prevented from being down when the server 2 is down or during maintenance. Further, even when there is no response from the backup center server 2A, it is possible to automatically switch to the connection to the center server 2, so that it is possible to automatically return to the center server 1 at the end of the maintenance.

(実施形態3)
上記実施形態2はゲートウェイ1側でセンターサーバ2からのレスポンスを監視するものであったが、本実施形態では、センターサーバ2(バックアップ用センターサーバ2A)側にゲートウェイ1からのポーリング間隔を監視するポーリング監視機能部21bを図12に示すようにゲートウェイ通信処理部21に設け、ゲートウェイ1の異常或いは回線の異常を判断するようにしたものである。
(Embodiment 3)
In the second embodiment, the response from the center server 2 is monitored on the gateway 1 side, but in this embodiment, the polling interval from the gateway 1 is monitored on the center server 2 (backup center server 2A) side. As shown in FIG. 12, the polling monitoring function unit 21b is provided in the gateway communication processing unit 21 to determine whether the gateway 1 is abnormal or the line is abnormal.

而して本実施形態では、センターサーバ2では、ゲートウェイ1のポーリングが開始されるとポーリング監視機能部21bでは内蔵タイマを図13に示すようにセットするステップS1と、この内蔵タイマがタイムアップしてタイマオーバーフローとなるまでにゲートウェイ1からのHTTPのリクエストパケットの受信が有るか否かのチェックを行うステップS2とをサイクリックに繰り返し、ゲートウェイ1からのHTTPのリクエストパケットの受信が内蔵タイマのタイムアップまでに受信されなかった場合、ポーリング監視機能部21bは異常発生と判断する。   Thus, in this embodiment, in the center server 2, when polling of the gateway 1 is started, the polling monitoring function unit 21b sets the built-in timer as shown in FIG. 13, and the built-in timer times up. Step S2 for checking whether or not the HTTP request packet has been received from the gateway 1 before the timer overflows is cyclically repeated, and the reception of the HTTP request packet from the gateway 1 is the time of the built-in timer. If it is not received before the up, the polling monitoring function unit 21b determines that an abnormality has occurred.

この判断結果をセンターサーバ2にLAN等によって接続されたセンター側のサーバー監視用コンピュータに送ってそのモニタ装置に表示させたり、或いはセンターサーバ2自体に付設するモニタ装置或いはモニタランプ等を判断結果に基づいて表示或いは点灯させることで、ゲートウェイ1或いは回線に異常が発生したことをセンター側のオペレータに知らせる。   The determination result is sent to a center-side server monitoring computer connected to the center server 2 via a LAN or the like and displayed on the monitor device, or a monitor device or a monitor lamp attached to the center server 2 itself is used as the determination result. Based on the display or lighting, the center side operator is informed that an abnormality has occurred in the gateway 1 or the line.

これにより迅速に異常発生原因を追及し、正常な状態に復旧させることができることになる。   As a result, the cause of the abnormality can be quickly investigated and the normal state can be restored.

尚本実施形態のセンターサーバ2の構成は、上記実施形態1,2の何れにも適用できるものであるので、システム構成及びゲートウェイ1の構成の図示及び説明は上記実施形態1,2の何れかの説明を参照するものする。また上記のゲートウェイ1のポーリング間隔の監視動作以外は適用する実施形態の動作と同じであるので、動作の説明も省略する。   Since the configuration of the center server 2 of this embodiment can be applied to any of the first and second embodiments, the system configuration and the configuration of the gateway 1 are illustrated and described in any of the first and second embodiments. Reference is made to the description of. The operation other than the above-described monitoring operation of the polling interval of the gateway 1 is the same as the operation of the embodiment to be applied, and thus the description of the operation is also omitted.

(実施形態4)
上記の実施形態1乃至3ではゲートウェイ1のポーリング対象のセンターサーバ2或いはバックアップ用センターサーバ2AのIPアドレスは予めゲートウェイ1のセンターサーバ通信処理部10内の記憶部10bに格納している設定ファイルに予め登録していたが、本実施形態では、ゲートウェイ1の起動時や、センターサーバ2との間でのポーリングが途絶えたときに、当該ゲートウェイ1に対してポーリング先のセンターサーバ2やバックアップ用センターサーバ2AのIPアドレスを通知する接続先通知用サーバ9を図14に示すようにインターネット7上に設け、ゲートウェイ1のセンターサーバ通信処理部10の記憶部10bに格納している設定ファイル内に接続先通知用サーバ9のIPアドレスを予め登録しておく。
(Embodiment 4)
In the first to third embodiments described above, the IP address of the polling center server 2 or backup center server 2A of the gateway 1 is stored in the setting file stored in the storage unit 10b in the center server communication processing unit 10 of the gateway 1 in advance. Although previously registered, in this embodiment, when the gateway 1 is started or when polling with the center server 2 is interrupted, the center server 2 or the backup center that is the polling destination for the gateway 1 is used. As shown in FIG. 14, a connection destination notification server 9 for notifying the IP address of the server 2A is provided on the Internet 7 and connected to the setting file stored in the storage unit 10b of the center server communication processing unit 10 of the gateway 1. The IP address of the destination notification server 9 is registered in advance.

また図15に示すようにセンターサーバ通信処理部10にセンターサーバ2からのHTTPのレスポンスパケットの送信を監視する監視機能部10c’を設けるとともに、HTTPクライアント部10aに起動時に接続先通知用サーバ9に対してセンターサーバ2のIPアドレスの通知を要求するコマンドをリクエストパケットで送信する機能及びセンターサーバ2からHTTPのレスポンスが途絶えたことを監視機能部10c’が検出したときにも接続先通知用サーバ9に対してバックアップ用センターサーバ2AのIPアドレスを要求するコマンドをリクエストパケットで送信する機能を備えている。   Further, as shown in FIG. 15, the center server communication processing unit 10 is provided with a monitoring function unit 10c ′ for monitoring transmission of an HTTP response packet from the center server 2, and the HTTP client unit 10a has a connection destination notification server 9 at the time of activation. A function for transmitting a command requesting notification of the IP address of the center server 2 with a request packet, and also when the monitoring function unit 10c ′ detects that the HTTP response from the center server 2 has been interrupted. The server 9 has a function of transmitting a command requesting the IP address of the backup center server 2A by a request packet.

而して本実施形態では、ゲートウェイ1が起動すると、当該ゲートウェイ1のセンターサーバ通信処理部10のHTTPクライアント部10aが記憶部10bの設定ファイルに予め登録している接続先通知用サーバ9のIPアドレスを読み出し、該接続先通知用サーバ9に対してHTTPのリクエストパケットでセンターサーバ2のIPアドレス要求コマンドを送る。   Thus, in this embodiment, when the gateway 1 is activated, the IP of the connection destination notification server 9 registered in advance in the setting file of the storage unit 10b by the HTTP client unit 10a of the center server communication processing unit 10 of the gateway 1 concerned. The address is read out, and an IP address request command of the center server 2 is sent to the connection destination notification server 9 using an HTTP request packet.

接続先通知用サーバ9では図16に示すようにゲートウェイ1からのポーリング先のセンターサーバ2のIPアドレス要求コマンドを受け付けると(ステップS1)、まずカウント値nに1を加え(ステップS2)、接続先通知用サーバ9が備えているサーバ番号−IPアドレス対向テーブル9aからN番のセンターサーバ2のIPアドレスを読み出してIPアドレス要求コマンドを送ってきたゲートウェイ1にHTTPのレスポンスパケットで通知する(ステップS3)。   When receiving the IP address request command of the polling destination center server 2 from the gateway 1 as shown in FIG. 16 (step S1), the connection destination notification server 9 first adds 1 to the count value n (step S2). The IP address of the N-th center server 2 is read from the server number-IP address opposing table 9a provided in the destination notification server 9 and notified to the gateway 1 that has sent the IP address request command with an HTTP response packet (step) S3).

そしてカウント値nが500であるかをチェックし(ステップS4)、このチェックでカウント値nが500でなければ、IPアドレス要求コマンドが送られてくる度にカウント値nが500になるまで、ステップS1〜ステップS4のステップ処理を繰り返す。そしてカウント値nが500に成ると、次からIPアドレス要求コマンドに対応してIPアドレスを通知対象とするセンターサーバ2の番号をN+1とすると共に、カウント値nを0に戻し、ステップS1に戻って以後上述と同様なIPアドレス通知の処理を行うのである。   Then, it is checked whether the count value n is 500 (step S4). If the count value n is not 500 in this check, every time an IP address request command is sent, the step is continued until the count value n becomes 500. Steps S1 to S4 are repeated. When the count value n reaches 500, the number of the center server 2 whose IP address is to be notified is set to N + 1 in response to the IP address request command, and the count value n is returned to 0, and the process returns to step S1. Thereafter, the same IP address notification processing as described above is performed.

ここでカウント値nの最大値500は、1台当たりのセンターサーバ2が対応するゲートウェイ1の数を示しており、この500は一例に過ぎず、ゲートウェイ1の能力によって500を超える場合も、或いは500未満となる場合も有る。また図11ではシステム起動時のイニシャル処理については省略している。   Here, the maximum value 500 of the count value n indicates the number of gateways 1 to which the center server 2 per unit corresponds, and this 500 is only an example, and may exceed 500 depending on the capability of the gateway 1 or It may be less than 500. In FIG. 11, the initial process at the time of starting the system is omitted.

さてセンターサーバ2のIPアドレスが通知されるとゲートウェイ1はセンターサーバ2に対してポーリングを開始する。   When the IP address of the center server 2 is notified, the gateway 1 starts polling the center server 2.

上記のようにポーリング動作を開始してから、対応するセンターサーバ2からHTTPのレスポンスパケットが所定時間途絶えたことをセンターサーバ通信処理部10の監視機能部10c’が検出すると、この検出に呼応してHTTPクライアント部10aは起動時と同様に接続先通知用サーバ9に対してバックアップ用センターサーバ2AのIPアドレスを要求するIPアドレス要求コマンドをHTTPのリクエストパケットで送り、起動時と同様な手順で接続先通知用サーバ9からバックアップ用センターサーバ2AのIPアドレスを通知してもらう。そしてこのIPアドレスの通知を受けた当該ゲートウェイ1では、IPアドレスを切り替えてポーリング先をバックアップ用のセンターサーバ2Aに変更する処理を行うのである。   When the monitoring function unit 10c ′ of the center server communication processing unit 10 detects that the HTTP response packet has been interrupted for a predetermined time from the corresponding center server 2 after starting the polling operation as described above, this detection is responded. Then, the HTTP client unit 10a sends an IP address request command for requesting the IP address of the backup center server 2A to the connection destination notification server 9 in the same manner as at the time of start-up, in the same procedure as at the time of start-up The connection destination notification server 9 is notified of the IP address of the backup center server 2A. The gateway 1 that has received the notification of the IP address performs processing for switching the IP address and changing the polling destination to the backup center server 2A.

上記のように本実施形態では、接続先通知用サーバ9を設け、センターサーバ2に接続するゲートウェイ1を起動時に自動的に割り付けることで、センターサーバ2の負荷分散の自動化が図れ、また各住戸に設置されるゲートウェイ1の設定ファイルにはセンターサーバ2のIPアドレスやバックアップ用センターサーバ2AのIPアドレスを事前に登録する必要がなく、接続先通知用サーバ9のIPアドレスを固定的に登録しておくだけで良くなるため、施工性が向上することになる。   As described above, in the present embodiment, the connection destination notification server 9 is provided, and the gateway 1 connected to the center server 2 is automatically assigned at the time of startup, so that load distribution of the center server 2 can be automated, and each dwelling unit It is not necessary to register the IP address of the center server 2 or the IP address of the backup center server 2A in advance in the setting file of the gateway 1 installed in the server, and the IP address of the connection destination notification server 9 is fixedly registered. Since it becomes better just to keep it, the workability will be improved.

ゲートウェイ1からセンターサーバ2へのポーリングの動作について上記の各実施形態と同じであるので、動作説明は省略する。また監視機能部10c’のポーリング監視動作は、実施形態2の監視機能部10cと同様な方法で行うものとする。更に上記実施形態1乃至3において、夫々のIPアドレス設定構成を本実施形態の構成に代えても勿論良い。   Since the polling operation from the gateway 1 to the center server 2 is the same as in each of the above embodiments, the description of the operation is omitted. The polling monitoring operation of the monitoring function unit 10c 'is performed by the same method as the monitoring function unit 10c of the second embodiment. Further, in the first to third embodiments, each IP address setting configuration may be replaced with the configuration of the present embodiment.

尚上記実施形態ではHTTPを用いているが、クライアントからサーバへのリクエスト/レスポンス型のプロトコルであれば良く、HTTPに限定されるものではない。   In the above-described embodiment, HTTP is used. However, a request / response type protocol from the client to the server may be used, and the protocol is not limited to HTTP.

また接続先通知用サーバ9はセンターサーバ2やバックアップ用サーバ2Aとは別回線によりインターネット7に接続し、トラブル発生時の安全性を高めれば良い。   Further, the connection destination notification server 9 may be connected to the Internet 7 through a separate line from the center server 2 and the backup server 2A to increase safety when trouble occurs.

本発明の基本構成のシステム構成図である。It is a system configuration diagram of the basic configuration of the present invention. 同上に用いるゲートウェイの構成図である。It is a block diagram of the gateway used for the same as the above. 同上に用いるセンターサーバの構成図である。It is a block diagram of the center server used for the same as the above. (a)は同上に用いるゲートウェイの動作説明用のフローチャートである。(A) is a flowchart for explaining the operation of the gateway used in the above.

(b)は同上に用いるセンターサーバの動作説明用のフローチャートである。
同上に用いるセンターサーバとゲートウェイとの間のポーリング動作及びセンターサーバとネット端末との間の送受信動作のシーケンス説明図である。 同上に用いるコマンドのパケットフォーマット例の説明図である。 同上に用いるHTTPのマルチパートのパケット例の説明図である。 本発明の実施形態1に用いるゲートウェイの動作説明用のフローチャートである。 本発明の実施形態2のシステム構成図である。 同上に用いるゲートウェイの構成図である。 同上のゲートウェイの動作説明用のフローチャートである。 本発明の実施形態3に用いるセンターサーバの構成図である。 同上のセンターサーバの動作説明用のフローチャートである。 本発明の実施形態4のシステム構成図である。 同上に用いるゲートウェイの構成図である。 同上に用いる接続先通知用サーバの動作説明用のフローチャートである。 従来例のセンターサーバとゲートウェイとの間のポーリング動作及びセンターサーバとネット端末との間の送受信動作のシーケンス説明図である。
(B) is a flowchart for explaining the operation of the center server used in the above.
It is sequence explanatory drawing of the polling operation | movement between the center server and gateway used for the same as the above, and the transmission / reception operation | movement between a center server and a network terminal. It is explanatory drawing of the packet format example of the command used for the same as the above. It is explanatory drawing of the packet example of the HTTP multipart used for the same as the above. It is a flowchart for operation | movement description of the gateway used for Embodiment 1 of this invention. It is a system configuration | structure figure of Embodiment 2 of this invention. It is a block diagram of the gateway used for the same as the above. It is a flowchart for operation | movement description of a gateway same as the above. It is a block diagram of the center server used for Embodiment 3 of this invention. It is a flowchart for operation | movement description of a center server same as the above. It is a system configuration | structure figure of Embodiment 4 of this invention. It is a block diagram of the gateway used for the same as the above. It is a flowchart for operation | movement description of the connection destination notification server used for the same as the above. It is sequence explanatory drawing of the polling operation | movement between the center server and gateway of a prior art example, and the transmission / reception operation | movement between a center server and a network terminal.

符号の説明Explanation of symbols

1 ゲートウェイ
2 センターサーバ
3 ネット端末
4 ローカルバス
5 機器
6 パソコン
7 インターネット
8 ルータ
1 Gateway 2 Center Server 3 Net Terminal 4 Local Bus 5 Device 6 Personal Computer 7 Internet 8 Router

Claims (1)

インターネットに接続されたインターネット端末に対してユーザインターフェースを提供するWebユーザインターフェース処理部と、インターネット端末のWeb画面から制御・監視の操作が行われ、インターネットを通じて制御・監視の要求情報が送られてくると、これらの要求情報を所定形式のコマンドに置き換えるコマンド処理部と、コマンド処理部から上記コマンドが与えられるとともにインターネットに接続されたゲートウェイとの間のコマンド通信処理を行うゲートウェイ通信処理部とを備えたセンターサーバと、
上記センターサーバとの間のコマンド通信処理を行うセンターサーバ通信処理部と、制御・監視の対象機器との間でローカルバスを介してコマンド通信処理を行うローカル伝送通信処理部とを備えた上記ゲートウェイと、
上記ゲートウェイのローカル伝送通信処理部を通じて送られてくるコマンドにより制御され、若しくは状態情報を上記ゲートウェイのローカル伝送通信処理部へ返す上記対象機器とから構成され、
上記ゲートウェイのセンターサーバ通信処理部によりセンターサーバに対して繰り返しポーリングを行い、センターサーバのゲートウェイ通信処理部では上記ポーリング毎に、ゲートウェイへ送信するコマンドがコマンド処理部から与えられているか否かをチェックし、上記コマンドが与えられていれば当該コマンドをセットし、上記ポーリングのレスポンスをゲートウェイに送信し、ゲートウェイのセンターサーバ通信処理部は、ポーリング周期の設定値を書き込んだ設定ファイルが格納されている記憶部を具備し、当該設定値に基づく周期で上記ポーリングを行い、センターサーバでは、上記ポーリングのレスポンスとして上記設定値を送信することで上記設定ファイルの上記設定値を変更自在に書き込むことを特徴とする遠隔制御監視システム。
Control and monitoring operations are performed from a Web user interface processing unit that provides a user interface to an Internet terminal connected to the Internet and a Web screen of the Internet terminal, and request information for control and monitoring is sent through the Internet. A command processing unit that replaces the request information with a command in a predetermined format, and a gateway communication processing unit that receives the command from the command processing unit and performs command communication processing with a gateway connected to the Internet. A center server,
The gateway comprising: a center server communication processing unit that performs a command communication process with the center server; and a local transmission communication processing unit that performs a command communication process with a target device to be controlled / monitored via a local bus. When,
Controlled by a command sent through the local transmission communication processing unit of the gateway, or composed of the target device returning status information to the local transmission communication processing unit of the gateway,
The center server communication processing unit of the gateway repeatedly polls the center server. The center server gateway communication processing unit checks whether a command to be transmitted to the gateway is given from the command processing unit for each polling. If the command is given, the command is set, and the polling response is sent to the gateway. The center server communication processing unit of the gateway stores the setting file in which the setting value of the polling cycle is written. A storage unit, performing the polling in a cycle based on the setting value, and the center server writing the setting value in the setting file in a changeable manner by transmitting the setting value as a response to the polling. Remote control monitoring Stem.
JP2008259925A 2008-10-06 2008-10-06 Remote control monitoring system Expired - Fee Related JP4858524B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008259925A JP4858524B2 (en) 2008-10-06 2008-10-06 Remote control monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008259925A JP4858524B2 (en) 2008-10-06 2008-10-06 Remote control monitoring system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003074509A Division JP2004280717A (en) 2003-03-18 2003-03-18 Remote control monitoring system and information communicating method used therefor

Publications (2)

Publication Number Publication Date
JP2009064450A true JP2009064450A (en) 2009-03-26
JP4858524B2 JP4858524B2 (en) 2012-01-18

Family

ID=40558929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008259925A Expired - Fee Related JP4858524B2 (en) 2008-10-06 2008-10-06 Remote control monitoring system

Country Status (1)

Country Link
JP (1) JP4858524B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109879A (en) * 2010-11-18 2012-06-07 Shunji Sugaya Communication connection system by polling, method, and program
JP2014182689A (en) * 2013-03-21 2014-09-29 Fuji Xerox Co Ltd Information processing system and information processing program
WO2018190219A1 (en) * 2017-04-14 2018-10-18 日本ユニシス株式会社 Connection method by activation processing of iot device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11187061A (en) * 1997-05-06 1999-07-09 Toshiba Corp Communication equipment, communicating controlling method, service registering method, service providing method and equipment controlling program registering method
JP2002044079A (en) * 2000-07-25 2002-02-08 Matsushita Electric Works Ltd Client service supporting system for service provider utilizing communication network and method for supporting provision of client service from service provider while using the same
JP2002157178A (en) * 2000-08-25 2002-05-31 Shikoku Electric Power Co Inc Remote control server and center server
JP2002215222A (en) * 2001-01-19 2002-07-31 Nippon Field Eng Kk Management/operation system for networked infrastructure system equipment, and management/ operation method using the system
JP2002222010A (en) * 2001-01-26 2002-08-09 Daikin Ind Ltd Remote monitoring system
JP2003060800A (en) * 2001-07-31 2003-02-28 Internatl Business Mach Corp <Ibm> Method for notifying job between computer systems, computer system and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11187061A (en) * 1997-05-06 1999-07-09 Toshiba Corp Communication equipment, communicating controlling method, service registering method, service providing method and equipment controlling program registering method
JP2002044079A (en) * 2000-07-25 2002-02-08 Matsushita Electric Works Ltd Client service supporting system for service provider utilizing communication network and method for supporting provision of client service from service provider while using the same
JP2002157178A (en) * 2000-08-25 2002-05-31 Shikoku Electric Power Co Inc Remote control server and center server
JP2002215222A (en) * 2001-01-19 2002-07-31 Nippon Field Eng Kk Management/operation system for networked infrastructure system equipment, and management/ operation method using the system
JP2002222010A (en) * 2001-01-26 2002-08-09 Daikin Ind Ltd Remote monitoring system
JP2003060800A (en) * 2001-07-31 2003-02-28 Internatl Business Mach Corp <Ibm> Method for notifying job between computer systems, computer system and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012109879A (en) * 2010-11-18 2012-06-07 Shunji Sugaya Communication connection system by polling, method, and program
JP2014182689A (en) * 2013-03-21 2014-09-29 Fuji Xerox Co Ltd Information processing system and information processing program
WO2018190219A1 (en) * 2017-04-14 2018-10-18 日本ユニシス株式会社 Connection method by activation processing of iot device
JP6997531B2 (en) 2017-04-14 2022-01-17 日本ユニシス株式会社 Connection method by activation process of IoT device device

Also Published As

Publication number Publication date
JP4858524B2 (en) 2012-01-18

Similar Documents

Publication Publication Date Title
EP2112806B1 (en) Information collecting system
JP2004280717A (en) Remote control monitoring system and information communicating method used therefor
JP6078893B2 (en) Pan-tilt-zoom device identification method, pan-tilt-zoom device, camera, and pan-tilt-zoom device control system
JP2008015837A (en) Data communication system and data communication method
JP4858524B2 (en) Remote control monitoring system
JP4858523B2 (en) Remote control monitoring system and information communication method used therefor
JP2008228297A (en) System and method for remote communication with multifunctional device
JP2007110302A (en) Emergency report system and its program
JP4566148B2 (en) Network communication monitoring system, network communication monitoring method, central device, relay device, and computer program
JP5740105B2 (en) Application monitoring method for communication system
JP3914072B2 (en) Network failure monitoring method, communication system, and line switching apparatus
JP4692419B2 (en) Network device, redundant switching method used therefor, and program thereof
JP5469043B2 (en) Remote monitoring system and remote monitoring method
JP6572488B2 (en) Conversion device and control method of conversion device
JP2008287632A (en) Control device recovery system
JP2002271524A (en) Combustion controller alarm supervisory system and remote supervisory device
US20120072545A1 (en) Remote maintenance and monitoring service framework for heterogeneous device and system
JP4411933B2 (en) Terminal device
JPH10164060A (en) Monitoring system in data communication equipment
JP2011055455A (en) Management relay server and relay communication system
JP2018064179A (en) Transmission device, program, and network system
JP2009055342A (en) Media gateway system compatible with sip
JP2006115260A (en) Communication control method, communication repeater, and communication control program
JP5790420B2 (en) Communication device, failure detection method, and failure detection program
JP2007013998A (en) Network system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110207

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111017

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

Free format text: PAYMENT UNTIL: 20141111

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees