JP5020584B2 - How to establish a communication connection - Google Patents

How to establish a communication connection Download PDF

Info

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
Application number
JP2006261040A
Other languages
Japanese (ja)
Other versions
JP2008083826A (en
Inventor
喜昭 上野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2006261040A priority Critical patent/JP5020584B2/en
Publication of JP2008083826A publication Critical patent/JP2008083826A/en
Application granted granted Critical
Publication of JP5020584B2 publication Critical patent/JP5020584B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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の取得手段と、少なくとも取得した前記タスク情報に基づいて、前記接続要求パケットによる接続要求を許可するか否か決定する決定手段と、前記接続要求パケットによる接続要求を許可する場合に、前記コネクションを確立させるためパケットを送信する送信手段とを備える技術が開示されている。
特開2006−185194号公報
On the other hand, as a document related to this type of technical field, for example, there is Patent Document 1 below. Patent Document 1 discloses a client server that uses the Internet to connect an unspecified number or specified number of client computers to a server computer via a packet switching network, and supplies data from the server computer in response to a request from the client computer. In the system, the server computer executes a task for providing a service via a connection established on the network to the client computer, user identification information related to the client computer, and the task regarding the user identification information Storage means for associating and storing task information indicating the presence or absence of a task to be executed by the execution means; receiving means for receiving one or more connection request packets from the client computer; and the received one or more of the connections From the request packet First acquisition means for acquiring user identification information, second acquisition means for acquiring the task information stored in the storage means in association with the acquired user identification information, and at least the acquired task Determining means for deciding whether or not to permit a connection request by the connection request packet based on information, and a transmission means for transmitting a packet for establishing the connection when permitting a connection request by the connection request packet; A technique comprising:
JP 2006-185194 A

ところで、このようなネットワークシステムでは、サーバの通信負荷を考慮して、サーバと設備機器との間を常時通信コネクションを確立した状態とはせず、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 claim 1 is a client device that makes a request for a service including at least one of equipment equipment, control of operation of the equipment equipment, and provision of information related to an operating state of the equipment equipment, and the client equipment A server for providing a service including at least one of control of the operation of the facility device and provision of information indicating an operation state of the facility device to the client device based on service request information indicating the request for the service Is a method for establishing a communication connection between the server and the equipment in a network system in which the equipment is connected via a communication network, and the equipment is communicably connected to the communication network via a router. The router is a glow of the equipment used on the communication network. A NAT table storage unit that stores a NAT table in which a network address is associated with a private address of the facility device that is used only between the router and the facility device, and the private address based on the NAT table The NAT table is periodically updated based on an address conversion unit that performs mutual address conversion with the global address, and identification information that identifies the facility device transmitted from the facility device. An update unit that receives the identification information of the facility device that is periodically transmitted from the facility device at a predetermined transmission time interval, and obtains a global address of the facility device; The identification information received by the server in the receiving step and the acquired global address; A storing step for storing the information in association with the server, and when the server receives the service request information from the client device, reads out the global address corresponding to the identification information included in the service request information from those stored in the storing step. A communication process for generating a 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 read step; A connection establishment request information generation step, and 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. And a communication connection establishment step in which the facility device establishes a communication connection with the server based on communication connection establishment request information received from the server, and the server transmits the transmission time interval to the current transmission time. A transmission time interval change control information transmission step of generating transmission time interval change control information indicating an instruction to change to a transmission time interval different from the time interval, and transmitting the transmission time interval change control information to the equipment device; When the device receives the transmission time interval change control information from the server, a transmission time interval change step for changing a transmission time interval for periodically transmitting identification information according to the transmission time interval change control information, and the server, In the transmission step, the communication connection establishment request information is transmitted to the equipment device, and within a predetermined time A determination step of determining whether or not a communication connection has been established with the equipment, and a transmission time interval change control information transmission if the server determines that a communication connection has been established in the determination step When the transmission time interval change control information indicating an instruction to change to a transmission time interval longer than the current transmission time interval is generated in the step and transmitted to the equipment, and it is determined that the communication connection could not be established, The transmission time interval change control information transmission step generates transmission time interval change control information indicating an instruction to change to a transmission time interval shorter than the current transmission time interval, and transmits the transmission time adjustment step to the equipment. It is characterized by having.

この発明によれば、前記サーバは、前記設備機器から定期的に送信される該設備機器を識別するための識別情報を受信すると、この識別情報を記憶する。そして、サーバは、クライアント装置から前記サービス要求情報を取得すると、このサービス要求情報に含まれる情報に対応する識別情報を前記記憶ステップで記憶したものの中から読み出し、読み出した識別情報に対応する設備機器と当該サーバとの間で通信コネクションを確立する要求を示す通信コネクション確立要求情報を生成し、この通信コネクション確立要求情報を、前記識別情報の受信タイミングとは独立して、前記要求の対象である設備機器に送信する。設備機器は、前記サーバから通信コネクション確立要求情報を受信すると、この通信コネクション確立要求情報に基づいて、前記サーバとの間で通信コネクションを確立する。   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.

請求項に記載の発明は、上記通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記更新部によるNATテーブルを定期的に更新する間隔に基づいて、前記識別情報の送信時間間隔を設定するステップであることを特徴とするものである。
The invention described in claim 2 is the method of establishing the communication connection, the transmission time interval changing control information transmitting step wherein the NAT table by the update unit based on the interval to periodically update the transmission of the identification information This is a step of setting a time interval.

この発明によれば、前記更新部による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.

請求項に記載の発明は、上記通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記サーバが、前記送信時間間隔を1回の変更につき、前記送信時間間隔の変更量について予め決められた設定変更量だけ小さくするステップであり、前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できなかったと判断した場合には、前記通信コネクションを確立できたと判断するまで、前記送信時間間隔変更制御情報送信ステップを実行させるステップであることを特徴とするものである。
The invention according to claim 3, in establishing the method of the communication connection, the transmission time interval changing control information transmitting step wherein the server, per the transmission time interval once the change, the change amount of the transmission time interval for a step to minimize predetermined set change amount, the transmission time adjusting step, if the previous SL server has determined that it could not establish the communication connection at the determining step, establishing said communication connection until it is determined that could, is characterized in that said a step of Ru to execute the transmission time interval change control information transmitting step.

この発明によれば、ルータの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.

請求項に記載の発明は、上記に通信コネクションの確立方法において、前記送信時間間隔変更制御情報送信ステップは、前記サーバが、前記送信時間間隔を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 network system 1 according to the present embodiment includes, for example, an IP device 2 (equivalent to the equipment) such as a lighting facility or an air conditioning facility installed in a building, and control of the operation of the IP device 2. A server 3 that monitors the status and collects and manages various information related to the IP device 2, and a client device 4 that remotely requests the server 3 to request information about the IP device 2 and control the IP device 2. And a router 5 for connecting the IP device 2 to the communication network 6 in a communicable manner. Although FIG. 1 shows a configuration in which one IP device 2, one server 3, one client device 4, and one router 5 are provided, the number of devices including the server 3 is not limited to this. .

サーバ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 server 3 communicates with the client device 4 based on, for example, TCP / IP (transmission control protocol / internet protocol). In consideration of the communication load of the server 3, the server 3 and the IP device 2 do not always establish a communication connection and include a case where access from the server 3 to the IP device 2 is required in advance. A communication connection based on TCP / IP (transmission control protocol / internet protocol) is established only when determined, and in other cases, the IP device 2 communicates with the server 3 by UDP (User Datagram Protocol). Communication based on.

図2は、IPデバイス2の構成を示すブロック図である。IPデバイス2は、前述の照明設備、冷暖房等の空調設備の他に、煙感知器等からなる防災設備、ブラインド設備、あるいはインターホンからなるセキュリティ設備等も含み、図2に示すように、動作部21と、通信部22と、制御部23とを備える。   FIG. 2 is a block diagram showing the configuration of the IP device 2. The IP device 2 includes, in addition to the above-described lighting equipment and air conditioning equipment such as air conditioning, a disaster prevention equipment made up of smoke detectors, blind equipment, security equipment made up of an intercom, etc., as shown in FIG. 21, a communication unit 22, and a control unit 23.

動作部21は、当該IPデバイス2の目的・機能を果たすべく動作する部分であり、例えば照明設備では照明光を出力する構成に相当し、空調設備では冷気や暖気を生成して外部に送出する構成に相当する。通信部22は、サーバ3との間で前記通信規約に基づく通信を行うものであり、後述するクライアント装置4から出力された要求情報をサーバ3を介して受信し、該情報を当該IPデバイス2の制御部23に出力したり、制御部23によって取得された動作部21の状態、例えば照明光の出力のオン/オフ状態や該照明光の強度を示す情報(以下、動作状態情報という)を該制御部23から受け取ってサーバ3に送信したりする機能を有する。   The operating unit 21 is a part that operates to fulfill the purpose and function of the IP device 2. For example, the lighting unit corresponds to a configuration that outputs illumination light, and the air conditioning unit generates cold air or warm air and sends it out. Corresponds to the configuration. The communication unit 22 performs communication based on the communication protocol with the server 3, receives request information output from the client device 4 described later via the server 3, and receives the information from the IP device 2. Information indicating the on / off state of the illumination light output and the intensity of the illumination light (hereinafter referred to as operation state information). It has a function of receiving from the control unit 23 and transmitting it to the server 3.

制御部23は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、動作制御部231と、通信制御部233と、記憶部232とを備える。   The control unit 23 is composed of, for example, a microcomputer incorporating a ROM for storing a control program, a RAM for temporarily storing data, and the like, and functionally, an operation control unit 231, a communication control unit 233, and a storage unit 232. With.

動作制御部231は、サーバ3から送信されてくるクライアント装置4からの要求情報に基づいて前記動作部21の動作を制御するものである。例えば、当該IPデバイス2が照明設備であり、サーバ3から送信されてくるクライアント装置4からの要求情報が照明設備のオンを要求する旨の情報である場合には、動作制御部231は、この情報に従って照明光が出力されるように動作部21を制御する。   The operation control unit 231 controls the operation of the operation unit 21 based on request information from the client device 4 transmitted from the server 3. For example, when the IP device 2 is a lighting facility and the request information from the client device 4 transmitted from the server 3 is information indicating that the lighting facility is to be turned on, the operation control unit 231 The operation unit 21 is controlled so that illumination light is output according to the information.

また、動作制御部231は、前記動作状態情報を動作部21から取得し、該動作状態情報を当該IPデバイス2と通信コネクションが確立されたサーバ3に送信する指示を通信部22に出力する。   In addition, the operation control unit 231 acquires the operation state information from the operation unit 21, and outputs an instruction to the communication unit 22 to transmit the operation state information to the server 3 in which the communication connection with the IP device 2 is established.

記憶部232は、IPデバイス2の個体を識別するための識別子(以下、オブジェクトID(Identification)という)及び後述するUDPST(User Datagram Protocol Shoulder Tap)の送信時間間隔を示す情報を記憶するものである。本ネットワークシステム1においては、前述したように、サーバ3の通信負荷を考慮して、サーバ3からIPデバイス2へのアクセスが必要となった場合以外は、UDPに基づく通信を行い、その際、IPデバイス2は、当該IPデバイス2の識別情報である前記UDPSTをサーバ3に向けて定期的に送信する。   The storage unit 232 stores an identifier for identifying the individual IP device 2 (hereinafter referred to as an object ID (Identification)) and information indicating a transmission time interval of a UDPST (User Datagram Protocol Shoulder Tap) described later. . In the present network system 1, as described above, in consideration of the communication load of the server 3, communication based on UDP is performed except when access from the server 3 to the IP device 2 is required. The IP device 2 periodically transmits the UDPST, which is identification information of the IP device 2, toward the server 3.

通信制御部233は、前記UDPSTを定期的にサーバ3に送信するとともに、サーバ3から何らかの指示を示す情報があった場合に応答(返信)するものである。本ネットワークシステム1においては、サーバ3から前記UDPSTの送信時間間隔の変更指示によりUDPSTの送信時間間隔が変更可能となっており、通信制御部233は、サーバ3から前記指示を受けると、前記記憶部232に記憶されたUDPSTの送信時間間隔を示す情報を指示された送信時間間隔を示す情報に変更する。   The communication control unit 233 periodically transmits the UDPST to the server 3 and responds (replies) when there is information indicating some instruction from the server 3. In this network system 1, the UDPST transmission time interval can be changed by an instruction to change the UDPST transmission time interval from the server 3. When the communication control unit 233 receives the instruction from the server 3, the storage control unit 233 receives the instruction. The information indicating the transmission time interval of UDPST stored in unit 232 is changed to the information indicating the specified transmission time interval.

図3は、クライアント装置4の構成を示すブロック図である。クライアント装置4は、例えばパーソナルコンピュータであり、入力操作部41と、表示部42と、外部記憶部43と、制御部44と、通信部45とを備える。   FIG. 3 is a block diagram showing the configuration of the client device 4. The client device 4 is a personal computer, for example, and includes an input operation unit 41, a display unit 42, an external storage unit 43, a control unit 44, and a communication unit 45.

入力操作部41は、IPデバイス2に関する情報の収集や前記IPデバイス2の動作制御の要求を行うべく、ユーザが制御部44に所望の処理・動作を行わせる指示を入力するためのものであり、例えばキーボードやマウスに相当する。表示部42は、例えばLCD(Liquid Crystal Display)やプラズマディスプレイ等からなり、当該クライアント装置4の制御部44により収集された各種情報等の表示を行うものである。外部記憶部43は、例えばハードディスクやメモリカードからなり、各種のプログラムやデータを記憶するものである。   The input operation unit 41 is used by the user to input an instruction for causing the control unit 44 to perform desired processing / operation in order to collect information on the IP device 2 and to request operation control of the IP device 2. For example, it corresponds to a keyboard or a mouse. The display unit 42 includes, for example, an LCD (Liquid Crystal Display), a plasma display, or the like, and displays various information collected by the control unit 44 of the client device 4. The external storage unit 43 is composed of, for example, a hard disk or a memory card, and stores various programs and data.

制御部44は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、要求情報生成部441と、返信取得部442と、記憶部443と、表示制御部444とを備える。   The control unit 44 is composed of, for example, a microcomputer that includes a ROM that stores a control program, a RAM that temporarily stores data, and the like, and functionally includes a request information generation unit 441, a reply acquisition unit 442, and a storage unit. 443 and a display control unit 444.

要求情報生成部441は、入力操作部41により要求が入力されると、その要求内容を示す要求情報を生成し、当該クライアント装置4との間で通信コネクションが確立されたサーバ3に該要求情報を送信する指示を通信部45に出力するものである。   When a request is input by the input operation unit 41, the request information generation unit 441 generates request information indicating the request content, and transmits the request information to the server 3 in which a communication connection is established with the client device 4. Is transmitted to the communication unit 45.

要求情報生成部441は、例えば、入力操作部41によりIPデバイス2の動作状態を要求する入力がなされると、その要求内容を示す情報(以下、動作状態要求情報という)を生成し、該情報をサーバ3に送信し、また、例えば、入力操作部41によりIPデバイス2の動作制御(動作状態の変更)を要求する情報、例えば照明光の出力をオンにするとか該照明光の強度を2段階下げるなどの要求が入力されると、該要求内容を示す情報(以下、動作制御要求情報という)を生成し、該情報をサーバ3に送信する。   For example, when an input requesting the operation state of the IP device 2 is made by the input operation unit 41, the request information generation unit 441 generates information indicating the request content (hereinafter referred to as operation state request information). To the server 3 and, for example, information for requesting the operation control (change of the operation state) of the IP device 2 by the input operation unit 41, for example, turning on the illumination light output or setting the intensity of the illumination light to 2 When a request for lowering the level is input, information indicating the request content (hereinafter referred to as operation control request information) is generated and transmitted to the server 3.

返信取得部442は、通信部45で受信されたサーバ3からの返信を前記通信部45から取得するものである。返信取得部442は、例えば、前記動作状態要求情報に対してIPデバイス2から出力された動作状態情報を通信部45を介してサーバ3から取得し、また、前記動作制御要求情報に基づいて動作したIPデバイス2から出力されるその動作結果を示す情報(以下、動作結果情報という)を通信部45を介してサーバ3から取得する。   The reply acquisition unit 442 acquires the reply from the server 3 received by the communication unit 45 from the communication unit 45. For example, the reply acquisition unit 442 acquires the operation state information output from the IP device 2 in response to the operation state request information from the server 3 via the communication unit 45, and operates based on the operation control request information. Information indicating the operation result output from the IP device 2 (hereinafter referred to as operation result information) is acquired from the server 3 via the communication unit 45.

記憶部443は、当該クライアント装置4との間で通信コネクションが確立されたサーバ3から受け取ったオブジェクトIDを記憶するものである。表示制御部444は、返信取得部442で取得された前記動作状態情報や動作結果情報に基づいて、前記入力操作部41による要求対象のIPデバイス2の動作状態や動作結果を表示部42に表示させるものである。   The storage unit 443 stores the object ID received from the server 3 that has established a communication connection with the client device 4. The display control unit 444 displays the operation state and operation result of the request target IP device 2 by the input operation unit 41 on the display unit 42 based on the operation state information and operation result information acquired by the reply acquisition unit 442. It is something to be made.

通信部45は、サーバ3との間で前記通信規約に基づく通信を行うものであり、前記要求情報生成部441により生成された前記動作状態要求情報や動作制御要求情報を制御部44から受け取り、当該クライアント装置4との間で通信コネクションが確立されたサーバ3に送信するとともに、前記動作状態情報や動作結果情報をサーバ3から受け取り、これらの情報を制御部44に出力する。   The communication unit 45 performs communication based on the communication protocol with the server 3, receives the operation state request information and the operation control request information generated by the request information generation unit 441 from the control unit 44, While transmitting to the server 3 with which the communication connection was established with the said client apparatus 4, the said operation state information and operation result information are received from the server 3, and these information is output to the control part 44.

図4は、サーバ3の構成を示すブロック図である。サーバ3は、当該ネットワークシステム1内に設置されたIPデバイス2に関するサービスをクライアント装置4に提供するためのコンピュータであり、制御部31と、通信部32とを備える。   FIG. 4 is a block diagram showing the configuration of the server 3. The server 3 is a computer for providing a service related to the IP device 2 installed in the network system 1 to the client device 4, and includes a control unit 31 and a communication unit 32.

制御部31は、例えば制御プログラムを記憶するROMや一時的にデータを記憶するRAM等が内蔵されたマイクロコンピュータからなり、機能的に、サービス提供部311と、記憶部312とを備える。   The control unit 31 is composed of, for example, a microcomputer having a ROM that stores a control program, a RAM that temporarily stores data, and the like, and functionally includes a service providing unit 311 and a storage unit 312.

サービス提供部311は、IPデバイス2に関する情報の通信をIPデバイス2やクライアント装置4との間で行うものである。例えば、サービス提供部311は、IPデバイス2から受信した動作状態情報や動作結果情報をクライアント装置4に送信したり、クライアント装置4から受信した前記動作状態要求情報や動作制御要求情報をIPデバイス2に送信したりする。   The service providing unit 311 communicates information regarding the IP device 2 with the IP device 2 and the client device 4. For example, the service providing unit 311 transmits the operation state information and operation result information received from the IP device 2 to the client device 4, and the operation state request information and operation control request information received from the client device 4 are transmitted to the IP device 2. Or send to.

また、サービス提供部311は、前記UDPSTの送信時間間隔を変更する送信時間間隔変更部3111を備え、図6〜図9に示す、IPデバイス2との通信コネクションの確立に関する各種処理を実行するものである、なお、この処理については、後述する。   Further, the service providing unit 311 includes a transmission time interval changing unit 3111 that changes the UDPST transmission time interval, and executes various processes related to establishment of a communication connection with the IP device 2 shown in FIGS. This process will be described later.

記憶部312は、IPデバイス2のIPアドレスとオブジェクトIDとが対応付けられたテーブルと、前記IPデバイス2から定期的に送信されるUDPSTを記憶するものである。   The storage unit 312 stores a table in which the IP address of the IP device 2 and the object ID are associated with each other, and UDPST periodically transmitted from the IP device 2.

通信部32は、IPデバイス2やクライアント装置4との間で前記通信規約に基づく通信を行うものであり、サービス提供部311からの指示にしたがって前記各種の情報の送受を行うものである。   The communication unit 32 performs communication based on the communication protocol with the IP device 2 and the client device 4, and transmits and receives the various types of information according to instructions from the service providing unit 311.

図5は、ルータ5の構成を示すブロック図である。図5に示すように、ルータ5は、アドレス変換部511、記憶部512及び更新部513を備えた制御部51と、第1、第2通信部52,53とを有する。   FIG. 5 is a block diagram showing the configuration of the router 5. As illustrated in FIG. 5, the router 5 includes a control unit 51 including an address conversion unit 511, a storage unit 512, and an update unit 513, and first and second communication units 52 and 53.

アドレス変換部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 address conversion unit 511 is between the private address of the IP device 2 used only between the router 5 and the IP device 2 and the global address of the IP device 2 used on the communication network 6. The address conversion is performed mutually. The address conversion unit 511 analyzes information indicating some instruction received from the server 3, and a global address embedded in the information as a transmission source of the information is stored in a NAT (Network Address) stored in the storage unit 512 described later. The information is converted into a private address using the Translation table, and the information is transmitted to the IP device 2 corresponding to the private address. Similarly, the address conversion unit 511 analyzes the operation state information and operation result information received from the IP device 2, and stores a private address embedded in the information as a transmission source of the information described later. The information is converted into a global address using the NAT table stored in the unit 512, and the information is transmitted to the server 3 corresponding to the global address.

記憶部512は、前記プライベートアドレスとグローバルアドレスとの対応関係を示すNATテーブルを記憶するものである。更新部513は、前記IPデバイス2から当該ルータ5を経由してサーバ3にUDPSTが送信される際に、該UDPSTに基づいて、前記記憶部512に記憶されたNATテーブルを定期的に(繰り返し)更新するものである。   The storage unit 512 stores a NAT table indicating the correspondence between the private address and the global address. When the UDPST is transmitted from the IP device 2 to the server 3 via the router 5, the update unit 513 periodically (repetitively repeats) the NAT table stored in the storage unit 512 based on the UDPST. ) Update.

第1通信部52は、当該ルータ5に接続されたIPデバイス2のうち、前記アドレス変換部511により変換されたプライベートアドレスに対応するIPデバイス2に、サーバ3から送信されてきた情報を送信したり、当該ルータ5に接続されたIPデバイス2から送信されてきた情報を制御部51に送信したりするものである。   The first communication unit 52 transmits the information transmitted from the server 3 to the IP device 2 corresponding to the private address converted by the address conversion unit 511 among the IP devices 2 connected to the router 5. Or the information transmitted from the IP device 2 connected to the router 5 is transmitted to the control unit 51.

第2通信部53は、前記アドレス変換部511により変換されたグローバルアドレスに対応するクライアント装置4を管理するサーバ3に、制御部51から送信されてきた情報を送信したり、サーバ3から送信されてきた情報を制御部51に送信したりするものである。   The second communication unit 53 transmits the information transmitted from the control unit 51 to the server 3 that manages the client device 4 corresponding to the global address converted by the address conversion unit 511 or is transmitted from the server 3. The received information is transmitted to the control unit 51.

次に、本実施形態におけるネットワークシステム1の特徴部分である通信処理について図6〜図9を参照して説明する。なお、図6〜図9に示すサーバ3の処理は、主に前記サービス提供部311による処理である。   Next, communication processing that is a characteristic part of the network system 1 in this embodiment will be described with reference to FIGS. The processing of the server 3 shown in FIGS. 6 to 9 is mainly processing by the service providing unit 311.

(1)まず、サーバ3は、IPデバイス2からUDPSTを定期的に受信し、該UDPSTを受信するたびに、記憶部312に該UDPSTを更新的に記憶する。或るタイミングでクライアント装置4からログイン要求が発生すると(♯1)、クライアント装置4は、IPデバイス2の動作の制御やIPデバイス2の動作状態に関する情報の提供の要求を行うべくサーバ3に向けて通信コネクションの確立を要求するサービス要求情報を送信する(♯2)。このサービス要求情報には、対象のIPデバイスのオブジェクトIDが含まれている。   (1) First, the server 3 periodically receives UDPST from the IP device 2 and stores the UDPST in the storage unit 312 in an updated manner every time the UDPST is received. When a login request is generated from the client apparatus 4 at a certain timing (# 1), the client apparatus 4 is directed to the server 3 to request control of the operation of the IP device 2 and provision of information regarding the operation state of the IP device 2. Service request information requesting establishment of a communication connection is transmitted (# 2). This service request information includes the object ID of the target IP device.

サーバ3は、クライアント装置4から受信した前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯3)。   When the server 3 extracts an object ID from the service request information received from the client device 4 and refers to the storage unit 312 to detect an IP address corresponding to the object ID, the IP device 2 corresponding to the IP address Communication connection establishment instruction information for instructing establishment of a communication connection is transmitted (# 3).

ここで、この通信コネクション確立指示情報の送信は、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 device 2 to the server 3. In FIG. 6, the periodic transmission of UDPST from the IP device 2 to the server 3 is indicated by adding a circle to the arrow in order to easily distinguish it from communication of other information.

そして、IPデバイス2は、サーバ3から前記通信コネクション確立指示情報を受信すると、サーバ3に対して通信コネクションの確立を了解した旨の応答を行い(♯4)、サーバ3は、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯5)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯6)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯7)。   When the IP device 2 receives the communication connection establishment instruction information from the server 3, the IP device 2 responds to the server 3 that the establishment of the communication connection is accepted (# 4). Response confirmation information indicating that the response to be transmitted has been confirmed is transmitted (# 5). Thereby, a communication connection between the IP device 2 and the server 3 is established. After that, when there is no access from the server 3 for a certain period, the IP device 2 transmits communication connection cutoff request information requesting the server 3 to cut off the established communication connection (# 6). Upon receiving this communication connection cutoff request information, the server 3 performs a reply process for cutting off the communication connection to the IP device 2 (# 7).

このように、クライアント装置4から前記サービス要求情報を受信したサーバ3は、通信コネクションの確立を指示する通信コネクション確立指示情報をIPデバイス2に送信するタイミングを、IPデバイス2からサーバ3に定期的に送信されるUDPSTの送信タイミングとは無関係に(独立して或いは非同期で)送信するようにしたので、従来のように、サーバ3がUDPSTを受信するまで前記通信コネクション確立指示情報をIPデバイス2に送信するのを待機する必要がなくなる。その結果、クライアント装置4からのサービス要求情報の生成タイミングに対して遅延することなく、サーバ3とIPデバイス2との間の通信コネクションを確立することができる。   As described above, the server 3 that has received the service request information from the client device 4 periodically sends the communication connection establishment instruction information for instructing establishment of the communication connection to the IP device 2 from the IP device 2 to the server 3. The transmission connection establishment instruction information is transmitted until the server 3 receives the UDPST as in the prior art. No need to wait to send to As a result, the communication connection between the server 3 and the IP device 2 can be established without delay with respect to the generation timing of the service request information from the client device 4.

(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 router 5 is changed by changing the setting of the router 5 or changing the model of the router 5 (# 10), the change of the variable held by the IP device 2 from the client device 4 is operated. Then, the client device 4 transmits service request information for requesting establishment of a communication connection to the server 3 (# 11). Further, the client device 4 transmits transmission time interval change request information for requesting to change the transmission interval of the changed UDPST (# 12).

そして、サーバ3は、♯11でクライアント装置4から受信したサービス要求情報に含まれるIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯13)。IPデバイス2は、サーバ3から前記通信コネクション確立指示情報を受信すると、サーバ3に対して通信コネクションの確立を了解した旨の応答を行い(♯14)、サーバ3は、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯15)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。   Then, the server 3 transmits communication connection establishment instruction information instructing establishment of a communication connection to the IP device 2 corresponding to the IP address included in the service request information received from the client apparatus 4 in # 11 (# 13). ). When the IP device 2 receives the communication connection establishment instruction information from the server 3, the IP device 2 responds to the server 3 that the establishment of the communication connection is accepted (# 14), and the server 3 is transmitted from the IP device 2. Response confirmation information indicating that the response has been confirmed is transmitted (# 15). Thereby, a communication connection between the IP device 2 and the server 3 is established.

次に、サーバ3は、♯12でクライアント装置4から受信した前記送信時間間隔変更要求情報に基づき、UDPSTの送信時間間隔を変更する指示を行う送信時間間隔変更制御情報をIPデバイス2に送信する(♯16)。IPデバイス2は、この送信時間間隔変更制御情報に基づき、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯17)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。図7は、UDPSTの送信時間間隔がΔTuからΔTu’に大きく変更されたことを示している。   Next, the server 3 transmits to the IP device 2 transmission time interval change control information for giving an instruction to change the UDPST transmission time interval based on the transmission time interval change request information received from the client device 4 in # 12. (# 16). The IP device 2 changes the UDPST transmission time interval stored in the storage unit 232 based on the transmission time interval change control information (# 17). Thus, the IP device 2 transmits UDPST to the server 3 based on the updated transmission time interval. FIG. 7 shows that the UDPST transmission time interval has been greatly changed from ΔTu to ΔTu ′.

なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯18)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯19)。   After that, when there is no access from the server 3 for a certain period, the IP device 2 transmits communication connection cutoff request information requesting the server 3 to cut off the established communication connection (# 18). Upon receiving this communication connection cutoff request information, the server 3 performs a reply process for cutting off the communication connection to the IP device 2 (# 19).

その後、サーバ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 server 3 receives service request information from the client device 4 at a certain timing (# 20), and further transmits transmission time interval read request information for requesting reading of information indicating the UDPST transmission time interval from the client device 4. (# 21), communication connection establishment instruction information for instructing establishment of a communication connection is transmitted to the IP device 2 corresponding to the IP address included in the service request information received at # 20 (# 22). Upon receiving the communication connection establishment instruction information from the server 3, the IP device 2 responds to the server 3 that the establishment of the communication connection is accepted (# 23), and the server 3 is transmitted from the IP device 2. Response confirmation information indicating that the response has been confirmed is transmitted (# 24). Thereby, a communication connection between the IP device 2 and the server 3 is established.

そして、サーバ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 client device 4 in # 21, the server 3 sends transmission time interval read instruction information indicating an instruction to read the changed UDPST transmission time interval to the IP device 2. Transmit (# 25). Thereafter, when there is no access from the server 3 for a certain period, the IP device 2 transmits request information for requesting the server 3 to cut off the established communication connection (# 26). Upon receiving this request information, the server 3 performs a reply process for cutting off the communication connection to the IP device 2 (# 27).

このように、サーバ3から通信ネットワーク6を介して遠隔的に前記IPデバイス2のUDPSTの送信時間間隔を変更可能としたので、IPデバイス2のファームウェアを変更することなく、送信時間間隔を変更することができる。その結果、ファームウェアの変更作業が不要となる分、UDPSTの送信時間間隔の変更に要する時間を短縮することが可能となる。   Thus, since the UDPST transmission time interval of the IP device 2 can be changed remotely from the server 3 via the communication network 6, the transmission time interval can be changed without changing the firmware of the IP device 2. be able to. As a result, the time required for changing the UDPST transmission time interval can be shortened by the amount that the firmware change operation becomes unnecessary.

また、本実施形態によれば、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 server 3 to the IP device 2 (independently or asynchronously), A communication connection between the server 3 and the IP device 2 can be established without delay.

(3)クライアント装置4からの要求情報に対して、サーバ3からIPデバイス2に即時に(予め決められた時間内に)通信コネクションの確立を要求する要求情報をIPデバイス2に送信できない場合には、サーバ3は、IPデバイス2によるUDPSTの送信時間間隔を短くする。以下、具体的な処理について説明する。   (3) When request information for requesting establishment of a communication connection from the server 3 to the IP device 2 immediately (within a predetermined time) cannot be transmitted to the IP device 2 in response to request information from the client device 4 The server 3 shortens the UDPST transmission time interval by the IP device 2. Specific processing will be described below.

サーバ3は、クライアント装置4から通信コネクションの確立を要求するサービス要求情報を受信すると(♯31)、前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯32)。   When the server 3 receives service request information requesting establishment of a communication connection from the client device 4 (# 31), the server 3 extracts an object ID from the service request information and refers to the storage unit 312 to correspond to the object ID. When an IP address to be detected is detected, communication connection establishment instruction information for instructing establishment of a communication connection is transmitted to the IP device 2 corresponding to the IP address (# 32).

しかし、サーバ3は、IPデバイス2から通信コネクションを確立する返信が無く、♯32の処理をN回実行(リトライ)しても或る一定時間内に前記返信がIPデバイス2から無い場合には、リトライ失敗の情報(以下、失敗情報という)を記憶する(♯33)。   However, if the server 3 does not receive a reply for establishing a communication connection from the IP device 2 and the reply is not received from the IP device 2 within a certain time even if the process of # 32 is executed N times (retry). Then, retry failure information (hereinafter referred to as failure information) is stored (# 33).

次に、サーバ3は、IPデバイス2からUDPSTが送信されてきたタイミングで再度IPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信すると(♯34)、この場合は、IPデバイス2からサーバ3に対して通信コネクションの確立を要求する通信コネクション確立要求情報が送信される(♯35)。サーバ3は、この通信コネクション確立要求情報をIPデバイス2から受信すると、そのIPデバイス2に対して通信コネクションを確立する返信処理を行い(♯36)、また、クライアント装置4に対して通信コネクションを確立する返信処理を行う(♯37)。   Next, the server 3 transmits communication connection establishment instruction information for instructing establishment of a communication connection to the IP device 2 again at the timing when UDPST is transmitted from the IP device 2 (# 34). Communication connection establishment request information for requesting establishment of a communication connection is transmitted from IP device 2 to server 3 (# 35). Upon receiving this communication connection establishment request information from the IP device 2, the server 3 performs a reply process for establishing a communication connection to the IP device 2 (# 36), and establishes a communication connection to the client apparatus 4. An established reply process is performed (# 37).

サーバ3は、♯33で記憶した失敗情報によりリトライが失敗した履歴があることを認識し、IPデバイス2におけるUDPSTの送信時間間隔を現在の送信時間間隔より短い所定値に変更する指示を行う送信時間間隔変更指示情報をIPデバイス2に送信する(♯38)。IPデバイス2は、この送信時間間隔変更指示情報に基づいて、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯39)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。   The server 3 recognizes that there is a history of retry failure from the failure information stored in # 33, and sends an instruction to change the UDPST transmission time interval in the IP device 2 to a predetermined value shorter than the current transmission time interval. Time interval change instruction information is transmitted to IP device 2 (# 38). The IP device 2 changes the UDPST transmission time interval stored in the storage unit 232 based on the transmission time interval change instruction information (# 39). Thus, the IP device 2 transmits UDPST to the server 3 based on the updated transmission time interval.

なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPデバイス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯40)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯41)。   After that, when there is no access from the server 3 for a certain period, the IP device 2 transmits communication connection cutoff request information requesting the server 3 to cut off the established communication connection (# 40). Upon receiving this communication connection cutoff request information, the server 3 performs a reply process for cutting off the communication connection to the IP device 2 (# 41).

そして、サーバ3は、今回行ったIPデバイス2との通信コネクションの確立においてリトライ失敗が発生していないか否かを判断し、リトライ失敗が発生したものと判断すると、サーバ3は、♯32の処理を再度実行する。その結果、IPデバイス2から通信コネクションを確立する返信が無く、♯32の処理をN回実行(リトライ)しても或る一定時間内に前記返信がIPデバイス2から無い場合には、サーバ3は、♯32〜♯40までの処理を再度実行する。   Then, the server 3 determines whether or not a retry failure has occurred in the establishment of the communication connection with the IP device 2 performed this time. When determining that the retry failure has occurred, the server 3 Run the process again. As a result, if there is no reply for establishing a communication connection from the IP device 2 and the reply is not received from the IP device 2 within a certain time even if the process of # 32 is executed N times (retry), the server 3 Performs the processes from # 32 to # 40 again.

このようにして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生しなくなるまで、♯32〜♯40を繰り返し実行する。その際、現在のUDPSTの送信時間間隔をΔTu、該送信時間間隔の変更1回当たりの変更量をΔt0、変更後のUDPSTの送信時間間隔をΔTu’とすると、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生しなくなるまで、
ΔTu’=ΔTu−Δt0
に基づいてUDPSTの送信時間間隔の変更を繰り返し行う。
In this way, the server 3 repeatedly executes # 32 to # 40 until no retry failure occurs in establishing the communication connection with the IP device 2 this time. At this time, if the transmission time interval of the current UDPST is ΔTu, the change amount per change of the transmission time interval is Δt0, and the transmission time interval of the changed UDPST is ΔTu ′, the server 3 Until there is no retry failure in establishing a communication connection with
Δ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 current IP device 2, the server 3 ends the series of processes.

以上のように、ルータ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 router 5, the server 3 determines that the NAT table update time interval of the router 5 and the UDPST transmission time interval of the IP device 2 Since the UDPST transmission time interval is changed and the NAT table update time interval of the router 5 is changed due to a setting change of the router 5 or a model change, the server is changed. The transmission time interval of UDPST that is optimal in terms of the communication load of 3 and the response to the request of the client device 4 can be automatically set.

(4)IPデバイス2から送信されるUDPSTによってサーバ3への通信負荷が高い状態にある場合や、クライアント装置4からの要求に対してサーバ3がIPデバイス2に通信コネクションの確立を指示する通信コネクション確立指示情報を即時に送信できる状態にある場合には、サーバ3は、IPデバイス2のUDPSTの送信時間間隔を大きくする。以下、具体的な処理について説明する。   (4) Communication in which the communication load on the server 3 is high due to UDPST transmitted from the IP device 2 or the server 3 instructs the IP device 2 to establish a communication connection in response to a request from the client device 4 When the connection establishment instruction information is ready to be transmitted immediately, the server 3 increases the UDPST transmission time interval of the IP device 2. Specific processing will be described below.

サーバ3は、クライアント装置4から通信コネクションの確立を要求するサービス要求情報を受信すると(♯41)、前記サービス要求情報からオブジェクトIDを抽出し、記憶部312を参照して、該オブジェクトIDに対応するIPアドレスを検出すると、そのIPアドレスに対応するIPデバイス2に対して通信コネクションの確立を指示する通信コネクション確立指示情報を送信する(♯42)。   When the server 3 receives service request information requesting establishment of a communication connection from the client device 4 (# 41), the server 3 extracts an object ID from the service request information and refers to the storage unit 312 to correspond to the object ID. When an IP address to be detected is detected, communication connection establishment instruction information for instructing establishment of a communication connection is transmitted to the IP device 2 corresponding to the IP address (# 42).

そして、サーバ3は、♯42の要求情報に対してIPデバイス2から即時に(所定時間内に)、通信コネクションの確立を了解した旨の応答が返ってくると(♯44)、IPデバイス2から送信される応答を確認した旨の応答確認情報を送信する(♯45)。これにより、IPデバイス2とサーバ3との通信コネクションが確立される。   When the server 3 returns a response indicating that the establishment of the communication connection has been accepted (within a predetermined time) immediately from the IP device 2 in response to the request information of # 42 (# 44), the IP device 2 Response confirmation information indicating that the response transmitted from is confirmed is transmitted (# 45). Thereby, a communication connection between the IP device 2 and the server 3 is established.

また、サーバ3は、このIPデバイス2から即時に前記返信を受信したことを記憶するとともに、クライアント装置4に対して通信コネクションを確立する返信処理を行う(♯45)。   Further, the server 3 stores that the reply has been received immediately from the IP device 2 and performs reply processing for establishing a communication connection with the client device 4 (# 45).

次に、サーバ3は、リトライが失敗していないことを認識し、IPデバイス2におけるUDPSTの送信時間間隔を現在の送信時間間隔より長い所定値に変更する指示を行う送信時間間隔変更指示情報をIPデバイス2に送信する(♯46)。IPデバイス2は、この送信時間間隔変更指示情報に基づいて、記憶部232に格納されているUDPSTの送信時間間隔を変更する(♯47)。これにより、IPデバイス2は、更新された送信時間間隔に基づいてUDPSTをサーバ3に送信する。   Next, the server 3 recognizes that the retry has not failed, and transmits transmission time interval change instruction information for instructing the IP device 2 to change the UDPST transmission time interval to a predetermined value longer than the current transmission time interval. Transmit to IP device 2 (# 46). The IP device 2 changes the UDPST transmission time interval stored in the storage unit 232 based on the transmission time interval change instruction information (# 47). Thus, the IP device 2 transmits UDPST to the server 3 based on the updated transmission time interval.

なお、その後、一定期間、サーバ3からのアクセスが無い場合には、IPアドレス2は、そのサーバ3に対して確立していた通信コネクションの遮断を要求する通信コネクション遮断要求情報を送信する(♯48)。サーバ3は、この通信コネクション遮断要求情報を受信すると、前記IPデバイス2に対して通信コネクションを遮断する返信処理を行う(♯49)。   After that, when there is no access from the server 3 for a certain period of time, the IP address 2 transmits communication connection cutoff request information requesting the server 3 to cut off the communication connection established (# 48). Upon receiving this communication connection cutoff request information, the server 3 performs a reply process for cutting off the communication connection to the IP device 2 (# 49).

そして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生していないか否かを判断し、リトライ失敗が発生していないものと判断すると、サーバ3は、♯42の処理を再度実行する。そして、サーバ3は、♯42の指示情報に対してIPデバイス2から即時に通信コネクションの確立する返信処理がなされた場合には、サーバ3は、♯46〜♯49までの処理を再度実行する。   Then, the server 3 determines whether or not a retry failure has occurred in the establishment of the communication connection with the current IP device 2, and if it is determined that no retry failure has occurred, the server 3 determines that # 42. Execute the process again. Then, when the server 3 performs a reply process for immediately establishing a communication connection from the IP device 2 in response to the instruction information of # 42, the server 3 executes the processes from # 46 to # 49 again. .

このようにして、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生するまで、♯42〜♯49を繰り返し実行する。その際、現在のUDPSTの送信時間間隔をΔTu、該送信時間間隔の変更1回当たりの変更量をΔt0、変更後のUDPSTの送信時間間隔をΔTu’とすると、サーバ3は、今回のIPデバイス2との通信コネクションの確立においてリトライ失敗が発生するまで、
ΔTu’=ΔTu+Δt0
に基づいてUDPSTの送信時間間隔の変更を繰り返し行う。
In this way, the server 3 repeatedly executes # 42 to # 49 until a retry failure occurs in establishing the communication connection with the IP device 2 this time. At this time, if the transmission time interval of the current UDPST is ΔTu, the change amount per change of the transmission time interval is Δt0, and the transmission time interval of the changed UDPST is ΔTu ′, the server 3 Until a retry failure occurs in establishing a communication connection with
Δ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 current IP device 2, the server 3 sets the UDPST transmission time interval to the UDPST transmission time interval before the current change (the transmission time interval after the previous change). , The communication connection with the IP device 2 is disconnected, and the series of processing ends.

以上のように、ルータ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 router 5, the server 3 determines that the NAT table update time interval of the router 5 and the UDPST transmission time interval of the IP device 2 Since the difference is detected and changed to the UDPST transmission time interval, the communication connection between the server 3 and the IP device 2 can be established as quickly as possible, and the NAT table update time of the router 5 can be established. Even when the interval is changed by changing the setting of the router 5 or changing the model, the optimal UDPST transmission time interval is automatically set in terms of the communication load of the server 3 and the responsiveness to the request of the client device 4. Can be set.

本発明に係るネットワークシステムの構成の一例を示す図である。It is a figure which shows an example of a structure of the network system which concerns on this invention. 設備機器の構成を示すブロック図である。It is a block diagram which shows the structure of an installation apparatus. クライアント装置の構成を示すブロック図である。It is a block diagram which shows the structure of a client apparatus. サーバの構成を示すブロック図である。It is a block diagram which shows the structure of a server. ルータの構成を示すブロック図である。It is a block diagram which shows the structure of a router. 本発明の特徴部分に係る各機器の処理を示す図である。It is a figure which shows the process of each apparatus which concerns on the characteristic part of this invention. 本発明の特徴部分に係る各機器の処理を示す図である。It is a figure which shows the process of each apparatus which concerns on the characteristic part of this invention. 本発明の特徴部分に係る各機器の処理を示す図である。It is a figure which shows the process of each apparatus which concerns on the characteristic part of this invention. 本発明の特徴部分に係る各機器の処理を示す図である。It is a figure which shows the process of each apparatus which concerns on the characteristic part of this invention.

符号の説明Explanation of symbols

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 SYMBOLS 1 Network system 2 Device 21 Operation part 22 Communication part 23 Control part 231 Operation control part 232 Storage part 233 Communication control part 3 Server 31 Control part 311 Service provision part 3111 Transmission time interval change part 312 Storage part 32 Communication part 4 Client apparatus 41 Input operation unit 42 Display unit 43 External storage unit 44 Control unit 441 Request information generation unit 442 Reply acquisition unit 443 Storage unit 444 Display control unit 45 Communication unit 5 Router 51 Control unit 511 Address conversion unit 512 Storage unit 513 Update units 52 and 53 1st, 2nd communication part 6 Communication network

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 .
前記送信時間間隔変更制御情報送信ステップは、前記更新部によるNATテーブルを定期的に更新する間隔に基づいて、前記識別情報の送信時間間隔を設定するステップである
ことを特徴とする請求項に記載の通信コネクションの確立方法。
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回の変更につき、前記送信時間間隔の変更量について予め決められた設定変更量だけ小さくするステップであり、
前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できなかったと判断した場合には、前記通信コネクションを確立できたと判断するまで、前記送信時間間隔変更制御情報送信ステップを実行させるステップである
ことを特徴とする請求項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回の変更につき、前記送信時間間隔の変更量について予め決められた設定変更量だけ大きくするステップであり、
前記送信時間調整ステップは、前記サーバが、前記判断ステップにおいて前記通信コネクションを確立できたと判断した場合には、前記送信時間間隔変更制御情報送信ステップを実行し、前記通信コネクションを確立できなくなったと判断したときには、前記送信時間間隔変更制御情報送信ステップに、前記通信コネクションを確立できたと判断した最新の時点で設定されていた送信時間間隔に変更させる指示を示す送信時間間隔変更制御情報を生成させ、当該設備機器に送信させるステップである
ことを特徴とする請求項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.
JP2006261040A 2006-09-26 2006-09-26 How to establish a communication connection Expired - Fee Related JP5020584B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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