JP2008027144A - Gateway device and controlled device - Google Patents
Gateway device and controlled device Download PDFInfo
- Publication number
- JP2008027144A JP2008027144A JP2006198419A JP2006198419A JP2008027144A JP 2008027144 A JP2008027144 A JP 2008027144A JP 2006198419 A JP2006198419 A JP 2006198419A JP 2006198419 A JP2006198419 A JP 2006198419A JP 2008027144 A JP2008027144 A JP 2008027144A
- Authority
- JP
- Japan
- Prior art keywords
- control
- controlled device
- request
- state
- status
- 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.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
本発明は、複数のコントローラが接続されたゲートウェイ装置及び被制御機器に関するものである。 The present invention relates to a gateway device and a controlled device to which a plurality of controllers are connected.
従来、制御系ネットワークに接続された業務系機器と、情報系ネットワークに接続されたゲートウェイ装置管理サーバとの間に、プロトコル変換を行うゲートウェイ装置コントローラを接続し、ゲートウェイ装置管理サーバが業務系機器を遠隔監視制御する管理運用システムが知られている(特許文献1)。 Conventionally, a gateway device controller that performs protocol conversion is connected between a business device connected to the control network and a gateway device management server connected to the information network. A management operation system that performs remote monitoring and control is known (Patent Document 1).
また、従来、管理側ネットワークと、照明や防犯などのシステムを自動制御するサブシステム側ネットワークとを接続する装置が、それぞれのネットワークに接続される機器がアクセスできる記憶装置を備えることによって、異なるネットワーク間の接続を実現することができるマルチプロトコルゲートウェイが知られている(特許文献2)。また、ゲートウェイ装置は、被制御機器に関して、二種類のデータを保持することによって、異なるネットワークに接続する機器間の通信を可能としてきた。
しかしながら、従来の構成では、ネットワークに接続されているコントローラが、被制御機器を制御して、被制御機器の状態を変更した場合、ネットワークに接続しているその他のコントローラへ、この状態の変更が通知されていなかった。また、ネットワークに接続されているコントローラが、被制御機器の制御に失敗した場合や、被制御機器の状態を参照した場合についても、他のコントローラへ該当する被制御機器の最新状態を通知することがなされていなかった。 However, in the conventional configuration, when the controller connected to the network controls the controlled device and changes the state of the controlled device, the change of the state is not transferred to other controllers connected to the network. Not notified. Also, when the controller connected to the network fails to control the controlled device, or when referring to the status of the controlled device, notify the other controller of the latest status of the controlled device. Was not made.
ここで、被制御機器の状態が、被制御機器のリモコンにより変化された場合、又は被制御機器自身により変化された場合、常にリモコンへ被制御機器の状態の変化を通知することも考えられる。 Here, when the state of the controlled device is changed by the remote controller of the controlled device, or when it is changed by the controlled device itself, it may be possible to always notify the remote controller of the change of the state of the controlled device.
しかしながら、こうすると、ユーザがリモコンにより機器の制御を実行している場合、ユーザが選択した状態と異なる状態が、リモコンの制御画面へ表示され、ユーザが再度リモコンを操作するというように、ユーザに多大なストレスを与えると共に、リモコンから制御要求が再度送信される可能性が高まり、ネットワークに多大な負荷がかかってしまう。 However, in this case, when the user is controlling the device with the remote controller, a state different from the state selected by the user is displayed on the control screen of the remote controller, and the user operates the remote controller again. In addition to applying a great deal of stress, the possibility of a control request being transmitted again from the remote control increases, and a great load is placed on the network.
すなわち、ユーザにストレスを与えることなく、複数のコントローラに表示される被制御機器の状態の同期を図ることは、非常に困難なことであった。 That is, it is very difficult to synchronize the states of controlled devices displayed on a plurality of controllers without causing stress on the user.
本発明の目的は、ネットワークに接続される全てのコントローラに表示される被制御機器の状態の同期を図ることである。 An object of the present invention is to synchronize the states of controlled devices displayed on all controllers connected to a network.
本発明によるゲートウェイ装置は、コントローラと、前記コントローラによって制御される被制御機器とに接続されるゲートウェイ装置であって、前記コントローラから前記被制御機器を所定の状態に変更するために送信される制御要求を保持する要求データ管理手段と、前記被制御機器の状態として、前記コントローラへ公開するためのコントロール値と、前記被制御機器から送信されるデータに基づいて更新され、被制御機器の実際の状態を示すカレント値とを保持する機器状態保持手段と、前記コントローラから制御要求受信時に、受信した制御要求の送信先の被制御機器のコントロール値を、受信した制御要求が要求する状態で更新する機器管理手段と、前記機器管理手段によりコントロール値が更新されたとき、その更新を通知するための更新通知を全てのコントローラに送信する更新通知手段とを備えることを特徴とする(請求項1)。 The gateway device according to the present invention is a gateway device connected to a controller and a controlled device controlled by the controller, and is transmitted from the controller to change the controlled device to a predetermined state. Request data management means for holding a request, as a state of the controlled device, a control value to be disclosed to the controller, updated based on data transmitted from the controlled device, and the actual state of the controlled device Updates the control value of the control target device that is the destination of the received control request in the state requested by the received control request when receiving the control request from the controller and the device state holding means that holds the current value indicating the state When the control value is updated by the device management means and the device management means, the update is notified. Characterized in that it comprises an update notification unit for transmitting an update notification for all controllers (claim 1).
また、本発明による被制御機器は、ネットワークを介して接続されるコントローラによって制御される被制御機器であって、前記コントローラから前記被制御機器を所定の状態に変更するために送信される制御要求を保持する要求データ管理手段と、前記被制御機器の状態として、前記コントローラへ公開するためのコントロール値と、前記被制御機器から送信されるデータに基づいて更新されるカレント値とを保持する機器状態保持手段と、前記コントローラから制御要求受信時に、受信した制御要求の送信先の被制御機器のコントロール値を、受信した制御要求が示す状態で更新する機器管理手段と、前記機器管理手段によりコントロール値が更新されたとき、その更新を通知するための更新通知を全てのコントローラに送信する更新通知手段とを備えることを特徴とする(請求項13)。 The controlled device according to the present invention is a controlled device controlled by a controller connected via a network, and a control request transmitted from the controller to change the controlled device to a predetermined state. A request data management means for holding, a control value to be disclosed to the controller as a state of the controlled device, and a device for holding a current value updated based on data transmitted from the controlled device A state holding unit, a device management unit for updating a control value of a control target device to which the received control request is transmitted when receiving a control request from the controller, and a control by the device management unit; When a value is updated, an update notification is sent to all controllers to notify the update. Characterized in that it comprises a means (claim 13).
これらの構成によれば、機器状態保持手段は、コントローラへ公開するためのコントロール値と、被制御機器の実際の状態を示すカレント値とを保持し、機器管理手段は、コントローラから制御要求を受信したとき、制御要求が要求する状態で更新し、更新通知手段は、コントロール値が更新されたことを通知するための更新通知を全てのコントローラに送信する。そのため、コントローラは、この更新通知に従って、被制御機器の状態を示す画像を更新すれば、全てのコントローラが表示する被制御機器の状態を示す画像の同期を図ることができる。すなわち、全てのコントローラへ、コントロール値を公開する方式を実行し、コントローラ間の表示の同期を取ることを実現することができる。 According to these configurations, the device state holding unit holds the control value to be disclosed to the controller and the current value indicating the actual state of the controlled device, and the device management unit receives the control request from the controller. Then, update is performed in a state requested by the control request, and the update notification means transmits an update notification for notifying that the control value has been updated to all the controllers. Therefore, if the controller updates the image indicating the state of the controlled device in accordance with this update notification, the images indicating the state of the controlled device displayed by all the controllers can be synchronized. That is, it is possible to execute a method of disclosing control values to all the controllers and to synchronize the display between the controllers.
また、前記被制御機器を制御するための画像、及び前記被制御機器の状態を表示するための画像を表示する表示手段と、前記表示手段へ被制御機器の状態を提供する描画データ提供手段とを更に備えることが好ましい(請求項2)。 A display unit that displays an image for controlling the controlled device and an image for displaying a state of the controlled device; and a drawing data providing unit that provides the state of the controlled device to the display unit. It is preferable to further comprise (Claim 2).
この構成によれば、ゲートウェイ装置に、被制御機器の状態を表示させることができる。 According to this configuration, the state of the controlled device can be displayed on the gateway device.
また、描画データ提供手段は、前記被制御機器を制御するための画像の構成要素、及び被制御機器の状態を表示するための画像の構成要素を前記表示手段に出力することが好ましい(請求項3)。 The drawing data providing means preferably outputs an image component for controlling the controlled device and an image component for displaying the state of the controlled device to the display means. 3).
この構成によれば、ゲートウェイ装置は、被制御機器を制御するための画像や被制御機器の状態を制御するための画像を表示することができる。 According to this configuration, the gateway device can display an image for controlling the controlled device and an image for controlling the state of the controlled device.
また、前記コントロール値の更新通知を、各コントローラのプロトコルへ変換するプロトコル変換処理手段を更に備えるとことが好ましい(請求項4)。 Further, it is preferable to further comprise protocol conversion processing means for converting the control value update notification into a protocol of each controller.
この構成によれば、コントロール値の更新通知が、各コントローラのプロトコルに変換されるため、各コントローラが様々なプロトコルを採用する場合であっても、更新通知を全てのコントローラに送信することができる。 According to this configuration, since the update notification of the control value is converted into the protocol of each controller, the update notification can be transmitted to all the controllers even when each controller adopts various protocols. .
前記描画データ提供手段は、前記制御要求受信時に、受信した制御要求の送信先の被制御機器のコントロール値を前記表示手段に出力することが好ましい(請求項5)。 When the control request is received, the drawing data providing unit preferably outputs a control value of a control target device to which the received control request is transmitted to the display unit.
この構成によれば、制御要求を受信すると、受信した制御要求の送信先の被制御機器のコントロール値が速やかに更新され、コントローラが表示する被制御機器の状態と、ゲートウェイ装置が表示する被制御機器の状態とを同期させることができる。 According to this configuration, when a control request is received, the control value of the controlled device that is the transmission destination of the received control request is quickly updated, the state of the controlled device displayed by the controller, and the controlled device displayed by the gateway device The state of the device can be synchronized.
また、前記機器管理手段は、前記被制御機器から制御要求が要求する状態に変更できたことを示す制御成功応答を受信した時に、受信した制御成功応答の送信元の被制御機器のカレント値を、受信した制御成功応答に含まれる状態で更新することが好ましい(請求項6)。 In addition, when the device management means receives a control success response indicating that the control request can be changed to the state requested by the controlled device, the device management means sets the current value of the controlled device that is the transmission source of the received control success response. The update is preferably performed in a state included in the received control success response.
この構成によれば、被制御機器の状態が変更されると、カレント値が速やかに更新され、カレント値はより正確に被制御機器の現在の状態を示すことができる。 According to this configuration, when the state of the controlled device is changed, the current value is quickly updated, and the current value can more accurately indicate the current state of the controlled device.
また、前記機器管理手段は、前記被制御機器から制御要求が要求する状態に変更できなかったことを示す制御失敗応答を受信した時に、前記要求データ管理手段が、受信した制御失敗応答の送信元の被制御機器を送信先とし、かつ前記制御失敗応答に含まれる制御種別と同一の制御種別を含む制御要求を保持しない場合、前記機器状態保持手段が保持するカレント値を用いて、前記コントロール値を更新することが好ましい(請求項7)。 Further, when the device management means receives a control failure response indicating that the control request cannot be changed to the state requested by the controlled device, the request data management means transmits the received control failure response source If the control request is not held in a control request including the control type that is the same as the control type included in the control failure response, the control value is set using the current value held by the device status holding unit. Is preferably updated (claim 7).
この構成によれば、制御失敗応答を受信したとき、制御失敗応答に含まれる制御種別と同一の制御種別を含む制御要求が、要求データ管理手段により保持されていない場合は、コントローラを用いたユーザの操作が確定したとして、コントロール値がカレント値で更新されるため、例えば、ある被制御機器に対し、複数のコントローラからほぼ同時に制御要求が送信されたような場合に、当該被制御機器の状態が確定する前に、コントローラに表示される被制御機器の状態が不必要に更新されることを防止することができる。また、ユーザの操作が確定した後は、コントローラに現在の被制御機器の状態を表示させることができる。 According to this configuration, when the control request including the same control type as the control type included in the control failure response is not held by the request data management unit when the control failure response is received, the user using the controller Because the control value is updated with the current value even if the operation is confirmed, for example, when a control request is sent from a plurality of controllers almost simultaneously to a controlled device, the status of the controlled device It is possible to prevent the state of the controlled device displayed on the controller from being updated unnecessarily before the is determined. In addition, after the user operation is confirmed, the current state of the controlled device can be displayed on the controller.
また、前記制御失敗応答受信時に、前記機器管理手段により更新されたコントロール値を、前記表示手段に表示される画像に反映させる描画データ提供手段を更に備えることが好ましい(請求項8)。 Further, it is preferable that the apparatus further includes drawing data providing means for reflecting the control value updated by the device management means on the image displayed on the display means when the control failure response is received.
この構成によれば、制御失敗応答受信してコントロール値が変更されたとき、速やかに、コントローラが表示する被制御機器の状態と、ゲートウェイ装置が表示する被制御機器の状態との同期を図ることができる。 According to this configuration, when a control failure response is received and the control value is changed, the state of the controlled device displayed by the controller is promptly synchronized with the state of the controlled device displayed by the gateway device. Can do.
前記機器管理手段は、前記被制御機器から状態参照要求に対して応答できたことを示す状態参照成功応答を受信した時に、受信した状態参照成功応答に含まれる状態で、前記機器状態保持手段が保持するカレント値を更新すると共に、前記要求データ管理手段が、前記状態参照成功応答の送信元の被制御機器を送信先とし、かつ前記状態参照成功応答に含まれる制御種別と同一の制御種別を含む制御要求を保持しない場合、受信した状態参照成功応答に含まれる状態、又は受信した状態参照成功応答に含まれる状態で更新されたカレント値を用いて、前記機器状態保持手段が保持するコントロール値を更新することが好ましい(請求項9)。 When the device management means receives a status reference success response indicating that it has responded to the status reference request from the controlled device, the device status holding means is in a state included in the received status reference success response. While updating the current value to be held, the request data management means sets the control type that is the same as the control type included in the status reference success response, with the controlled device that is the source of the status reference success response as the transmission destination If the control request is not held, the control value held by the device status holding means using the current value updated in the status included in the received status reference success response or the status included in the received status reference success response Is preferably updated (claim 9).
この構成によれば、状態参照成功応答を、被制御機器から受信したとき、状態参照成功応答に含まれる制御種別と同一の制御種別を含む制御要求を保持していない場合は、コントローラを用いたユーザの操作が確定したとして、コントロール値がカレント値で更新されるため、例えば、ある制御機器に対し、複数のコントローラからほぼ同時に制御要求が送信されたような場合において、当該被制御機器の状態が確定する前に、コントローラに表示される被制御機器の状態が不必要に更新されることを防止することができる。また、ユーザの操作が確定した後は、コントローラに現在の被制御機器の状態を表示させることができる。 According to this configuration, when a status reference success response is received from the controlled device, a controller is used when a control request including the same control type as the control type included in the status reference success response is not held. Since the control value is updated with the current value when the user operation is confirmed, for example, when a control request is transmitted from a plurality of controllers almost simultaneously to a certain control device, the state of the controlled device It is possible to prevent the state of the controlled device displayed on the controller from being updated unnecessarily before the is determined. In addition, after the user operation is confirmed, the current state of the controlled device can be displayed on the controller.
また、前記状態参照成功応答を受信した時に、前記機器管理手段により更新されたコントロール値を、前記表示手段に表示される画像に反映させる描画データ提供手段を更に備えることが好ましい(請求項10)。 Preferably, the apparatus further comprises drawing data providing means for reflecting the control value updated by the device management means in the image displayed on the display means when the status reference success response is received. .
この構成によれば、状態参照成功応答を受信してコントロール値が変更されたとき、速やかに、コントローラが表示する被制御機器の状態と、ゲートウェイ装置が表示する被制御機器の状態との同期を図ることができる。 According to this configuration, when the control value is changed after receiving the status reference success response, the state of the controlled device displayed by the controller and the state of the controlled device displayed by the gateway device are promptly synchronized. Can be planned.
また、前記機器管理手段は、前記被制御機器から自己の状態を通知するための状態通知を受信した時に、受信した状態通知に含まれる状態で、前記機器状態保持手段が保持するカレント値を更新する共に、前記要求データ管理手段が、受信した状態通知の送信元の被制御機器を送信先とし、かつ受信した状態通知に含まれる制御種別と同一の制御種別を含む制御要求を保持しない場合、受信した状態通知に含まれる状態、又は受信した状態通知に含まれる状態で更新されたカレント値を用いて、前記機器状態保持手段が保持するコントロール値を更新することが好ましい(請求項11)。 Further, when the device management means receives a status notification for notifying its own status from the controlled device, the device management means updates the current value held by the device status holding means in a state included in the received status notification. In addition, when the request data management means does not hold the control request including the control type that is the same as the control type included in the received status notification, and the controlled device that is the source of the received status notification is the transmission destination, Preferably, the control value held by the device status holding unit is updated using the state included in the received status notification or the current value updated in the state included in the received status notification.
この構成によれば、状態通知を、被制御機器から受信したとき、状態通知に含まれる制御種別と同一の制御種別を含む制御要求を保持していない場合は、コントローラを用いたユーザの操作が確定したとして、コントロール値がカレント値で更新されるため、例えば、ある制御機器に対し、複数のコントローラからほぼ同時に制御要求が送信されたような場合において、当該被制御機器の状態が確定する前に、コントローラに表示される被制御機器の状態が不必要に更新されることを防止することができる。また、ユーザの操作が確定した後は、コントローラに現在の被制御機器の状態を表示させることができる。 According to this configuration, when the status notification is received from the controlled device, if a control request including the same control type as the control type included in the status notification is not held, a user operation using the controller is not performed. Since the control value is updated with the current value when it is confirmed, for example, when a control request is transmitted from a plurality of controllers almost simultaneously to a certain control device, before the state of the controlled device is confirmed. In addition, the state of the controlled device displayed on the controller can be prevented from being updated unnecessarily. In addition, after the user operation is confirmed, the current state of the controlled device can be displayed on the controller.
また、前記状態通知受信時に、前記機器管理手段により更新されたコントロール値を、前記表示手段に表示される画像に反映させる描画データ提供手段を更に備えることが好ましい(請求項12)。 Further, it is preferable that the apparatus further comprises drawing data providing means for reflecting the control value updated by the device management means on the image displayed on the display means when the status notification is received.
この構成によれば、状態参照成功応答を受信して、コントロール値が変更されたとき、速やかに、コントローラが表示する被制御機器の状態と、ゲートウェイ装置が表示する被制御機器の状態との同期を図ることができる。 According to this configuration, when the status reference success response is received and the control value is changed, the state of the controlled device displayed by the controller and the state of the controlled device displayed by the gateway device are promptly synchronized. Can be achieved.
本発明のコントロール値とカレント値の二種類のデータを用いて、被制御機器のデータを管理することにより、ネットワークに複数のコントローラが接続している場合においても、全てのコントローラが表示する被制御機器の状態の同期をとることができる。また、本発明により、ユーザがコントローラの画面を用いて被制御機器を制御する場合、被制御機器への制御が確定するまで、コントローラに表示される被制御機器の状態は変更されないため、ユーザへのストレスを抑制することができると共に、不要な再送要求の送信を減らすことができ、ネットワークへの負荷を軽減することができる。 By controlling the data of the controlled device using the two types of data of the control value and the current value of the present invention, even when a plurality of controllers are connected to the network, the controlled values displayed by all the controllers are displayed. The state of the device can be synchronized. Further, according to the present invention, when the user controls the controlled device using the screen of the controller, the state of the controlled device displayed on the controller is not changed until the control to the controlled device is confirmed. As well as unnecessary retransmission requests can be reduced, and the load on the network can be reduced.
以下本発明の実施の形態について、図面を参照しながら説明する。 Embodiments of the present invention will be described below with reference to the drawings.
(実施の形態1)
図1は、本発明の形態1にけるゲートウェイ装置をホームネットワークに適用したときのネットワーク構成図を示している。本ゲートウェイ装置は、ゲートウェイ装置10、複数のコントローラ21,22、及び複数の被制御機器31〜34を備えている。なお、コントローラを総称して呼ぶときは、コントローラに20の番号を付す。被制御機器を総称して呼ぶときは、被制御機器に30の番号を付す。コントローラ21及びゲートウェイ装置10は、ネットワークN1を介して接続されている。コントローラ22及びゲートウェイ装置10は、ネットワークN2を介して接続されている。被制御機器31〜34及びゲートウェイ装置10は、ネットワークN3を介して接続されている。ネットワークN1は、プロトコルAにより種々のデータを伝送する。ネットワークN2は、プロトコルBにより種々のデータを伝送する。ネットワークN3は、プロトコルCにより種々のデータを伝送する。本実施の形態では、プロトコルAとしてUPnP(ユニバーサルプラグアンドプレイ)が採用され、プロトコルBとしてHTTP(Hyper Text Transfer Protocol)が採用され、プロトコルCとしてECHONETが採用される。
(Embodiment 1)
FIG. 1 shows a network configuration diagram when the gateway device according to the first embodiment of the present invention is applied to a home network. The gateway device includes a
図1では、ネットワークN1、ネットワークN2に接続されているコントローラ20は、それぞれ一台であるが、実際は二つ以上のコントローラ20が接続されていてもよい。また、ゲートウェイ装置10は、3種類のプロトコルからなるネットワークN1〜N3と接続されているが、2種類のプロトコルからなるネットワーク、又は4種類以上のプロトコルからなるネットワークに接続されてもよい。
In FIG. 1, one
ゲートウェイ装置10は、プロトコルCからなるネットワークN3に接続される被制御機器30の状態に関するデータを管理しており、ゲートウェイ装置10は、各コントローラ20に被制御機器30の状態を通知したり、コントローラ20からの要求に応答したりすることによって、各コントローラ20へ、被制御機器30の状態を送信する。
The
図2は、図1に示すゲートウェイ装置10のブロック図である。図2に示すゲートウェイ装置10は、CPU、ROM、RAM、及び専用のハードウェア回路等から構成され、プロトコルA〜Cに対応する。機器管理部111は、プロトコルCに接続している被制御機器30のネットワーク接続構成を管理する。具体的には、機器管理部111は、被制御機器30の種別、被制御機器30のアドレス、被制御機器30を開発したメーカ、被制御機器30の商品コード、及び被制御機器30を特定するコード等を保持することで、被制御機器30のネットワーク接続構成を管理する。
FIG. 2 is a block diagram of the
また、機器管理部111は、コントロール値とカレント値という二つの値を用いて、各被制御機器30の状態を管理する。コントロール値は、各コントローラ20が被制御機器30に対して送信する制御要求に含まれるデータを用いて更新される。カレント値は、ゲートウェイ装置10が、被制御機器30から送信される制御要求に対する応答(制御応答)、状態参照要求に対する応答(状態参照応答)、事故(障害)の状態の通知(状態通知)を受信したときに更新される。
In addition, the
ここで、制御応答には、制御要求を受信した被制御機器30が状態を変更できた場合に送信する制御成功応答と、制御要求を受信した被制御機器30が状態を変更できなかった場合に送信する制御失敗応答とが含まれる。状態参照応答には、状態参照要求を受信した被制御機器30が応答できた場合に送信する状態参照成功応答と、状態参照要求を受信した被制御機器30が応答できなかった場合に送信する状態参照失敗応答とが含まれる。
Here, the control response includes a control success response that is transmitted when the controlled
図3(a)は、制御要求のデータ構造を示している。図3(a)に示すように、制御要求は、制御要求の送信元を示す「送信元」、制御要求の送信先を示す「送信先」、変更対象となる状態の種類を示す「制御種別」、及び変更対象となる状態の値を示す「状態値」を含む。制御種別としては、制御要求の送信対象となる被制御機器30が、例えばエアコンであれば、エアコンを冷房運転させるか暖房運転させるかを決定するための「冷房/暖房」や、エアコンの設定温度を決定するための「設定温度」や、エアコンの電源のオン・オフを決定するための「電源」等が含まれる。状態値としては、「冷房/暖房」の制御種別に対して「冷房」や、「設定温度」の制御種別に対して「24度」や、「電源」の制御種別に対して「オン」等が含まれる。
FIG. 3A shows the data structure of the control request. As shown in FIG. 3A, the control request includes a “transmission source” indicating the transmission source of the control request, a “transmission destination” indicating the transmission destination of the control request, and a “control type” indicating the type of state to be changed. ”And“ state value ”indicating the value of the state to be changed. As the control type, if the controlled
図3(b)は、状態参照要求のデータ構造を示している。状態参照要求は、状態参照要求の送信元を示す「送信元」、状態参照要求の送信先を示す「送信先」、及び参照対象となる状態の種類を示す「制御種別」を含む。 FIG. 3B shows the data structure of the state reference request. The state reference request includes a “transmission source” indicating the transmission source of the state reference request, a “transmission destination” indicating the transmission destination of the state reference request, and a “control type” indicating the type of state to be referred to.
図3(c)は、制御成功応答のデータ構造を示している。制御成功応答は、制御成功応答の送信元を示す「送信元」、制御成功応答の送信先を示す「送信先」、変更した状態の種類を示す「制御種別」、及び変更した状態の値を示す「状態値」を含む。 FIG. 3C shows the data structure of the control success response. The control success response includes a “transmission source” indicating the transmission source of the control success response, a “transmission destination” indicating the transmission destination of the control success response, a “control type” indicating the type of the changed state, and a value of the changed state. Contains a “state value” to indicate.
図3(d)は、制御成失敗答のデータ構造を示している。制御失敗応答は、制御失敗応答の送信元を示す「送信元」、制御失敗応答の送信先を示す「送信先」、変更できなかった状態の種類を示す「制御種別」、及び変更できなかった状態の値を示す「状態値」を含む。 FIG. 3D shows the data structure of the control success / failure answer. The control failure response includes the “transmission source” indicating the transmission source of the control failure response, the “transmission destination” indicating the transmission destination of the control failure response, the “control type” indicating the type of the state that could not be changed, and the control failure response could not be changed. It includes a “state value” indicating the value of the state.
図3(e)は、状態参照成功応答のデータ構造を示している。状態参照成功応答は、状態参照成功応答の送信元を示す「送信元」、状態参照成功応答の送信先を示す「送信先」、参照した状態の種類を示す「制御種別」、及び参照した状態の値を示す「状態値」を含む。 FIG. 3E shows the data structure of the status reference success response. The status reference success response includes a “transmission source” indicating the transmission source of the status reference success response, a “transmission destination” indicating the transmission destination of the status reference success response, a “control type” indicating the type of the referenced status, and the referenced status It includes a “state value” indicating the value of.
図3(f)は状態参照失敗応答のデータ構造を示している。状態参照成失敗応答は、状態参照失敗応答の送信元を示す「送信元」、状態参照失敗応答の送信先を示す「送信先」を含む。 FIG. 3F shows the data structure of the status reference failure response. The status reference failure response includes “transmission source” indicating the transmission source of the status reference failure response and “transmission destination” indicating the transmission destination of the status reference failure response.
図3(g)は、状態通知のデータ構造を示している。状態通知は、状態通知の送信元を示す「送信元」、状態通知の送信先を示す「送信先」、通知する状態の種類を示す「制御種別」、及び通知する状態の値を示す「状態値」を含む。 FIG. 3G shows the data structure of the status notification. The status notification includes a “transmission source” indicating the transmission source of the status notification, a “transmission destination” indicating the transmission destination of the status notification, a “control type” indicating the type of the notification status, and a “status” indicating the value of the notification status Value ".
図2に示す機器管理部111は、ゲートウェイ装置10が、コントローラ20から制御要求を受信した場合、コントローラ20から状態参照要求を受信した場合、被制御機器30から制御成功応答を受信した場合、被制御機器30から制御失敗応答を受信した場合、被制御機器30から状態参照成功応答を受信した場合、被制御機器30から状態参照失敗応答を受信した場合、被制御機器30から状態通知を受信した場合、各々のケースに応じたコントロール値とカレント値の更新処理を実行する。これらの更新処理の詳細は後述する。
When the
要求データ管理部112は、ゲートウェイ装置10がコントローラ20から受信した被制御機器30への制御要求を格納する。また、要求データ管理部112は、格納した制御要求に対して、送信待ちフェーズや結果応答受信待ちフェーズといったフェーズを設定することによって制御要求を管理する。
The request
機器状態保持部113は、コントロール値とカレント値とを記憶する。ここで、コントロール値とカレント値とは、被制御機器31〜34の各々に対して個別に存在する。
The device
図4は、エアコンから構成される被制御機器30のコントロール値のデータ構造の一例を示した図である。図4に示すように、コントロール値は、制御種別のフィールド及び状態値のフィールドを含む。図4の例では、制御種別として、「冷房/暖房」、「設定温度」、「電源」等が含まれ、「冷房/暖房」に対して「冷房」、「設定温度」に対して「24度」、「電源」に対して「オン」の状態値が格納されている。なお、カレント値も、図4に示すコントロール値と同様のデータ構造を有しているため、説明は省略する。
FIG. 4 is a diagram illustrating an example of a data structure of control values of the controlled
更新通知部121は、機器管理部111によりコントロール値が更新されたとき、コントロール値が更新されたことを示す更新通知を全てのコントローラ20に送信する。これにより、ゲートウェイ装置10は、コントロール値を全てのコントローラ20へ公開し、コントローラ20の制御画面を同期させる。
When the
図2に示すプロトコル変換処理部114は、プロトコルA及びプロトコルC間のプロトコル変換、並びにプロトコルB及びプロトコルC間のプロトコル変換を行う。
The protocol
プロトコルC処理部115は、プロトコルCに関する通信ミドルウェアの機能を有する。すなわち、プロトコルC処理部115は、被制御機器30及びゲートウェイ装置10間の通信インターフェイスとして機能する。プロトコルB処理部116は、プロトコルBに関する通信ミドルウェアの機能を有する。すなわち、プロトコルB処理部116は、コントローラ22及びゲートウェイ装置10間の通信インターフェイスとして機能する。プロトコルA処理部117は、プロトコルAに関する通信ミドルウェアの機能を有している。すなわち、プロトコルA処理部117は、被制御機器30及びゲートウェイ装置10の通信インターフェイスとして機能する。
The protocol
表示部120は、液晶表示パネル等の表示装置から構成され、被制御機器30を制御するため操作画像、又は被制御機器30の状態を示す画像等を表示する。なお、これらの画像は、ゲートウェイ装置10本体に直接描画される場合や、ブラウザ機能を利用して描画される場合がある。
The
描画データ提供部119は、被制御機器30を制御するための操作画像の画像構成要素や、被制御機器30の状態を示す画像の画像構成要素や、被制御機器30の状態を表示部120に出力することによって、被制御機器30の状態をユーザへ提供する。なお、ゲートウェイ装置10は、描画データ提供部119及び表示部120を省いてもよい。
The drawing
図5は、コントローラ20のブロック図を示す。コントローラ20は、表示部210、制御部220、通信部230、及び操作部240を備える。表示部210は、液晶表示パネル等の表示装置から構成され、制御部220の制御の下、被制御機器31〜34の各々のコントロール値を表示する。
FIG. 5 shows a block diagram of the
制御部220は、CPU、ROM、RAM、及び専用のハードウェア回路等から構成され、コントローラ20の全体制御を司る。本実施の形態では、特に、制御要求送信部221、状態参照要求送信部222、及び報知制御部223の機能を備えている。制御要求送信部221は、操作部240がある被制御機器30の状態を変更するためのユーザからの操作指令を受け付けたとき、ある被制御機器30の状態を変更するための制御要求を生成し、通信部230に渡す。
The
状態参照要求送信部222は、操作部240がある被制御機器30に対する状態を参照するためのユーザからの操作指令を受け付けたとき、ある被制御機器30の状態を参照するための状態参照要求を生成し、通信部230に渡す。報知制御部223は、通信部230がゲートウェイ装置10から送信される更新通知を受信したとき、更新通知に含まれる通知内容で、表示部210に表示されるコントロール値を更新する。
The state reference
通信部230は、通信ボード等の通信モジュールから構成され、制御要求送信部221から渡される制御要求、状態参照要求送信部222から渡される状態参照要求を、プロトコルA又はプロトコルBに従ってゲートウェイ装置10に送信する。また、通信部230は、ゲートウェイ装置10から送信される更新通知を受信して、報知制御部223に渡す。操作部240は、被制御機器30の状態を変更するための種々のボタン等から構成される。
The
図6は、被制御機器30のブロック図を示す。被制御機器30は、制御部310及び通信部320を備える。制御部310は、CPU、ROM、RAM、及び専用のハードウェア回路等から構成され、被制御機器30の全体制御を司る。本実施の形態では、制御部310は、特に、制御要求応答部311、状態参照要求応答部312、及び状態通知送信部313の機能を備えている。
FIG. 6 shows a block diagram of the controlled
制御要求応答部311は、通信部320によりゲートウェイ装置10から送信される制御要求が受信されたとき、受信された制御要求に従って被制御機器30の状態を変更する処理を実行し、状態を変更することができた場合は、制御成功応答を生成し、変更することができなかった場合は、制御失敗応答を生成する。
When the control request transmitted from the
状態参照要求応答部312は、通信部320によりゲートウェイ装置10から送信された状態参照要求が受信されたとき、受信された状態参照要求に従って、被制御機器30の状態を参照することができた場合、状態参照成功応答を生成し、被制御機器30の状態を参照することができなかった場合、状態参照失敗応答を生成する。
When the state reference request transmitted from the
状態通知送信部313は、被制御機器30に障害等が発生したとき、状態通知を生成する。
The status
通信部320は、ゲートウェイ装置10から送信される制御要求及び状態参照要求を受信し、制御要求応答部311及び状態参照要求応答部312に渡す。また、通信部320は、制御要求応答部311により生成された制御成功要求及び制御失敗応答をゲートウェイ装置10に送信する。また、通信部320は、状態参照要求応答部312により生成された状態成功参照応答及び状態参照失敗応答、並びに状態通知送信部313により生成された状態通知をゲートウェイ装置10に送信する。
The
図7は、ゲートウェイ装置10が、制御要求をコントローラから受信した場合のコントロール値とカレント値の更新処理を示したフローチャートである。なお、制御要求を送信するコントローラが、プロトコルA、プロトコルB、又はその他のプロトコルに接続されるコントローラ20であっても、ゲートウェイ装置10は同様の更新処理を行う。
FIG. 7 is a flowchart showing the control value and current value update processing when the
以下の説明では、コントローラ21が制御要求を送信した場合を例に挙げて説明する。まず、コントローラ21は、プロトコルAに従って制御要求をゲートウェイ装置10に送信する(ステップS1)。次に、ゲートウェイ装置10は、コントローラ21から送信される制御要求を受信すると(ステップS11)、機器管理部111は、プロトコルA処理部117、及びプロトコル変換処理部114を経由して要求データ管理部112へ要求データを格納する(ステップS12)。
In the following description, a case where the
次に、要求データ管理部112は、制御要求を、プロトコルC処理部115を経由して被制御機器30へ送信し(ステップS13)、被制御機器30は制御要求を受信する(ステップS21)。次に、機器管理部111は、要求データ管理部112に格納した制御要求から、状態の変更対象となる被制御機器30を特定すると共に、制御種別及び状態値を抽出する。次に。機器管理部111は、特定した被制御機器30のコントロール値を更新する(ステップS14)。
Next, the request
ここで、機器管理部111は、制御要求から抽出した制御種別と同一の制御種別をコントロール値の中から特定し、特定した制御種別に対する状態値を、抽出した状態値で更新する。このとき、機器管理部111は、カレント値を更新しない。
Here, the
例えば、被制御機器30がエアコンであり、制御要求に制御種別として「設定温度」、状態値として「24度」が含まれていた場合、機器管理部111は、エアコンのコントロール値の「設定温度」を「24度」に更新する。
For example, when the controlled
次に、機器管理部111は、コントロール値を更新した被制御機器30の状態を描画データ提供部119へ通知し、描画データ提供部119は、更新されたコントロール値を表示部120に表示されたコントロール値に反映させる(ステップS15)。次に、更新通知部121は、コントロール値が更新されたことをコントローラ20に通知するための更新通知を生成し、プロトコル変換処理部114は、生成されたコントロール値をプロトコルA,Bに変換し、コントローラ21,22へ送信する(ステップS16)。ただし、更新通知部121は、コントロール値の更新通知を必ずしなければならないものではなく、被制御機器30の状態が変更されたときのみ送信してもよい。また、更新通知部121は、制御要求を送信し、応答結果待ちのコントローラ20へ対して、更新通知を送信しなくてもよい。
Next, the
次に、コントローラ20は、ゲートウェイ装置10から送信された更新通知を受信し(ステップS2)、受信した更新通知に従って、表示部210に表示されているコントロール値を更新する(ステップS3)。例えば、被制御機器31がエアコンであり、エアコンのコントロール値の設定温度が「24度」に更新されたとすると、コントローラ20は、表示部210に表示されたエアコンのコントロール値の設定温度を「24度」に更新する。
Next, the
図8は、ゲートウェイ装置10が、制御成功応答を被制御機器30から受信した場合のコントロール値とカレント値の更新処理を示した図である。ここでは、被制御機器31が制御成功応答を送信したものとする。まず、被制御機器31は、制御成功応答をゲートウェイ装置10に送信する(ステップS71)。次に、ゲートウェイ装置10は、被制御機器31から制御成功応答を受信すると(ステップS61)、機器管理部111が、受信した制御成功応答に含まれる送信元から被制御機器31を特定すると共に、受信した制御成功応答に含まれる制御種別及び状態値を抽出する(ステップS62)。次に、機器管理部111は、抽出した状態値で、被制御機器31のカレント値を更新する(ステップS63)。例えば、被制御機器31がエアコンであり、制御成功応答に制御種別として「設定温度」、状態値として「24度」が含まれていたとすると、機器管理部111は、エアコンのカレント値の設定温度に対する状態値を「24度」に更新する。ここで、要求データ管理部112は、制御種別が「設定温度」である制御要求を保持している場合は、その制御要求を削除する。
FIG. 8 is a diagram showing a control value and current value update process when the
また、要求データ管理部112は、例えばコントローラ21からエアコンの設定温度を24度にする制御要求(先の制御要求)を保持している状態、すなわち、エアコンから先の制御要求に対する制御応答を受信待ちの状態において、コントローラ22からエアコンの設定温度を23度にする制御要求(後の制御要求)を受信した場合、機器管理部111は、後の制御要求のエアコンへの送信を保留して、要求データ管理部112に保持させる。そして、エアコンから先の制御要求に対する制御応答を受信したとき、要求データ管理部112は、先の制御要求を削除し、機器管理部111は、後の制御要求をエアコンに送信する。ここで、要求データ管理部112は、制御応答の受信待ちの制御要求に対し、フラグを設定する等して、制御応答の受信待ちの制御要求と、被制御機器30に未送信である制御要求とを区別する。
In addition, the request
図9は、ゲートウェイ装置10が、制御成失敗応答を被制御機器31から受信した場合のコントロール値とカレント値の更新シーケンスを示したフローチャートである。まず、被制御機器30は、制御失敗応答をゲートウェイ装置10に送信する(ステップS131)。ゲートウェイ装置10は、被制御機器30から制御失敗応答を受信すると(ステップS121)、機器管理部111は、受信した制御失敗応答から送信元及び制御種別を抽出し、要求データ管理部112は、以下に示す2つの条件の両方を満たし、かつ、制御応答が受信待ちである制御要求を削除する。
FIG. 9 is a flowchart showing a control value and current value update sequence when the
次に、機器管理部111は、以下に示す2つの条件を両方満たす制御要求が要求データ管理部112に保持されているか否かを判定する(ステップS122)。
Next, the
条件1:送信先が、受信した制御失敗応答に含まれる送信元と同一
条件2:制御種別が、受信した制御失敗応答に含まれる制御種別と同一
機器管理部111は、要求データ管理部112に、条件1,2の両方を満たす制御要求が存在すると判定した場合(ステップS122でYES)、コントロール値を更新することなく処理を終了する(ステップS123)。
Condition 1: The transmission destination is the same as the transmission source included in the received control failure response Condition 2: The control type is the same as the control type included in the received control failure response The
例えば、制御失敗応答を送信した被制御機器31をエアコンとし、受信した制御失敗応答の制御種別が「設定温度」、状態値が「24度」であったとすると、要求データ管理部112は、エアコンの温度を設定するための制御要求であって、制御応答が受信待ちである制御要求、すなわち、制御種別を「設定温度」とするエアコンへの制御要求であって、制御応答が受信待ちである制御要求を削除する。
For example, if the controlled device 31 that has transmitted the control failure response is an air conditioner, the control type of the received control failure response is “set temperature”, and the state value is “24 degrees”, the request
そして、機器管理部111は、制御種別を「設定温度」とするエアコンの制御要求が要求データ管理部112に保持されている場合は、コントロール値の更新を行わない。
Then, the
一方、機器管理部111は、要求データ管理部112に条件1,2の両方を満たす制御要求が存在しないと判定した場合(ステップS122でNO)、制御失敗応答を送信した被制御機器31のコントロール値を、被制御機器31のカレント値で更新する(ステップS124)。
On the other hand, when the
例えば、被制御機器31をエアコンとし、制御失敗応答に制御種別として「設定温度」が含まれたとすると、機器管理部111は、エアコンのコントロール値の設定温度に対する状態値を、エアコンのカレント値の設定温度に対する状態値で更新する。
For example, if the controlled device 31 is an air conditioner and the control failure response includes “set temperature” as the control type, the
ステップS122でNOと判定される場合として、例えば、ゲートウェイ装置10にエアコンの温度を設定するための制御要求が複数送信された場合に、要求データ管理部112が、エアコンの温度を設定するための制御要求であって、制御応答が受信待ちである制御要求を削除した後に、要求データ管理部112がエアコンの温度を設定するための制御要求を保持している場合が該当する。
As a case where NO is determined in step S122, for example, when a plurality of control requests for setting the temperature of the air conditioner are transmitted to the
次に、描画データ提供部119は、機器管理部111により更新されたコントロール値を表示部120に表示する(ステップS125)。例えば、エアコンのコントロール値の設定温度が「24度」に更新された場合、描画データ提供部119は、表示部120に表示されたエアコンのコントロール値の設定温度を「24度」に更新する。
Next, the drawing
次に、更新通知部121は、機器管理部111により被制御機器31のコントロール値が更新されたことを通知する更新通知を生成し、全てのコントローラ20に送信する(ステップS126)。
Next, the
次に、コントローラ20は、ゲートウェイ装置10から送信された更新通知を受信し(ステップS111)、受信した更新通知に従って、表示部210に表示されているコントロール値を更新する(ステップS112)。例えば、被制御機器31がエアコンであり、エアコンのコントロール値の設定温度が「24度」に更新されたとすると、コントローラ20は、表示部210に表示されたエアコンのコントロール値の設定温度を「24度」に更新する。
Next, the
図10は、ゲートウェイ装置10が、状態参照要求をコントローラから受信した場合のコントロール値とカレント値の更新シーケンスを示したフローチャートである。まず、コントローラ20は、状態参照要求をゲートウェイ装置10に送信する(ステップS31)。ゲートウェイ装置10は、コントローラ20から状態参照要求を受信すると(ステップS41)、機器管理部111は、プロトコルA処理部117、及びプロトコル変換処理部114を経由して、要求データ管理部112へ状態参照要求を格納する(ステップS41)。そして、機器管理部111は、状態参照要求を被制御機器30へ送信し(ステップS42)、被制御機器30は状態参照要求を受信する(ステップS51)。このとき、機器管理部111は、コントロール値、カレント値のいずれの値も更新しない。
FIG. 10 is a flowchart showing a control value and current value update sequence when the
図11は、ゲートウェイ装置10が、状態参照成功応答を被制御機器30から受信した場合のコントロール値とカレント値の更新シーケンスを示したフローチャートである。まず、被制御機器30は、ゲートウェイ装置10に状態参照成功応答を送信する(ステップS101)。ゲートウェイ装置10は、被制御機器30から状態参照成功応答を受信する(ステップS91)。ここでは、被制御機器31が状態参照成功応答を送信したものとする。次に、機器管理部111は、受信された状態参照成功応答から送信元、制御種別、及び状態値を抽出し、被制御機器31を特定し、被制御機器31のカレント値を、抽出した状態値で更新する(ステップS92)。例えば、被制御機器31をエアコンとし、状態参照成功応答に、制御種別として「設定温度」、状態値として「24度」が含まれていたとすると、機器管理部111は、エアコンのカレント値の設定温度の状態値を24度に更新する。
FIG. 11 is a flowchart showing a control value and current value update sequence when the
次に、機器管理部111は、要求データ管理部112に以下に示す2つの条件1,2を両方満たす制御要求が存在するか否かを判定する(ステップS93)。
Next, the
条件1:送信先が、受信した状態参照成功応答に含まれる送信元と同一
条件2:制御種別が、受信した状態参照成功応答に含まれる制御種別と同一
機器管理部111は、要求データ管理部112に、条件1,2の両方を満たす制御要求が存在すると判定した場合(ステップS93でYES)、コントロール値を更新することなく処理を終了する(ステップS94)。
Condition 1: The transmission destination is the same as the transmission source included in the received status reference success response Condition 2: The control type is the same as the control type included in the received status reference success response The
例えば、制御対象となる被制御機器30をエアコンとし、受信した状態参照成功応答の制御種別が「設定温度」、状態値が「24度」であったとすると、機器管理部111は、エアコンの温度を設定するための制御要求、すなわち、制御種別を「設定温度」とするエアコンへの制御要求が、要求データ管理部112に保持されていた場合、コントロール値を更新しない。
For example, assuming that the controlled
一方、機器管理部111は、要求データ管理部112に、条件1,2の両方を満たす制御要求が存在しないと判定した場合(ステップS93でNO)、状態参照成功応答を送信した被制御機器31のコントロール値を、抽出した状態値で更新する(ステップS95)。
On the other hand, when the
次に、描画データ提供部119は、機器管理部111により更新されたコントロール値を表示部120に表示する(ステップS96)。例えば、エアコンのコントロール値の設定温度が「24度」に更新された場合、描画データ提供部119は、表示部120に表示されたエアコンのコントロール値の設定温度を「24度」に更新する。
Next, the drawing
次に、更新通知部121は、機器管理部111により被制御機器31のコントロール値が更新されたことを通知する更新通知を生成し、全てのコントローラ20に送信する(ステップS97)。
Next, the
次に、コントローラ20は、ゲートウェイ装置10から送信された更新通知を受信し(ステップS81)、受信した更新通知に従って、表示部210に表示されているコントロール値を更新する(ステップS82)。例えば、被制御機器31がエアコンであり、エアコンのコントロール値の設定温度が「24度」に更新されたとすると、コントローラ20は、表示部210に表示されたエアコンのコントロール値の設定温度を「24度」に更新する。ただし、更新通知部121は、コントロール値の更新通知を必ずしなければならないものではなく、被制御機器30の状態が変更されたときのみ送信してもよい。
Next, the
図12は、ゲートウェイ装置10が、状態参照失敗応答を被制御機器30から受信した場合のコントロール値とカレント値の更新シーケンスを示したフローチャートである。まず、被制御機器30は、ゲートウェイ装置10に状態参照失敗応答を送信する(ステップS151)。次に、ゲートウェイ装置10は、被制御機器30から状態参照失敗応答を受信すると(ステップS141)、機器状態保持部113が保持するカレント値、コントロール値ともに更新しない(ステップS142)。
FIG. 12 is a flowchart showing a control value and current value update sequence when the
図13は、ゲートウェイ装置10が、状態通知を被制御機器30から受信した場合のコントロール値とカレント値の更新シーケンスを示したフローチャートである。まず、被制御機器30は、ゲートウェイ装置10に状態通知を送信する(ステップS181)。ここでは、被制御機器31が状態通知を送信したものとする。
FIG. 13 is a flowchart showing a control value and current value update sequence when the
次に、ゲートウェイ装置10は、被制御機器30から状態通知を受信すると(ステップS171)、機器管理部111は、状態通知から送信元、制御種別、及び状態値を抽出し、被制御機器31を特定し、被制御機器31のカレント値を、抽出した状態値で更新する(ステップS172)。例えば、被制御機器31をエアコンとし、状態通知に、制御種別として「設定温度」、状態値として「24度」が含まれていたとすると、機器管理部111は、エアコンのカレント値の設定温度の状態値を24度に更新する。
Next, when the
次に、機器管理部111は、要求データ管理部112に以下に示す2つの条件1,2を両方満たす制御要求が存在するか否かを判定する(ステップS173)。
Next, the
条件1:送信先が、受信した状態通知に含まれる送信元と同一
条件2:制御種別が、受信した状態通知に含まれる制御種別と同一
機器管理部111は、要求データ管理部112に、条件1,2の両方を満たす制御要求が存在すると判定した場合(ステップS173でYES)、コントロール値を更新することなく処理を終了する(ステップS174)。
Condition 1: The transmission destination is the same as the transmission source included in the received status notification. Condition 2: The control type is the same as the control type included in the received status notification. The
例えば、制御対象となる被制御機器30をエアコンとし、受信した状態通知の制御種別が「設定温度」、状態値が「24度」であったとすると、機器管理部111は、エアコンの温度を設定するための制御要求、すなわち、制御種別を「設定温度」とするエアコンへの制御要求が、要求データ管理部112に保持されていた場合、コントロール値を更新しない。
For example, if the controlled
一方、機器管理部111は、要求データ管理部112に、条件1,2の両方を満たす制御要求が存在しないと判定した場合(ステップS173でNO)、状態通知を送信した被制御機器31のコントロール値を、抽出した状態値で更新する(ステップS175)。
On the other hand, if the
次に、描画データ提供部119は、機器管理部111により更新されたコントロール値を表示部120に表示する(ステップS176)。ステップS173でNOと判定される場合としては、例えば、要求データ管理部112が受信待ちである制御要求を保持している状態において、当該制御要求によって制御される被制御機器30から状態通知を受信した場合が該当する。
Next, the drawing
次に、更新通知部121は、機器管理部111により被制御機器31のコントロール値が更新されたことを通知する更新通知を生成し、全てのコントローラ20に送信する(ステップS177)。
Next, the
次に、コントローラ20は、ゲートウェイ装置10から送信された更新通知を受信し(ステップS161)、受信した更新通知に従って、表示部210に表示されているコントロール値を更新する(ステップS162)。ただし、更新通知部121は、コントロール値の更新通知を必ずしなければならないものではなく、被制御機器30の状態が変更されたときのみ送信してもよい。
Next, the
以上説明したように、本ゲートウェイ装置10によれば、機器状態保持部113は、コントローラ20へ公開するためのコントロール値と、被制御機器の実際の状態を示すカレント値とを保持し、機器管理部111は、コントローラ20から制御要求を受信したとき、制御要求が要求する状態で更新し、更新通知部121は、コントロール値が更新されたことを通知するための更新通知を全てのコントローラ20に送信し、コントローラ20は、この更新通知に従って、被制御機器30の状態を示す画像を更新する。そのため、全てのコントローラ20が表示する被制御機器30の状態の同期を図ることができる。
As described above, according to the
また、ゲートウェイ装置10は、制御成功応答を受信したとき、更新通知をコントローラ20に送信しなくとも、制御成功応答に対する制御要求の受信時にコントローラ20が表示する被制御機器30の状態の同期が図られているため、コントロール値を更新する必要がなく、ネットワークへの負荷を軽減することができる。
Further, when the
また、ゲートウェイ装置10は、制御失敗応答を受信したとき、制御失敗応答に対する制御要求を保持している場合、コントロール値を更新しないため、ユーザが要求する状態とは異なる状態がコントローラ20に表示されることを防止することができ、ユーザへのストレスを軽減することができる。
When the
更に、ゲートウェイ装置10は、制御失敗応答を受信したとき、制御失敗応答に対する制御要求が保持されていない場合、コントロール値を更新するため、ユーザが被制御機器30の本体を操作して、被制御機器30の状態が変更された場合であっても、コントローラ20に実際の被制御機器30の状態を表示させることができる。
Further, when the
更に、ゲートウェイ装置10は、状態参照成功応答、及び状態通知を受信したとき、カレント値を更新するため、カレント値に実際の被制御機器30の状態を保持させることができる。
Furthermore, when the
更に、ゲートウェイ装置10は、状態参照成功応答を受信したとき、状態参照成功応答に対する制御要求を保持している場合、その制御要求の受信時にコントローラ20が表示する被制御機器30の状態の同期が図られているため、コントロール値を更新する必要がなく、ネットワークへの負荷を軽減することができる。
Furthermore, when the
更に、ゲートウェイ装置10は、状態参照成功応答を受信したとき、状態参照成功応答に対する制御要求を保持していない場合、コントロール値を更新するため、ユーザが被制御機器30の本体を操作して、被制御機器30の状態が変更された場合であっても、コントローラ20に実際の被制御機器30の状態を表示させることができる。
Further, when the
更に、ゲートウェイ装置10は、状態通知を受信したとき、状態通知に対する制御要求を保持している場合、その制御要求の受信時にコントローラ20が表示する被制御機器30の状態の同期が図られているため、コントロール値を更新する必要がなく、ネットワークへの負荷が増大することを防止することができる。
Further, when the
更に、ゲートウェイ装置10は、状態通知を受信したとき、状態通知に対する制御要求を保持していない場合、ユーザが被制御機器30の本体を操作して、被制御機器30の状態が変更された場合であっても、コントローラ20に実際の被制御機器30の状態を表示させることができる。
Further, when the
(実施の形態2)
図14は、本発明の実施の形態2による被制御機器をホームネットワークに適用したときのネットワーク構成図を示している。このネットワークは、2つのコントローラ21,22、及び被制御機器30aを備えている。なお、本実施の形態において、実施の形態1と同一のものは同一の符号を付し、説明を省略する。
(Embodiment 2)
FIG. 14 shows a network configuration diagram when the controlled device according to the second embodiment of the present invention is applied to a home network. This network includes two
被制御機器30aのブロック図は、図2のゲートウェイ装置10と同様である。次に、被制御機器30aの動作について説明する。被制御機器30aは、コントローラ20から制御要求を受信すると、機器管理部111は、プロトコルB処理部116、プロトコル変換処理部114を介して、又はプロトコルA処理部117、プロトコル変換処理部114を介して制御要求を要求データ管理部112に格納するとともに、制御要求が示す状態でコントロール値を更新する。そして、更新通知部121は、コントロール値が更新されたことを示す更新通知をプロトコル変換処理部114、プロトコルB処理部116を介してコントローラ22に送信すると共に、プロトコル変換処理部114、プロトコルA処理部117を介してコントローラ21に送信する。
The block diagram of the controlled
このように本被制御機器30aによれば、複数のコントローラ20に表示される状態の同期を図ることができる。
Thus, according to the controlled
本発明によれば、被制御機器の状態をコントロール値とカレント値の二つの値で管理するため、ネットワーク上に複数のコントローラが接続している場合においても、全てのコントローラに表示されている被制御機器の状態を同期させることが可能である。また、制御が確定するまでコントローラに対して、被制御機器の状態を不必要に通知しないことにより、ユーザが要求する被制御機器の状態と異なる状態をコントローラへ表示させない。その結果、ユーザへストレスを軽減することができると共に、ユーザによる制御要求の再送が減り、ネットワークの負荷が軽減され、ネットワークの通信信頼性も大きく向上する。 According to the present invention, since the state of the controlled device is managed by the two values of the control value and the current value, even when a plurality of controllers are connected on the network, the controlled devices displayed on all the controllers are displayed. It is possible to synchronize the state of the control equipment. Also, by not notifying the controller of the state of the controlled device unnecessarily until the control is confirmed, a state different from the state of the controlled device requested by the user is not displayed on the controller. As a result, it is possible to reduce stress on the user, reduce the retransmission of the control request by the user, reduce the load on the network, and greatly improve the communication reliability of the network.
10 ゲートウェイ装置
20 コントローラ
21,22 コントローラ
30,30a 被制御機器
31〜34 被制御機器
111 機器管理部
112 要求データ管理部
113 機器状態保持部
114 プロトコル変換処理部
115 プロトコルC処理部
116 プロトコルB処理部
117 プロトコルA処理部
119 描画データ提供部
120 表示部
121 更新通知部
210 表示部
220 制御部
221 制御要求送信部
222 状態参照要求送信部
223 報知制御部
230 通信部
240 操作部
310 制御部
311 制御要求応答部
312 状態参照要求応答部
313 状態通知送信部
320 通信部
N1 ネットワーク
N2 ネットワーク
N3 ネットワーク
DESCRIPTION OF
Claims (13)
前記コントローラから前記被制御機器を所定の状態に変更するために送信される制御要求を保持する要求データ管理手段と、
前記被制御機器の状態として、前記コントローラへ公開するためのコントロール値と、前記被制御機器から送信されるデータに基づいて更新され、被制御機器の実際の状態を示すカレント値とを保持する機器状態保持手段と、
前記コントローラから制御要求受信時に、受信した制御要求の送信先の被制御機器のコントロール値を、受信した制御要求が要求する状態で更新する機器管理手段と、
前記機器管理手段によりコントロール値が更新されたとき、その更新を通知するための更新通知を全てのコントローラに送信する更新通知手段とを備えることを特徴とするゲートウェイ装置。 A gateway device connected to a controller and a controlled device controlled by the controller,
Request data management means for holding a control request transmitted to change the controlled device from the controller to a predetermined state;
As a state of the controlled device, a device that holds a control value to be disclosed to the controller and a current value that is updated based on data transmitted from the controlled device and indicates an actual state of the controlled device State holding means;
Upon receiving a control request from the controller, device management means for updating the control value of the controlled device to which the received control request is transmitted in a state requested by the received control request;
An update notification means for transmitting an update notification for notifying the update when the control value is updated by the device management means to the gateway device.
前記表示手段へ被制御機器の状態を提供する描画データ提供手段とを更に備えることを特徴とする請求項1に記載のゲートウェイ装置。 Display means for displaying an image for controlling the controlled device and an image for displaying a state of the controlled device;
The gateway apparatus according to claim 1, further comprising drawing data providing means for providing a state of the controlled device to the display means.
前記コントローラから前記被制御機器を所定の状態に変更するために送信される制御要求を保持する要求データ管理手段と、
前記被制御機器の状態として、前記コントローラへ公開するためのコントロール値と、前記被制御機器から送信されるデータに基づいて更新されるカレント値とを保持する機器状態保持手段と、
前記コントローラから制御要求受信時に、受信した制御要求の送信先の被制御機器のコントロール値を、受信した制御要求が示す状態で更新する機器管理手段と、
前記機器管理手段によりコントロール値が更新されたとき、その更新を通知するための更新通知を全てのコントローラに送信する更新通知手段とを備えることを特徴とする被制御機器。 A controlled device controlled by a controller connected via a network,
Request data management means for holding a control request transmitted to change the controlled device from the controller to a predetermined state;
Device state holding means for holding a control value for release to the controller as a state of the controlled device and a current value updated based on data transmitted from the controlled device;
Upon receiving a control request from the controller, device management means for updating the control value of the control target device of the destination of the received control request in a state indicated by the received control request;
A controlled device comprising: an update notification means for transmitting an update notification for notifying the update when a control value is updated by the device management means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006198419A JP2008027144A (en) | 2006-07-20 | 2006-07-20 | Gateway device and controlled device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006198419A JP2008027144A (en) | 2006-07-20 | 2006-07-20 | Gateway device and controlled device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008027144A true JP2008027144A (en) | 2008-02-07 |
Family
ID=39117717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006198419A Pending JP2008027144A (en) | 2006-07-20 | 2006-07-20 | Gateway device and controlled device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008027144A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015154293A (en) * | 2014-02-14 | 2015-08-24 | 京セラ株式会社 | Control apparatus and control method |
JP2015179952A (en) * | 2014-03-19 | 2015-10-08 | シャープ株式会社 | Control system, hems controller, and control method |
-
2006
- 2006-07-20 JP JP2006198419A patent/JP2008027144A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015154293A (en) * | 2014-02-14 | 2015-08-24 | 京セラ株式会社 | Control apparatus and control method |
JP2015179952A (en) * | 2014-03-19 | 2015-10-08 | シャープ株式会社 | Control system, hems controller, and control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9146731B2 (en) | Information processing apparatus, relay server, information relay method, non-transitory computer-readable medium storing information relay program, and communication system | |
US9806900B2 (en) | Wireless provisioning and configuring of hardware elements of a home automation system | |
EP3229420A1 (en) | Method for establishing persistent connection between multiple smart devices and server, and smart device | |
JP5976210B2 (en) | Monitoring system, facility management apparatus, monitoring method and program | |
JP6279938B2 (en) | Connection management apparatus, communication system, connection management method and program | |
JP2005267303A (en) | Information processing apparatus, network system and method for controlling network system | |
CN108306796B (en) | Intelligent home system, and information processing method and device of intelligent home equipment | |
US9225585B2 (en) | Method and system for device management, and server | |
JP6619505B2 (en) | Sensor relay device and sensor relay system | |
US9002927B2 (en) | Apparatus and method for managing remote user interface and system for the same | |
JP6301752B2 (en) | Information service display system and time synchronization method | |
WO2015020202A1 (en) | Control device, apparatus operation system, control method, and program | |
WO2015020078A1 (en) | Control device, control system, control method, and program | |
JP2008027144A (en) | Gateway device and controlled device | |
KR20170002003A (en) | Automatic Execution Method for Controlling a plurality of Devices, Application, and Server | |
JP5506729B2 (en) | Engineering equipment | |
JP5550595B2 (en) | Engineering equipment | |
US20170094035A1 (en) | Management method and management device | |
US20170222919A1 (en) | Communication device, communication system, and computer program product | |
JP2014230064A (en) | Communication system, server device, communication method, and program | |
JP2014060636A (en) | Communication interface conversion device | |
JP6592616B2 (en) | Relay device | |
KR101906350B1 (en) | Method for controlling function of a device included in home network | |
JP2007188394A (en) | Equipment control communication system, equipment control communication method, controller, and equipment control communication program | |
JP2019169960A (en) | Control device, apparatus operation system, control method and program |