JP5020584B2 - How to establish a communication connection - Google Patents
How to establish a communication connection Download PDFInfo
- Publication number
- JP5020584B2 JP5020584B2 JP2006261040A JP2006261040A JP5020584B2 JP 5020584 B2 JP5020584 B2 JP 5020584B2 JP 2006261040 A JP2006261040 A JP 2006261040A JP 2006261040 A JP2006261040 A JP 2006261040A JP 5020584 B2 JP5020584 B2 JP 5020584B2
- Authority
- JP
- Japan
- Prior art keywords
- time interval
- transmission time
- server
- communication connection
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、設備機器と、ルータと、該設備機器の動作の制御や設備機器の動作状態に関する情報の提供を含むサービスの要求を遠隔的に行うクライアント装置と、クライアント装置からの前記サービスの要求を示すサービス要求情報に基づいて、設備機器の動作の制御やクライアント装置への設備機器の動作状態を示す情報の提供を含むサービス提供を行うサーバとが通信ネットワークを介して接続されてなるネットワークシステムの技術分野に属し、特に、前記サーバと設備機器との通信コネクションの確立方法に関するものである。 The present invention relates to a facility device, a router, a client device that remotely requests a service including control of the operation of the facility device and provision of information related to the operation state of the facility device, and the service request from the client device. A network system in which a server that provides services including control of operation of equipment and provision of information indicating operation status of equipment to a client device is connected via a communication network based on service request information indicating In particular, the present invention relates to a method for establishing a communication connection between the server and equipment.
従来、例えば照明設備や空調設備等の設備機器と、該設備機器の動作の制御及び該設備機器の動作状態に係る情報提供を含むサービスの要求を行うクライアント装置と、クライアント装置からの要求に基づいて、設備機器の動作の制御及び該動作の状態に係る情報をクライアント装置に提供するサーバとが通信ネットワークを介して接続されてなり、TCP/IP(transmission control protocol/internet protocol)に基づく通信を行うネットワークシステムが知られている。 Conventionally, based on a request from a client device, for example, a facility device such as a lighting facility or an air conditioning facility, a client device that requests a service including control of the operation of the facility device and provision of information relating to an operation state of the facility device A server that provides control of the operation of the equipment and information related to the state of the operation to the client device via a communication network, and performs communication based on TCP / IP (transmission control protocol / internet protocol). A network system to perform is known.
このネットワークシステムでは、クライアント装置から前記サービスの要求を示す要求情報が送信されると、サーバは該要求情報を受け取り、該要求情報に基づいて設備機器の動作の制御を行ったり前記設備機器の動作状態情報を該設備機器から取得したりし、制御結果情報や前記動作状態情報をクライアント装置に返信する。 In this network system, when request information indicating a request for the service is transmitted from a client device, the server receives the request information and controls the operation of the equipment based on the request information. Status information is acquired from the equipment, and control result information and the operation status information are returned to the client device.
一方、この種の技術分野に関連する文献として、例えば下記特許文献1がある。特許文献1には、インターネットを利用して、不特定多数又は特定多数のクライアント計算機をパケット交換ネットワーク経由でサーバ計算機に接続し、クライアント計算機からの要求に応じてサーバ計算機からデータを供給するクライアントサーバシステムにおいて、サーバ計算機が、クライアント計算機へネットワーク上に確立したコネクションを介してサービスを提供するためのタスクを実行するタスク実行手段と、前記クライアント計算機に係るユーザ識別情報と該ユーザ識別情報について前記タスク実行手段により実行すべきタスクの有無を示すタスク情報とを対応付けて記憶する記憶手段と、前記クライアント計算機から1又は複数の接続要求パケットを受信する受信手段と、受信した1又は複数の前記接続要求パケットから前記ユーザ識別情報を取得する第1の取得手段と、取得した前記ユーザ識別情報に対応付けて前記記憶手段に記憶されている前記タスク情報を取得する第2の取得手段と、少なくとも取得した前記タスク情報に基づいて、前記接続要求パケットによる接続要求を許可するか否か決定する決定手段と、前記接続要求パケットによる接続要求を許可する場合に、前記コネクションを確立させるためパケットを送信する送信手段とを備える技術が開示されている。
ところで、このようなネットワークシステムでは、サーバの通信負荷を考慮して、サーバと設備機器との間を常時通信コネクションを確立した状態とはせず、UDP(User Datagram Protocol)と呼ばれる通信規約に基づく設備機器の識別情報を該設備機器からサーバに向けて定期的に送信し、通信が必要となった場合にのみ通信コネクションを確立する技術が知られている。 By the way, in such a network system, in consideration of the communication load of the server, the communication connection between the server and the equipment is not always established, but based on a communication protocol called UDP (User Datagram Protocol). A technique is known in which identification information of a facility device is periodically transmitted from the facility device to a server, and a communication connection is established only when communication is required.
しかしながら、従来では、クライアント装置から前記要求情報がサーバに送信された場合に、サーバは、この要求情報の送信先を、前述の定期的に設備機器から送信される識別情報に含まれる所定の情報に基づいて決定するようにしていたので、該識別情報を設備機器から受信したタイミングでしか、前記クライアント装置から受信した要求情報を設備機器に送信することができない。 However, conventionally, when the request information is transmitted from the client device to the server, the server specifies the transmission destination of the request information as predetermined information included in the identification information periodically transmitted from the equipment. The request information received from the client device can be transmitted to the equipment only at the timing when the identification information is received from the equipment.
ここで、設備機器からサーバに送信される識別情報の送信時間間隔を長く設定すると、例えば、或るタイミングで前記識別情報が設備機器からサーバに送信された直後に、クライアント装置からサーバに要求情報が送信された場合には、該要求情報をサーバから設備機器に送信するまでの比較的大きなタイムラグが発生し、クライアント装置に前記制御結果情報や動作状態情報を提供するタイミングが遅延する。 Here, if the transmission time interval of the identification information transmitted from the equipment to the server is set to be long, for example, immediately after the identification information is transmitted from the equipment to the server at a certain timing, the request information from the client device to the server Is transmitted, a relatively large time lag occurs until the request information is transmitted from the server to the equipment, and the timing for providing the control result information and the operation state information to the client device is delayed.
一方、設備機器からサーバに送信される識別情報の送信時間間隔が短く設定すると、前述のような前記クライアント装置への前記制御結果情報等の提供タイミングの遅延に関する問題は解決できるが、設備機器から識別情報が頻繁にサーバに送信されることとなり、サーバに多大な通信負荷がかかることとなる。 On the other hand, if the transmission time interval of the identification information transmitted from the equipment to the server is set to be short, the problem regarding the delay in providing the control result information to the client device as described above can be solved. The identification information is frequently transmitted to the server, and a large communication load is applied to the server.
本発明は、上述した問題点を解決するためになされたものであり、サーバの通信負荷を可及的に低減しつつ、クライアント装置からの要求に速やかに対応できる通信コネクションの確立方法を提供することを目的とする。 The present invention has been made to solve the above-described problems, and provides a communication connection establishment method capable of quickly responding to a request from a client device while reducing the communication load of a server as much as possible. For the purpose.
請求項1に記載の発明は、設備機器と、前記設備機器の動作の制御及び前記設備機器の動作状態に関する情報の提供のうち少なくとも一方を含むサービスの要求を行うクライアント装置と、前記クライアント装置からの前記サービスの要求を示すサービス要求情報に基づいて、前記設備機器の動作の制御及び前記クライアント装置への前記設備機器の動作状態を示す情報の提供のうち少なくとも一方を含むサービス提供を行うサーバとが通信ネットワークを介して接続されてなるネットワークシステムにおける前記サーバと前記設備機器との間の通信コネクションの確立方法であって、前記設備機器は、ルータを介して前記通信ネットワークに通信可能に接続され、前記ルータは、前記通信ネットワーク上で使用される前記設備機器のグローバルアドレスと、当該ルータと前記設備機器との間でのみ使用される前記設備機器のプライベートアドレスとを対応づけたNATテーブルを記憶するNATテーブル記憶部と、前記NATテーブルに基づいて、前記プライベートアドレスと前記グローバルアドレスとの間で相互にアドレス変換を行うアドレス変換部と、前記設備機器から送信される当該設備機器を識別するための識別情報に基づいて、また、定期的に、前記NATテーブルを更新する更新部とを備え、前記サーバが、前記設備機器から定期的に所定の送信時間間隔で送信される当該設備機器の識別情報を受信し、当該設備機器のグローバルアドレスを取得する受信ステップと、前記サーバが前記受信ステップにより受信した前記識別情報と取得した前記グローバルアドレスとを対応付けて記憶する記憶ステップと、前記サーバが、前記クライアント装置から前記サービス要求情報を受信すると、当該サービス要求情報に含まれる識別情報に対応するグローバルアドレスを前記記憶ステップで記憶したものの中から読み出す読み出しステップと、前記サーバが、前記読み出しステップで読み出したグローバルアドレスを用いて前記識別情報が示す設備機器と当該サーバとの間で通信コネクションを確立する要求を示す通信コネクション確立要求情報を生成する通信コネクション確立要求情報生成ステップと、前記サーバが、前記通信コネクション確立要求情報生成ステップで生成した通信コネクション確立要求情報を、前記受信ステップによる識別情報の受信タイミングとは独立したタイミングで送信する送信ステップと、前記設備機器が、前記サーバから受信した通信コネクション確立要求情報に基づいて、前記サーバとの間で通信コネクションを確立する通信コネクション確立ステップと、前記サーバが、前記送信時間間隔を現在の送信時間間隔と異なる送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成し、該送信時間間隔変更制御情報を、前記設備機器に送信する送信時間間隔変更制御情報送信ステップと、前記設備機器が、前記送信時間間隔変更制御情報を前記サーバから受信すると、識別情報を周期的に送信する送信時間間隔を前記送信時間間隔変更制御情報に従って変更する送信時間間隔変更ステップと、前記サーバが、前記送信ステップで、前記通信コネクション確立要求情報を設備機器に送信し、予め決められた時間内に当該設備機器との間で通信コネクションを確立できたか否かを判断する判断ステップと、前記サーバが、前記判断ステップで通信コネクションを確立できたと判断した場合には、前記送信時間間隔変更制御情報送信ステップに、現在の送信時間間隔より長い送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させて、当該設備機器に送信させ、通信コネクションを確立できなかったと判断した場合には、前記送信時間間隔変更制御情報送信ステップに、現在の送信時間間隔より短い送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させて、当該設備機器に送信させる送信時間調整ステップとを有することを特徴とするものである。
The invention according to
この発明によれば、前記サーバは、前記設備機器から定期的に送信される該設備機器を識別するための識別情報を受信すると、この識別情報を記憶する。そして、サーバは、クライアント装置から前記サービス要求情報を取得すると、このサービス要求情報に含まれる情報に対応する識別情報を前記記憶ステップで記憶したものの中から読み出し、読み出した識別情報に対応する設備機器と当該サーバとの間で通信コネクションを確立する要求を示す通信コネクション確立要求情報を生成し、この通信コネクション確立要求情報を、前記識別情報の受信タイミングとは独立して、前記要求の対象である設備機器に送信する。設備機器は、前記サーバから通信コネクション確立要求情報を受信すると、この通信コネクション確立要求情報に基づいて、前記サーバとの間で通信コネクションを確立する。 According to this invention, when the server receives the identification information for identifying the facility device that is periodically transmitted from the facility device, the server stores the identification information. When the server acquires the service request information from the client device, the server reads out the identification information corresponding to the information included in the service request information from those stored in the storage step, and the equipment corresponding to the read identification information Communication connection establishment request information indicating a request for establishing a communication connection between the server and the server is generated, and the communication connection establishment request information is a target of the request independently of the reception timing of the identification information. Send to equipment. When the equipment receives the communication connection establishment request information from the server, the equipment establishes a communication connection with the server based on the communication connection establishment request information.
このように、通信コネクション確立要求情報を、前記識別情報の受信タイミングとは独立して、前記要求の対象である設備機器に送信するようにしたから、サーバと設備機器との通信コネクションを速やかに確立することができる。 As described above, since the communication connection establishment request information is transmitted to the equipment that is the target of the request independently of the reception timing of the identification information, the communication connection between the server and the equipment can be quickly established. Can be established.
更に、サーバから前記設備機器の識別情報の送信時間間隔を変更することができるから、設備機器のファームウェアを変更する必要がない。
Furthermore , since the transmission time interval of the identification information of the facility device can be changed from the server, it is not necessary to change the firmware of the facility device.
請求項2に記載の発明は、上記通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記更新部によるNATテーブルを定期的に更新する間隔に基づいて、前記識別情報の送信時間間隔を設定するステップであることを特徴とするものである。
The invention described in
この発明によれば、前記更新部によるNATテーブルの更新時間間隔に基づいて、前記識別情報の送信時間間隔を設定するので、NATテーブルの更新時間間隔が変更された場合には、その変更された更新時間間隔に応じた識別情報の送信時間間隔を設定することができる。 According to this invention, since the transmission time interval of the identification information is set based on the update time interval of the NAT table by the update unit, when the update time interval of the NAT table is changed, the change is made. The transmission time interval of identification information according to the update time interval can be set.
請求項3に記載の発明は、上記通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記サーバが、前記送信時間間隔を1回の変更につき、前記送信時間間隔の変更量について予め決められた設定変更量だけ小さくするステップであり、前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できなかったと判断した場合には、前記通信コネクションを確立できたと判断するまで、前記送信時間間隔変更制御情報送信ステップを実行させるステップであることを特徴とするものである。
The invention according to
この発明によれば、ルータのNATテーブルの更新時間間隔に対して、前記設備機器の識別情報の送信時間間隔が長い(大きい)場合に、前記設備機器の識別情報の送信時間間隔が、前記NATテーブルの更新時間間隔に応じた値に、段階的に短く(小さく)される。 According to the present invention, when the transmission time interval of the identification information of the equipment device is long (large) with respect to the update time interval of the NAT table of the router, the transmission time interval of the identification information of the equipment device is the NAT. The value is shortened (decreased) step by step to a value corresponding to the table update time interval.
請求項4に記載の発明は、上記に通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記サーバが、前記送信時間間隔を1回の変更につき、前記送信時間間隔の変更量について予め決められた設定変更量だけ大きくするステップであり、前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できたと判断した場合には、前記送信時間間隔変更制御情報送信ステップを実行し、前記通信コネクションを確立できなくなったと判断したときには、前記送信時間間隔変更制御情報送信ステップに、前記通信コネクションを確立できたと判断した最新の時点で設定されていた送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させ、当該設備機器に送信させるステップであることを特徴とするものである。
According to a fourth aspect of the present invention, in the above-described communication connection establishment method, the transmission time interval change control information transmission step includes: the server changing the transmission time interval for one change of the transmission time interval. a step to increase by a predetermined setting change amount for the amount, the transmission time adjustment step, before Symbol server, if it is determined that can establish the communication connection at the determining step, the transmission time interval changing executes a control information transmission steps, when it is determined that it is impossible to establish the communication connection, the transmission time interval change control information transmitting step, has been set in the latest time point where it is determined that can establish the communication connection to produce a transmission time interval changing control information indicating an instruction to change the transmission time interval, the equipment unit It is characterized in that a step of transmitting to.
この発明によれば、ルータのNATテーブルの更新時間間隔に対して、前記設備機器の識別情報の送信時間間隔が短い(小さい)場合に、前記設備機器の識別情報の送信時間間隔が、前記NATテーブルの更新時間間隔に応じた値に、段階的に長く(大きく)される。 According to the present invention, when the transmission time interval of the identification information of the equipment device is short (small) with respect to the update time interval of the NAT table of the router, the transmission time interval of the identification information of the equipment device is the NAT. The value is increased (increased) stepwise to a value corresponding to the table update time interval.
本発明によれば、サーバと設備機器との通信コネクションを速やかに確立することができるから、クライアント装置からの要求に速やかに対応することが可能となる。
According to the present invention, the communication connection between the server and the equipment can be quickly established, so that it is possible to quickly respond to the request from the client device.
また、本発明によれば、設備機器のファームウェアを変更することなく、サーバから識別情報の送信時間間隔を変更することができるので、前記設備機器の識別情報の送信時間間隔を遠隔的に変更できるとともに、ファームウェアの変更作業が不要となる分、前記識別情報の送信時間間隔の変更に要する時間を短縮することができる。
In addition, according to the present invention, since the transmission time interval of the identification information can be changed from the server without changing the firmware of the equipment device, the transmission time interval of the identification information of the equipment device can be changed remotely. At the same time, the time required for changing the transmission time interval of the identification information can be shortened by the amount that the firmware change operation is unnecessary.
更に、本発明によれば、ルータの設定変更や機種変更により、該ルータのNATテーブル更新時間間隔が変更された場合であっても、サーバの通信負荷及びクライアント装置の要求に対する応答性の点で前記NATテーブル更新時間間隔に最適な識別情報の送信時間間隔を自動的に設定することができる。
Further, according to the present invention, even when the NAT table update time interval of the router is changed due to a router setting change or model change, the server communication load and the responsiveness to the request of the client device are considered. The transmission time interval of identification information that is optimal for the NAT table update time interval can be automatically set.
以下、本発明に係るネットワークシステムの実施形態を図面に基づいて説明する。図1は、本実施形態のネットワークシステムの構成図である。 Embodiments of a network system according to the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of a network system according to the present embodiment.
図1に示すように、本実施形態のネットワークシステム1は、例えばビル等に設置される照明設備や空調設備等のIPデバイス(前記設備機器に相当)2と、IPデバイス2の動作の制御や状態の監視、IPデバイス2に関する各種情報の収集及び管理を行うサーバ3と、サーバ3に対してIPデバイス2の情報の要求や該IPデバイス2の制御指示を遠隔的に行うためのクライアント装置4と、IPデバイス2を通信ネットワーク6に通信可能に接続するためのルータ5とを備えて構成されている。なお、図1では、IPデバイス2、サーバ3、クライアント装置4、ルータ5がそれぞれ1台ずつ設けられた形態を示しているが、サーバ3を含む各機器の台数はこれに限られるものではない。
As shown in FIG. 1, the
サーバ3は、クライアント装置4との間で、例えばTCP/IP(transmission control protocol/internet protocol)に基づく通信を行う。また、サーバ3の通信負荷を考慮して、サーバ3とIPデバイス2とは常時通信コネクションを確立した状態とはせず、サーバ3からIPデバイス2へのアクセスが必要となった場合を含む予め決められた場合にのみ、TCP/IP(transmission control protocol/internet protocol)に基づく通信コネクションを確立し、それ以外の場合には、IPデバイス2は、サーバ3との間でUDP(User Datagram Protocol)に基づく通信を行う。
The
図2は、IPデバイス2の構成を示すブロック図である。IPデバイス2は、前述の照明設備、冷暖房等の空調設備の他に、煙感知器等からなる防災設備、ブラインド設備、あるいはインターホンからなるセキュリティ設備等も含み、図2に示すように、動作部21と、通信部22と、制御部23とを備える。
FIG. 2 is a block diagram showing the configuration of the
動作部21は、当該IPデバイス2の目的・機能を果たすべく動作する部分であり、例えば照明設備では照明光を出力する構成に相当し、空調設備では冷気や暖気を生成して外部に送出する構成に相当する。通信部22は、サーバ3との間で前記通信規約に基づく通信を行うものであり、後述するクライアント装置4から出力された要求情報をサーバ3を介して受信し、該情報を当該IPデバイス2の制御部23に出力したり、制御部23によって取得された動作部21の状態、例えば照明光の出力のオン/オフ状態や該照明光の強度を示す情報(以下、動作状態情報という)を該制御部23から受け取ってサーバ3に送信したりする機能を有する。
The
制御部23は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、動作制御部231と、通信制御部233と、記憶部232とを備える。
The
動作制御部231は、サーバ3から送信されてくるクライアント装置4からの要求情報に基づいて前記動作部21の動作を制御するものである。例えば、当該IPデバイス2が照明設備であり、サーバ3から送信されてくるクライアント装置4からの要求情報が照明設備のオンを要求する旨の情報である場合には、動作制御部231は、この情報に従って照明光が出力されるように動作部21を制御する。
The
また、動作制御部231は、前記動作状態情報を動作部21から取得し、該動作状態情報を当該IPデバイス2と通信コネクションが確立されたサーバ3に送信する指示を通信部22に出力する。
In addition, the
記憶部232は、IPデバイス2の個体を識別するための識別子(以下、オブジェクトID(Identification)という)及び後述するUDPST(User Datagram Protocol Shoulder Tap)の送信時間間隔を示す情報を記憶するものである。本ネットワークシステム1においては、前述したように、サーバ3の通信負荷を考慮して、サーバ3からIPデバイス2へのアクセスが必要となった場合以外は、UDPに基づく通信を行い、その際、IPデバイス2は、当該IPデバイス2の識別情報である前記UDPSTをサーバ3に向けて定期的に送信する。
The
通信制御部233は、前記UDPSTを定期的にサーバ3に送信するとともに、サーバ3から何らかの指示を示す情報があった場合に応答(返信)するものである。本ネットワークシステム1においては、サーバ3から前記UDPSTの送信時間間隔の変更指示によりUDPSTの送信時間間隔が変更可能となっており、通信制御部233は、サーバ3から前記指示を受けると、前記記憶部232に記憶されたUDPSTの送信時間間隔を示す情報を指示された送信時間間隔を示す情報に変更する。
The
図3は、クライアント装置4の構成を示すブロック図である。クライアント装置4は、例えばパーソナルコンピュータであり、入力操作部41と、表示部42と、外部記憶部43と、制御部44と、通信部45とを備える。
FIG. 3 is a block diagram showing the configuration of the
入力操作部41は、IPデバイス2に関する情報の収集や前記IPデバイス2の動作制御の要求を行うべく、ユーザが制御部44に所望の処理・動作を行わせる指示を入力するためのものであり、例えばキーボードやマウスに相当する。表示部42は、例えばLCD(Liquid Crystal Display)やプラズマディスプレイ等からなり、当該クライアント装置4の制御部44により収集された各種情報等の表示を行うものである。外部記憶部43は、例えばハードディスクやメモリカードからなり、各種のプログラムやデータを記憶するものである。
The
制御部44は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、要求情報生成部441と、返信取得部442と、記憶部443と、表示制御部444とを備える。
The
要求情報生成部441は、入力操作部41により要求が入力されると、その要求内容を示す要求情報を生成し、当該クライアント装置4との間で通信コネクションが確立されたサーバ3に該要求情報を送信する指示を通信部45に出力するものである。
When a request is input by the
要求情報生成部441は、例えば、入力操作部41によりIPデバイス2の動作状態を要求する入力がなされると、その要求内容を示す情報(以下、動作状態要求情報という)を生成し、該情報をサーバ3に送信し、また、例えば、入力操作部41によりIPデバイス2の動作制御(動作状態の変更)を要求する情報、例えば照明光の出力をオンにするとか該照明光の強度を2段階下げるなどの要求が入力されると、該要求内容を示す情報(以下、動作制御要求情報という)を生成し、該情報をサーバ3に送信する。
For example, when an input requesting the operation state of the
返信取得部442は、通信部45で受信されたサーバ3からの返信を前記通信部45から取得するものである。返信取得部442は、例えば、前記動作状態要求情報に対してIPデバイス2から出力された動作状態情報を通信部45を介してサーバ3から取得し、また、前記動作制御要求情報に基づいて動作したIPデバイス2から出力されるその動作結果を示す情報(以下、動作結果情報という)を通信部45を介してサーバ3から取得する。
The
記憶部443は、当該クライアント装置4との間で通信コネクションが確立されたサーバ3から受け取ったオブジェクトIDを記憶するものである。表示制御部444は、返信取得部442で取得された前記動作状態情報や動作結果情報に基づいて、前記入力操作部41による要求対象のIPデバイス2の動作状態や動作結果を表示部42に表示させるものである。
The
通信部45は、サーバ3との間で前記通信規約に基づく通信を行うものであり、前記要求情報生成部441により生成された前記動作状態要求情報や動作制御要求情報を制御部44から受け取り、当該クライアント装置4との間で通信コネクションが確立されたサーバ3に送信するとともに、前記動作状態情報や動作結果情報をサーバ3から受け取り、これらの情報を制御部44に出力する。
The
図4は、サーバ3の構成を示すブロック図である。サーバ3は、当該ネットワークシステム1内に設置されたIPデバイス2に関するサービスをクライアント装置4に提供するためのコンピュータであり、制御部31と、通信部32とを備える。
FIG. 4 is a block diagram showing the configuration of the
制御部31は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、サービス提供部311と、記憶部312とを備える。
The
サービス提供部311は、IPデバイス2に関する情報の通信をIPデバイス2やクライアント装置4との間で行うものである。例えば、サービス提供部311は、IPデバイス2から受信した動作状態情報や動作結果情報をクライアント装置4に送信したり、クライアント装置4から受信した前記動作状態要求情報や動作制御要求情報をIPデバイス2に送信したりする。
The
また、サービス提供部311は、前記UDPSTの送信時間間隔を変更する送信時間間隔変更部3111を備え、図6〜図9に示す、IPデバイス2との通信コネクションの確立に関する各種処理を実行するものである、なお、この処理については、後述する。
Further, the
記憶部312は、IPデバイス2のIPアドレスとオブジェクトIDとが対応付けられたテーブルと、前記IPデバイス2から定期的に送信されるUDPSTを記憶するものである。
The
通信部32は、IPデバイス2やクライアント装置4との間で前記通信規約に基づく通信を行うものであり、サービス提供部311からの指示にしたがって前記各種の情報の送受を行うものである。
The
図5は、ルータ5の構成を示すブロック図である。図5に示すように、ルータ5は、アドレス変換部511、記憶部512及び更新部513を備えた制御部51と、第1、第2通信部52,53とを有する。
FIG. 5 is a block diagram showing the configuration of the
アドレス変換部511は、当該ルータ5と前記IPデバイス2との間でのみ使用される前記IPデバイス2のプライベートアドレスと、前記通信ネットワーク6上で使用される前記IPデバイス2のグローバルアドレスとの間で相互にアドレス変換を行うものである。アドレス変換部511は、サーバ3から受信した何らかの指示を示す情報を解析し、その中に該情報の送信元として埋め込まれているグローバルアドレスを、後述する記憶部512に記憶されたNAT(Network Address Translation)テーブルを利用してプライベートアドレスに変換し、該プライベートアドレスに対応するIPデバイス2に前記情報を送信する。また、同様にして、アドレス変換部511は、IPデバイス2から受信した前記動作状態情報や動作結果情報を解析し、その中に該情報の送信元として埋め込まれているプライベートアドレスを、後述する記憶部512に記憶されたNATテーブルを利用してグローバルアドレスに変換し、該グローバルアドレスに対応するサーバ3に前記情報を送信する。
The
記憶部512は、前記プライベートアドレスとグローバルアドレスとの対応関係を示すNATテーブルを記憶するものである。更新部513は、前記IPデバイス2から当該ルータ5を経由してサーバ3にUDPSTが送信される際に、該UDPSTに基づいて、前記記憶部512に記憶されたNATテーブルを定期的に(繰り返し)更新するものである。
The
第1通信部52は、当該ルータ5に接続されたIPデバイス2のうち、前記アドレス変換部511により変換されたプライベートアドレスに対応するIPデバイス2に、サーバ3から送信されてきた情報を送信したり、当該ルータ5に接続されたIPデバイス2から送信されてきた情報を制御部51に送信したりするものである。
The
第2通信部53は、前記アドレス変換部511により変換されたグローバルアドレスに対応するクライアント装置4を管理するサーバ3に、制御部51から送信されてきた情報を送信したり、サーバ3から送信されてきた情報を制御部51に送信したりするものである。
The second communication unit 53 transmits the information transmitted from the
次に、本実施形態におけるネットワークシステム1の特徴部分である通信処理について図6〜図9を参照して説明する。なお、図6〜図9に示すサーバ3の処理は、主に前記サービス提供部311による処理である。
Next, communication processing that is a characteristic part of the
(1)まず、サーバ3は、IPデバイス2からUDPSTを定期的に受信し、該UDPSTを受信するたびに、記憶部312に該UDPSTを更新的に記憶する。或るタイミングでクライアント装置4からログイン要求が発生すると(♯1)、クライアント装置4は、IPデバイス2の動作の制御やIPデバイス2の動作状態に関する情報の提供の要求を行うべくサーバ3に向けて通信コネクションの確立を要求するサービス要求情報を送信する(♯2)。このサービス要求情報には、対象のIPデバイスのオブジェクトIDが含まれている。
(1) First, the
サーバ3は、クライアント装置4から受信した前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯3)。
When the
ここで、この通信コネクション確立指示情報の送信は、IPデバイス2からサーバ3に定期的に送信されるUDPSTとは非同期で(独立して)送信される。なお、図6には、IPデバイス2からサーバ3へのUDPSTの定期送信を、他の情報の通信と区別を容易にするため、矢印に丸印を付加して示している。
Here, the communication connection establishment instruction information is transmitted asynchronously (independently) with UDPST that is periodically transmitted from the
そして、IPデバイス2は、サーバ3から前記通信コネクション確立指示情報を受信すると、サーバ3に対して通信コネクションの確立を了解した旨の応答を行い(♯4)、サーバ3は、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯5)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯6)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯7)。
When the
このように、クライアント装置4から前記サービス要求情報を受信したサーバ3は、通信コネクションの確立を指示する通信コネクション確立指示情報をIPデバイス2に送信するタイミングを、IPデバイス2からサーバ3に定期的に送信されるUDPSTの送信タイミングとは無関係に(独立して或いは非同期で)送信するようにしたので、従来のように、サーバ3がUDPSTを受信するまで前記通信コネクション確立指示情報をIPデバイス2に送信するのを待機する必要がなくなる。その結果、クライアント装置4からのサービス要求情報の生成タイミングに対して遅延することなく、サーバ3とIPデバイス2との間の通信コネクションを確立することができる。
As described above, the
(2)ルータ5のNATテーブル更新時間間隔が、ルータ5の設定変更或いはルータ5の機種変更により変更されたことで(♯10)、クライアント装置4からIPデバイス2が保持する変数の変更が運用により行われると、クライアント装置4は、サーバ3に向けて通信コネクションの確立を要求するサービス要求情報を送信する(♯11)。さらに、クライアント装置4は、前記変更後のUDPSTの送信間隔を変更する要求を行う送信時間間隔変更要求情報を送信する(♯12)。
(2) When the NAT table update time interval of the
そして、サーバ3は、♯11でクライアント装置4から受信したサービス要求情報に含まれるIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯13)。IPデバイス2は、サーバ3から前記通信コネクション確立指示情報を受信すると、サーバ3に対して通信コネクションの確立を了解した旨の応答を行い(♯14)、サーバ3は、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯15)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。
Then, the
次に、サーバ3は、♯12でクライアント装置4から受信した前記送信時間間隔変更要求情報に基づき、UDPSTの送信時間間隔を変更する指示を行う送信時間間隔変更制御情報をIPデバイス2に送信する(♯16)。IPデバイス2は、この送信時間間隔変更制御情報に基づき、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯17)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。図7は、UDPSTの送信時間間隔がΔTuからΔTu’に大きく変更されたことを示している。
Next, the
なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯18)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯19)。
After that, when there is no access from the
その後、サーバ3は、或るタイミングでクライアント装置4からサービス要求情報を受信し(♯20)、更に、クライアント装置4からUDPSTの送信時間間隔を示す情報の読み出しを要求する送信時間間隔読出要求情報を受信すると(♯21)、♯20で受信したサービス要求情報に含まれるIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯22)。IPデバイス2は、サーバ3から前記通信コネクション確立指示情報を受信すると、サーバ3に対して通信コネクションの確立を了解した旨の応答を行い(♯23)、サーバ3は、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯24)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。
Thereafter, the
そして、サーバ3は、♯21でクライアント装置4から受信した前記送信時間間隔読出要求情報に基づき、前記変更後のUDPSTの送信時間間隔を読み出す指示を示す送信時間間隔読出指示情報をIPデバイス2に送信する(♯25)。その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する要求情報を送信する(♯26)。サーバ3は、この要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯27)。
Then, based on the transmission time interval read request information received from the
このように、サーバ3から通信ネットワーク6を介して遠隔的に前記IPデバイス2のUDPSTの送信時間間隔を変更可能としたので、IPデバイス2のファームウェアを変更することなく、送信時間間隔を変更することができる。その結果、ファームウェアの変更作業が不要となる分、UDPSTの送信時間間隔の変更に要する時間を短縮することが可能となる。
Thus, since the UDPST transmission time interval of the
また、本実施形態によれば、UDPSTの送信時間間隔の変更がなされた後においても、サーバ3からIPデバイス2に対して、UDPSTの送信タイミングとは無関係に(独立して或いは非同期で)、サーバ3とIPデバイス2との間の通信コネクションを遅延なく確立することができる。
Further, according to the present embodiment, even after the UDPST transmission time interval is changed, regardless of the UDPST transmission timing from the
(3)クライアント装置4からの要求情報に対して、サーバ3からIPデバイス2に即時に(予め決められた時間内に)通信コネクションの確立を要求する要求情報をIPデバイス2に送信できない場合には、サーバ3は、IPデバイス2によるUDPSTの送信時間間隔を短くする。以下、具体的な処理について説明する。
(3) When request information for requesting establishment of a communication connection from the
サーバ3は、クライアント装置4から通信コネクションの確立を要求するサービス要求情報を受信すると(♯31)、前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯32)。
When the
しかし、サーバ3は、IPデバイス2から通信コネクションを確立する返信が無く、♯32の処理をN回実行(リトライ)しても或る一定時間内に前記返信がIPデバイス2から無い場合には、リトライ失敗の情報(以下、失敗情報という)を記憶する(♯33)。
However, if the
次に、サーバ3は、IPデバイス2からUDPSTが送信されてきたタイミングで再度IPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信すると(♯34)、この場合は、IPデバイス2からサーバ3に対して通信コネクションの確立を要求する通信コネクション確立要求情報が送信される(♯35)。サーバ3は、この通信コネクション確立要求情報をIPデバイス2から受信すると、そのIPデバイス2に対して通信コネクションを確立する返信処理を行い(♯36)、また、クライアント装置4に対して通信コネクションを確立する返信処理を行う(♯37)。
Next, the
サーバ3は、♯33で記憶した失敗情報によりリトライが失敗した履歴があることを認識し、IPデバイス2におけるUDPSTの送信時間間隔を現在の送信時間間隔より短い所定値に変更する指示を行う送信時間間隔変更指示情報をIPデバイス2に送信する(♯38)。IPデバイス2は、この送信時間間隔変更指示情報に基づいて、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯39)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。
The
なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯40)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯41)。
After that, when there is no access from the
そして、サーバ3は、今回行ったIPデバイス2との通信コネクションの確立においてリトライ失敗が発生していないか否かを判断し、リトライ失敗が発生したものと判断すると、サーバ3は、♯32の処理を再度実行する。その結果、IPデバイス2から通信コネクションを確立する返信が無く、♯32の処理をN回実行(リトライ)しても或る一定時間内に前記返信がIPデバイス2から無い場合には、サーバ3は、♯32〜♯40までの処理を再度実行する。
Then, the
このようにして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生しなくなるまで、♯32〜♯40を繰り返し実行する。その際、現在のUDPSTの送信時間間隔をΔTu、該送信時間間隔の変更1回当たりの変更量をΔt0、変更後のUDPSTの送信時間間隔をΔTu’とすると、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生しなくなるまで、
ΔTu’=ΔTu−Δt0
に基づいてUDPSTの送信時間間隔の変更を繰り返し行う。
In this way, the
ΔTu ′ = ΔTu−Δt0
Based on the above, the transmission time interval of UDPST is repeatedly changed.
そして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生しなくなると、一連の処理を終了する。
Then, when no retry failure occurs in the establishment of the communication connection with the
以上のように、ルータ5のNATテーブル更新時間間隔に対して、UDPSTの送信時間間隔が短い場合に、サーバ3が、ルータ5のNATテーブル更新時間間隔とIPデバイス2のUDPSTの送信時間間隔との違いを検出して、UDPSTの送信時間間隔を変更するようにしたので、ルータ5のNATテーブル更新時間間隔が、ルータ5の設定変更や機種変更などにより変更された場合であっても、サーバ3の通信負荷及びクライアント装置4の要求に対する応答性の点で最適なUDPSTの送信時間間隔を自動的に設定することができる。
As described above, when the UDPST transmission time interval is shorter than the NAT table update time interval of the
(4)IPデバイス2から送信されるUDPSTによってサーバ3への通信負荷が高い状態にある場合や、クライアント装置4からの要求に対してサーバ3がIPデバイス2に通信コネクションの確立を指示する通信コネクション確立指示情報を即時に送信できる状態にある場合には、サーバ3は、IPデバイス2のUDPSTの送信時間間隔を大きくする。以下、具体的な処理について説明する。
(4) Communication in which the communication load on the
サーバ3は、クライアント装置4から通信コネクションの確立を要求するサービス要求情報を受信すると(♯41)、前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯42)。
When the
そして、サーバ3は、♯42の要求情報に対してIPデバイス2から即時に(所定時間内に)、通信コネクションの確立を了解した旨の応答が返ってくると(♯44)、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯45)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。
When the
また、サーバ3は、このIPデバイス2から即時に前記返信を受信したことを記憶するとともに、クライアント装置4に対して通信コネクションを確立する返信処理を行う(♯45)。
Further, the
次に、サーバ3は、リトライが失敗していないことを認識し、IPデバイス2におけるUDPSTの送信時間間隔を現在の送信時間間隔より長い所定値に変更する指示を行う送信時間間隔変更指示情報をIPデバイス2に送信する(♯46)。IPデバイス2は、この送信時間間隔変更指示情報に基づいて、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯47)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。
Next, the
なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPアドレス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯48)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯49)。
After that, when there is no access from the
そして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生していないか否かを判断し、リトライ失敗が発生していないものと判断すると、サーバ3は、♯42の処理を再度実行する。そして、サーバ3は、♯42の指示情報に対してIPデバイス2から即時に通信コネクションの確立する返信処理がなされた場合には、サーバ3は、♯46〜♯49までの処理を再度実行する。
Then, the
このようにして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生するまで、♯42〜♯49を繰り返し実行する。その際、現在のUDPSTの送信時間間隔をΔTu、該送信時間間隔の変更1回当たりの変更量をΔt0、変更後のUDPSTの送信時間間隔をΔTu’とすると、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生するまで、
ΔTu’=ΔTu+Δt0
に基づいてUDPSTの送信時間間隔の変更を繰り返し行う。
In this way, the
ΔTu ′ = ΔTu + Δt0
Based on the above, the transmission time interval of UDPST is repeatedly changed.
そして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生すると、UDPSTの送信時間間隔を、今回の変更前におけるUDPSTの送信時間間隔(前回の変更後における送信時間間隔、通信コネクションの確立が成功したときの送信時間間隔)に戻した上で、IPデバイス2との通信コネクションを切断し、一連の処理を終了する。
Then, when a retry failure occurs in the establishment of the communication connection with the
以上のように、ルータ5のNATテーブル更新時間間隔に対して、UDPSTの送信時間間隔が長い場合に、サーバ3が、ルータ5のNATテーブル更新時間間隔とIPデバイス2のUDPSTの送信時間間隔との違いを検出してUDPSTの送信時間間隔に変更するようにしたので、サーバ3とIPデバイス2との通信コネクションを、できるだけ速く確立できるようにすることができるとともに、ルータ5のNATテーブル更新時間間隔が、ルータ5の設定変更や機種変更などにより変更された場合であっても、サーバ3の通信負荷及びクライアント装置4の要求に対する応答性の点で最適なUDPSTの送信時間間隔を自動的に設定することができる。
As described above, when the UDPST transmission time interval is longer than the NAT table update time interval of the
1 ネットワークシステム
2 デバイス
21 動作部
22 通信部
23 制御部
231 動作制御部
232 記憶部
233 通信制御部
3 サーバ
31 制御部
311 サービス提供部
3111 送信時間間隔変更部
312 記憶部
32 通信部
4 クライアント装置
41 入力操作部
42 表示部
43 外部記憶部
44 制御部
441 要求情報生成部
442 返信取得部
443 記憶部
444 表示制御部
45 通信部
5 ルータ
51 制御部
511 アドレス変換部
512 記憶部
513 更新部
52,53 第1、第2通信部
6 通信ネットワーク
DESCRIPTION OF
Claims (4)
前記設備機器は、ルータを介して前記通信ネットワークに通信可能に接続され、
前記ルータは、
前記通信ネットワーク上で使用される前記設備機器のグローバルアドレスと、当該ルータと前記設備機器との間でのみ使用される前記設備機器のプライベートアドレスとを対応づけたNATテーブルを記憶するNATテーブル記憶部と、
前記NATテーブルに基づいて、前記プライベートアドレスと前記グローバルアドレスとの間で相互にアドレス変換を行うアドレス変換部と、
前記設備機器から送信される当該設備機器を識別するための識別情報に基づいて、また、定期的に、前記NATテーブルを更新する更新部とを備え、
前記サーバが、前記設備機器から定期的に所定の送信時間間隔で送信される当該設備機器の識別情報を受信し、当該設備機器のグローバルアドレスを取得する受信ステップと、
前記サーバが前記受信ステップにより受信した前記識別情報と取得した前記グローバルアドレスとを対応付けて記憶する記憶ステップと、
前記サーバが、前記クライアント装置から前記サービス要求情報を受信すると、当該サービス要求情報に含まれる識別情報に対応するグローバルアドレスを前記記憶ステップで記憶したものの中から読み出す読み出しステップと、
前記サーバが、前記読み出しステップで読み出したグローバルアドレスを用いて前記識別情報が示す設備機器と当該サーバとの間で通信コネクションを確立する要求を示す通信コネクション確立要求情報を生成する通信コネクション確立要求情報生成ステップと、
前記サーバが、前記通信コネクション確立要求情報生成ステップで生成した通信コネクション確立要求情報を、前記受信ステップによる識別情報の受信タイミングとは独立したタイミングで送信する送信ステップと、
前記設備機器が、前記サーバから受信した通信コネクション確立要求情報に基づいて、前記サーバとの間で通信コネクションを確立する通信コネクション確立ステップと、
前記サーバが、前記送信時間間隔を現在の送信時間間隔と異なる送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成し、該送信時間間隔変更制御情報を、前記設備機器に送信する送信時間間隔変更制御情報送信ステップと、
前記設備機器が、前記送信時間間隔変更制御情報を前記サーバから受信すると、識別情報を周期的に送信する送信時間間隔を前記送信時間間隔変更制御情報に従って変更する送信時間間隔変更ステップと、
前記サーバが、前記送信ステップで、前記通信コネクション確立要求情報を設備機器に送信し、予め決められた時間内に当該設備機器との間で通信コネクションを確立できたか否かを判断する判断ステップと、
前記サーバが、前記判断ステップで通信コネクションを確立できたと判断した場合には、前記送信時間間隔変更制御情報送信ステップに、現在の送信時間間隔より長い送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させて、当該設備機器に送信させ、通信コネクションを確立できなかったと判断した場合には、前記送信時間間隔変更制御情報送信ステップに、現在の送信時間間隔より短い送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させて、当該設備機器に送信させる送信時間調整ステップと
を有することを特徴とする通信コネクションの確立方法。 A client device that makes a request for a service that includes at least one of facility equipment, control of the operation of the equipment and provision of information relating to the operating state of the equipment, and a service request that indicates a request for the service from the client device Based on the information, a server that provides a service including at least one of control of the operation of the facility device and provision of information indicating the operation state of the facility device to the client device is connected via a communication network. A method for establishing a communication connection between the server and the equipment in a network system comprising:
The facility device is communicably connected to the communication network via a router,
The router
A NAT table storage unit for storing a NAT table in which a global address of the equipment used on the communication network is associated with a private address of the equipment used only between the router and the equipment When,
An address translation unit that performs address translation between the private address and the global address based on the NAT table;
An update unit that updates the NAT table based on identification information for identifying the facility device transmitted from the facility device, and periodically,
The server receives the identification information of the facility device periodically transmitted from the facility device at a predetermined transmission time interval, and receives the global address of the facility device;
A storage step of storing the identification information received by the server in the receiving step in association with the acquired global address;
When the server receives the service request information from the client device, a read step of reading a global address corresponding to the identification information included in the service request information from those stored in the storage step;
Communication connection establishment request information in which the server generates communication connection establishment request information indicating a request for establishing a communication connection between the equipment indicated by the identification information and the server using the global address read in the reading step. Generation step;
A transmission step in which the server transmits the communication connection establishment request information generated in the communication connection establishment request information generation step at a timing independent of the reception timing of the identification information in the reception step;
The facility device establishes a communication connection with the server based on the communication connection establishment request information received from the server, and a communication connection establishment step ,
The server generates transmission time interval change control information indicating an instruction to change the transmission time interval to a transmission time interval different from the current transmission time interval, and transmits the transmission time interval change control information to the facility device. A transmission time interval change control information transmission step;
When the equipment receives the transmission time interval change control information from the server, a transmission time interval change step of changing the transmission time interval for periodically transmitting identification information according to the transmission time interval change control information;
A determination step in which the server transmits the communication connection establishment request information to the facility device in the transmission step, and determines whether a communication connection has been established with the facility device within a predetermined time; ,
A transmission time interval indicating an instruction to change the transmission time interval change control information transmission step to a transmission time interval longer than the current transmission time interval when the server determines that the communication connection has been established in the determination step. When the change control information is generated and transmitted to the equipment, and it is determined that the communication connection cannot be established, the transmission time interval change control information transmission step is set to a transmission time interval shorter than the current transmission time interval. A transmission time adjustment step of generating transmission time interval change control information indicating an instruction to be changed and transmitting the information to the equipment device .
ことを特徴とする請求項1に記載の通信コネクションの確立方法。 The transmission time interval changing control information transmitting step wherein the NAT table by the update unit based on the interval to periodically update, to claim 1, characterized in that the step of setting the transmission time interval of the identification information The communication connection establishment method described.
前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できなかったと判断した場合には、前記通信コネクションを確立できたと判断するまで、前記送信時間間隔変更制御情報送信ステップを実行させるステップである
ことを特徴とする請求項1又は2に記載の通信コネクションの確立方法。 The transmission time interval change control information transmission step is a step in which the server reduces the transmission time interval by a predetermined setting change amount for the change amount of the transmission time interval per change.
The transmission time adjustment step, before Symbol server, if it is determined that it could not establish the communication connection at the determining step, until it is determined that can establish the communication connection, the transmission time interval changing control information transmitting step method for establishing a communication connection according to claim 1 or 2, characterized in that a step of Ru to execute the flop.
前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できたと判断した場合には、前記送信時間間隔変更制御情報送信ステップを実行し、前記通信コネクションを確立できなくなったと判断したときには、前記送信時間間隔変更制御情報送信ステップに、前記通信コネクションを確立できたと判断した最新の時点で設定されていた送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させ、当該設備機器に送信させるステップである
ことを特徴とする請求項1又は2に記載の通信コネクションの確立方法。
The transmission time interval change control information transmission step is a step in which the server increases the transmission time interval by one set change amount determined in advance for the change amount of the transmission time interval per change.
The transmission time adjustment step, before Symbol server, if it is determined that can establish the communication connection at the determining step performs the transmission time interval change control information transmission steps, is no longer able to establish the communication connection when it is determined that the said transmission time interval changing control information transmitting step, the the most recent transmission time interval changing control information indicating an instruction to change the transmission time interval that has been set in a time point determined that communication can be established connection is generated, how to establish the communication connection according to claim 1 or 2, characterized in that a step of transmitting to the equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006261040A JP5020584B2 (en) | 2006-09-26 | 2006-09-26 | How to establish a communication connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006261040A JP5020584B2 (en) | 2006-09-26 | 2006-09-26 | How to establish a communication connection |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008083826A JP2008083826A (en) | 2008-04-10 |
JP5020584B2 true JP5020584B2 (en) | 2012-09-05 |
Family
ID=39354675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006261040A Expired - Fee Related JP5020584B2 (en) | 2006-09-26 | 2006-09-26 | How to establish a communication connection |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5020584B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3445986B1 (en) * | 2002-09-27 | 2003-09-16 | 松下電器産業株式会社 | Servers, devices and communication systems connected to the Internet |
JP2006050124A (en) * | 2004-08-03 | 2006-02-16 | Matsushita Electric Ind Co Ltd | Information processing system, information processing apparatus, server apparatus, and information processing method |
JP3999785B2 (en) * | 2005-01-20 | 2007-10-31 | 株式会社フラクタリスト | Communication method |
JP2006203609A (en) * | 2005-01-21 | 2006-08-03 | Matsushita Electric Ind Co Ltd | Information processor, server device, and information processing method |
-
2006
- 2006-09-26 JP JP2006261040A patent/JP5020584B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008083826A (en) | 2008-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4337591B2 (en) | Information processing apparatus, network system, and network system control method | |
EP3229420A1 (en) | Method for establishing persistent connection between multiple smart devices and server, and smart device | |
KR101000056B1 (en) | Air-conditioner system and its operating method | |
EP1693812A1 (en) | Method of controlling plurality of home devices using single controller and system thereof | |
US11098914B2 (en) | System and method for operating a HVAC system by determining occupied state of a structure via IP address | |
WO2021154906A1 (en) | Network message transmissions reduction systems and methods | |
US20090013082A1 (en) | Field communication system, field server, field device, and field communication method | |
KR101985694B1 (en) | IoT SERVICE SYSTEM FOR ROOM TEMPERATURE CONTROL, FIRE ALARM AND SUPRESSION USING MQTT, AND METHOD THEREOF | |
JP5020584B2 (en) | How to establish a communication connection | |
JP2008215637A (en) | Remote management system of air conditioner and initializing device of air conditioner | |
WO2017199283A1 (en) | Air conditioning management device and program | |
JP4971888B2 (en) | Remote control system | |
JP5155606B2 (en) | Remote control system | |
JP5175474B2 (en) | Device control system | |
EP3937468A1 (en) | Managing certificates in a building management system | |
US20170094035A1 (en) | Management method and management device | |
JP2014060636A (en) | Communication interface conversion device | |
JP4826829B2 (en) | Network management server, program, network, and power management method | |
EP3096505B1 (en) | Method and apparatus for processing interactions between devices | |
JP6165106B2 (en) | Facility equipment system and controller | |
JP2008027144A (en) | Gateway device and controlled device | |
WO2009150805A1 (en) | Equipment device management apparatus, equipment device management system and equipment device management method | |
JP2006311407A (en) | Data communication system for system protection relay device | |
JP2003348671A (en) | Facility supervisory control system | |
JP4760662B2 (en) | Service program, server, network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090519 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110512 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110614 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110727 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20120111 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120117 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120405 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20120416 |
|
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: 20120605 |
|
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: 20120613 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150622 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |