[go: up one dir, main page]

JP2014230064A - Communication system, server device, communication method, and program - Google Patents

Communication system, server device, communication method, and program Download PDF

Info

Publication number
JP2014230064A
JP2014230064A JP2013107820A JP2013107820A JP2014230064A JP 2014230064 A JP2014230064 A JP 2014230064A JP 2013107820 A JP2013107820 A JP 2013107820A JP 2013107820 A JP2013107820 A JP 2013107820A JP 2014230064 A JP2014230064 A JP 2014230064A
Authority
JP
Japan
Prior art keywords
server
control
communication
server device
command
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
Application number
JP2013107820A
Other languages
Japanese (ja)
Inventor
中村 雅也
Masaya Nakamura
雅也 中村
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2013107820A priority Critical patent/JP2014230064A/en
Publication of JP2014230064A publication Critical patent/JP2014230064A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

【課題】各々が特定の被制御装置を制御可能な複数の制御装置のいずれかを用いて、当該特定の被制御装置を制御可能な通信システムを提供する。【解決手段】通信システム1は、サーバ装置100と、各々が制御装置であるホームサーバ200および通信機器300と、被制御装置であるエアーコンディショナ401とを備る。ホームサーバ200および通信機器300の各々は、サーバ装置100およびエアーコンディショナ401と通信可能に接続されている。サーバ装置100は、予め定められた規則に基づいて、ホームサーバ200および通信機器300のうちから1つの制御装置を選択する。サーバ装置100は、選択された制御装置に対して、エアーコンディショナ401を制御するための指令を送信する。選択された制御装置は、上記指令に基づきエアーコンディショナ401を制御する。【選択図】図1A communication system capable of controlling a specific controlled device using any one of a plurality of control devices capable of controlling the specific controlled device. A communication system includes a server device, a home server and a communication device, each of which is a control device, and an air conditioner that is a controlled device. Each of home server 200 and communication device 300 is communicably connected to server device 100 and air conditioner 401. Server device 100 selects one control device from home server 200 and communication device 300 based on a predetermined rule. The server device 100 transmits a command for controlling the air conditioner 401 to the selected control device. The selected control device controls the air conditioner 401 based on the command. [Selection] Figure 1

Description

本発明は、通信システム、サーバ装置、通信方法、およびプログラムに関する。特に、家庭用電気器具等の被制御装置を制御するための通信システム、通信システムを構成するサーバ装置、サーバ装置における通信方法、およびサーバ装置を制御するためのプログラムに関する。   The present invention relates to a communication system, a server device, a communication method, and a program. In particular, the present invention relates to a communication system for controlling a controlled device such as a home appliance, a server device constituting the communication system, a communication method in the server device, and a program for controlling the server device.

従来、複数の家庭用電気器具が接続されたホームネットワークが知られている。特許文献1には、当該ホームネットワークとして、デジタル信号により相互通信を可能とした分散型ホームネットワークが開示されている。具体的には、特許文献1の分散型ネットワークは、チューナユニットと、クライアントユニットと、サーバユニットとを備える。   Conventionally, a home network in which a plurality of household appliances are connected is known. Patent Document 1 discloses a distributed home network that enables mutual communication using digital signals as the home network. Specifically, the distributed network of Patent Document 1 includes a tuner unit, a client unit, and a server unit.

チューナユニットは、放送波を受信する。チューナユニットは、受信した放送波に基づく映像情報を含むデジタル信号を、ネットワークに送出する。クライアントユニットは、チューナユニットとネットワークに接続された各種の機器とを操作するために、ネットワークに接続されている機器から送信されるデジタル信号を受信する。クライアントユニットは、当該受信したデジタル信号を映像として表示する。サーバユニットは、チューナユニットから送信されたデジタル信号を蓄積する。サーバユニットは、クライアントユニットからの制御要求により、映像情報を含むデジタル信号をネットワークに送出する。   The tuner unit receives a broadcast wave. The tuner unit sends a digital signal including video information based on the received broadcast wave to the network. The client unit receives a digital signal transmitted from a device connected to the network in order to operate the tuner unit and various devices connected to the network. The client unit displays the received digital signal as an image. The server unit stores the digital signal transmitted from the tuner unit. The server unit sends a digital signal including video information to the network in response to a control request from the client unit.

特許文献1では、分散型ネットワークが上記の構成を有することにより、各家庭用電気器具を集中制御するコントローラが故障すると家庭全体の機能が停止してしまうといった従来の集中型ネットワークの問題点を解消できると記載されている。   In Patent Document 1, since the distributed network has the above-described configuration, the problem of the conventional centralized network in which the function of the entire household stops when the controller that centrally controls each household appliance fails is solved. It is described that it can.

また、従来、ネットワークを介して所定の制御プロトコルにより被制御装置の制御を行なうための通信装置が知られている。特許文献2には、当該通信装置として、インタフェース手段と、問合せ手段と、受信手段と、決定手段と、通知手段とを備えるコントローラが開示されている。   Conventionally, a communication apparatus for controlling a controlled apparatus via a network by a predetermined control protocol is known. Patent Document 2 discloses a controller including an interface unit, an inquiry unit, a reception unit, a determination unit, and a notification unit as the communication device.

インタフェース手段は、ネットワークを介して被制御装置と通信する。問合せ手段は、インタフェース手段を介して被制御装置に対し、当該被制御装置がサポートしている制御プロトコルを問合せる。受信手段は、インタフェース手段を介して被制御装置から、当該被制御装置がサポートしている1または複数の制御プロトコルの一覧情報を受信する。決定手段は、受信手段により受信された一覧情報に基づいて、使用すべき制御プロトコルを決定する。通知手段は、インタフェース手段を介して被制御装置に対し、決定手段により使用すべきと決定された制御プロトコルを通知する。   The interface means communicates with the controlled device via the network. The inquiry means inquires of the controlled device via the interface means about the control protocol supported by the controlled device. The receiving means receives list information of one or more control protocols supported by the controlled apparatus from the controlled apparatus via the interface means. The determining means determines a control protocol to be used based on the list information received by the receiving means. The notifying unit notifies the controlled device of the control protocol determined to be used by the determining unit via the interface unit.

特許文献2では、コントローラは上記の構成を有することにより、上位のプロトコルが複数存在する場合に通信相手との間で使用すべきプロトコルを選択かつ使用できるようになると記載されている。   Patent Document 2 describes that the controller has the above-described configuration, so that a protocol to be used with a communication partner can be selected and used when a plurality of higher-level protocols exist.

特開平11−88865号公報Japanese Patent Laid-Open No. 11-88865 特開2002−315066号公報JP 2002-315066 A

しかしながら、従来のネットワークは、1つの制御装置が1または複数の被制御装置を制御する構成しか考慮されていない。つまり、1つの被制御装置を制御するために複数の制御装置を用いてネットワークを構成することは検討されていない。   However, the conventional network only considers a configuration in which one control device controls one or a plurality of controlled devices. That is, it has not been studied to configure a network using a plurality of control devices in order to control one controlled device.

本願発明は、上記の問題点に鑑みなされたものであって、その目的は、各々が特定の被制御装置を制御可能な複数の制御装置のいずれかを用いて、当該特定の被制御装置を制御可能な通信システム、当該通信システムを構成するサーバ装置、当該サーバ装置における通信方法、および当該サーバ装置を制御するためのプログラムを提供することにある。   The present invention has been made in view of the above-described problems, and the object of the present invention is to use any one of a plurality of control devices capable of controlling a specific controlled device, and to control the specific controlled device. It is to provide a controllable communication system, a server device constituting the communication system, a communication method in the server device, and a program for controlling the server device.

本発明のある局面に従うと、通信システムは、サーバ装置と、複数の制御装置と、被制御装置とを備える。複数の制御装置の各々は、サーバ装置および被制御装置と通信可能に接続されている。サーバ装置は、予め定められた規則に基づいて、複数の制御装置のうちから1つの制御装置を選択する選択手段と、選択された制御装置に対して、被制御装置を制御するための指令を送信する送信手段とを含む。選択された制御装置は、指令に基づき被制御装置を制御する。   According to an aspect of the present invention, a communication system includes a server device, a plurality of control devices, and a controlled device. Each of the plurality of control devices is communicably connected to the server device and the controlled device. The server device selects, based on a predetermined rule, a selection unit that selects one control device from among a plurality of control devices, and a command for controlling the controlled device to the selected control device. Transmitting means for transmitting. The selected control device controls the controlled device based on the command.

好ましくは、複数の制御装置の各々は、被制御装置に対して送信すべきデータとして指令が存在するか否かを、指定されたタイミングでサーバ装置に対して問い合わせる問合手段と、問い合わせに基づき指令を受信する受信手段とを含む。   Preferably, each of the plurality of control devices, based on the inquiry, inquiry means for inquiring the server device at a designated timing whether or not a command exists as data to be transmitted to the controlled device. Receiving means for receiving the command.

好ましくは、指令は、端末装置からサーバ装置を介して選択された制御装置に送信されるものである。選択手段は、サーバ装置が端末装置から指令を受信した後に当該サーバ装置が最初に受信した問い合せの送信元である制御装置を選択する。   Preferably, the command is transmitted from the terminal device to the selected control device via the server device. The selection means selects a control device that is a transmission source of an inquiry that the server device first receives after the server device receives a command from the terminal device.

好ましくは、選択された制御装置が被制御装置の制御を行なえなかった場合には、送信手段は、複数の制御装置のうち、選択された制御装置とは異なる1つの制御装置に対して、指令を送信する。   Preferably, in a case where the selected control device cannot control the controlled device, the transmission means sends a command to one control device different from the selected control device among the plurality of control devices. Send.

好ましくは、選択手段は、選択された制御装置が被制御装置の制御を行なえなかったことを表した信号をサーバ装置が受信した後に当該サーバ装置が最初に受信した問い合せの送信元である制御装置を、異なる1つの制御装置として選択する。   Preferably, the selection unit is a control device which is a transmission source of an inquiry received first by the server device after the server device has received a signal indicating that the selected control device cannot control the controlled device. Are selected as one different control device.

好ましくは、通信システムは、被制御装置とは異なる他の被制御装置をさらに備える。複数の制御装置は、他の被制御装置に接続された第1の制御装置と、他の被制御装置に接続されていない第2の制御装置とを含む。選択手段は、第1の制御装置および第2の制御装置のうちから、第1の制御装置を選択する。サーバ装置は、第2の制御装置対して、問い合せのタイミングをデフォルト値で規定されるタイミングよりも遅らせるタイミング制御手段をさらに含む。   Preferably, the communication system further includes another controlled device different from the controlled device. The plurality of control devices include a first control device connected to another controlled device and a second control device not connected to the other controlled device. The selection means selects the first control device from the first control device and the second control device. The server device further includes timing control means for delaying the inquiry timing with respect to the second control device from the timing defined by the default value.

好ましくは、サーバ装置は、複数の制御装置のうちのいずれかの制御装置から問い合せを受信できなかった場合、サーバ装置が受信できた問い合わせの送信元の制御装置が送信する問い合せのタイミングをデフォルト値で規定されるタイミングよりも早めるタイミング制御手段をさらに含む。   Preferably, when the server device cannot receive an inquiry from any one of the plurality of control devices, the inquiry device transmits the inquiry timing transmitted by the server device to the default value. Timing control means for making the timing earlier than the timing defined in

好ましくは、選択手段は、複数の制御装置が、第1の通信方式でサーバ装置と通信する第1の制御装置と、第2の通信方式でサーバ装置と通信する第2の制御装置とを含む場合には、規則に基づいた選択として、第2の制御装置を選択する。第1の通信方式は、被制御装置に対して送信すべきデータとして指令が存在するか否かを、指定されたタイミングでサーバ装置に対して問い合わせ、問い合わせに基づき指令を受信する方式である。第2の通信方式は、問合せを行なうことなくサーバ装置から指令を受信する方式である。   Preferably, the selection unit includes a first control device in which the plurality of control devices communicate with the server device using the first communication method, and a second control device that communicates with the server device using the second communication method. In this case, the second control device is selected as the selection based on the rule. The first communication method is a method of inquiring the server device at a designated timing whether or not a command exists as data to be transmitted to the controlled device, and receiving the command based on the inquiry. The second communication method is a method of receiving a command from the server device without making an inquiry.

好ましくは、問い合せのタイミングは、サーバ装置によって指定される。
好ましくは、問い合わせのタイミングは、時間間隔または時刻により指定される。
Preferably, the inquiry timing is specified by the server device.
Preferably, the inquiry timing is specified by a time interval or time.

本発明の他の局面に従うと、サーバ装置は、複数の制御装置と通信する。複数の制御装置の各々は、サーバ装置から受信した指令に基づき、被制御装置を制御可能である。サーバ装置は、予め定められた規則に基づいて、複数の制御装置のうちから1つの制御装置を選択する選択手段と、選択された制御装置に対して、指令を送信する送信手段と備える。   According to another aspect of the present invention, the server device communicates with a plurality of control devices. Each of the plurality of control devices can control the controlled device based on a command received from the server device. The server device includes a selection unit that selects one control device from a plurality of control devices based on a predetermined rule, and a transmission unit that transmits a command to the selected control device.

本発明のさらに他の局面に従うと、通信方法は、複数の制御装置と通信するサーバ装置において実行される。複数の制御装置の各々は、サーバ装置から受信した指令に基づき、被制御装置を制御可能である。通信方法は、予め定められた規則に基づいて、複数の制御装置のうちから1つの制御装置を選択するステップと、選択された制御装置に対して、指令を送信するステップとを備える。   When the further another situation of this invention is followed, the communication method is performed in the server apparatus which communicates with a some control apparatus. Each of the plurality of control devices can control the controlled device based on a command received from the server device. The communication method includes a step of selecting one control device from among a plurality of control devices based on a predetermined rule, and a step of transmitting a command to the selected control device.

本発明のさらに他の局面に従うと、プログラムは、複数の制御装置と通信するサーバ装置を制御する。複数の制御装置の各々は、サーバ装置から受信した指令に基づき、被制御装置を制御可能である。プログラムは、予め定められた規則に基づいて、複数の制御装置のうちから1つの制御装置を選択するステップと、選択された制御装置に対して、指令を送信するステップとを、サーバ装置のプロセッサに実行させる。   If the further another situation of this invention is followed, a program will control the server apparatus which communicates with a some control apparatus. Each of the plurality of control devices can control the controlled device based on a command received from the server device. The program includes a step of selecting one control device from a plurality of control devices based on a predetermined rule, and a step of transmitting a command to the selected control device. To run.

本発明によれば、各々が特定の被制御装置を制御可能な複数の制御装置のいずれかを用いて当該特定の被制御装置を制御可能となる。   According to the present invention, a specific controlled device can be controlled using any one of a plurality of control devices each capable of controlling the specific controlled device.

通信システム1の概略構成を表した図である。1 is a diagram illustrating a schematic configuration of a communication system 1. FIG. 通信システム1における処理の流れを説明するためのシーケンスチャートである。3 is a sequence chart for explaining the flow of processing in the communication system 1; サーバ装置100のハードウェア構成の典型例を表した図である。2 is a diagram illustrating a typical example of a hardware configuration of a server apparatus 100. ホームサーバ200のハードウェア構成の典型例を表した図である。2 is a diagram illustrating a typical example of a hardware configuration of a home server 200. FIG. 通信機器300のハードウェア構成の典型例を表した図である。2 is a diagram illustrating a typical example of a hardware configuration of a communication device 300. FIG. サーバ装置100とホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。3 is a functional block diagram for explaining functional configurations of a server device 100, a home server 200, and a communication device 300. FIG. サーバ装置100における処理の流れを表したフローチャートである。3 is a flowchart showing a flow of processing in server apparatus 100. 通信システム1Aにおける処理の流れを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the flow of a process in the communication system 1A. サーバ装置100Aとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。3 is a functional block diagram for explaining functional configurations of a server device 100A, a home server 200, and a communication device 300. FIG. サーバ装置100Aにおける処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process in 100 A of server apparatuses. 通信システム1Bにおける処理の流れを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the flow of a process in the communication system 1B. サーバ装置100Bとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。3 is a functional block diagram for explaining functional configurations of a server device 100B, a home server 200, and a communication device 300. FIG. サーバ装置100Bにおける処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process in the server apparatus 100B. 通信システム1Cの詳細を説明するための図である。It is a figure for demonstrating the detail of the communication system 1C. 通信システム1Cにおける処理の流れを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the flow of a process in the communication system 1C. サーバ装置100Cとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。3 is a functional block diagram for explaining functional configurations of a server device 100C, a home server 200, and a communication device 300. FIG. サーバ装置100Cにおける処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process in 100 C of server apparatuses. 通信システム1Dの概略構成を表した図である。It is a figure showing schematic structure of communication system 1D. 通信システム1Dにおける処理の流れを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the flow of a process in communication system 1D. サーバ装置100Dとホームサーバ200Dと通信機器300との機能的構成を説明するための機能ブロック図である。It is a functional block diagram for demonstrating the functional structure of the server apparatus 100D, the home server 200D, and the communication apparatus 300. FIG. サーバ装置100Dにおける処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of a process in server apparatus 100D. 通信システム1Eの概略構成を表した図である。It is a figure showing the schematic structure of the communication system 1E. 通信システム1Fの概略構成を表した図である。It is a figure showing the schematic structure of the communication system 1F.

以下、図面を参照しつつ、本発明の各実施の形態に係る通信システムについて説明する。また、以下の説明では、同一の部材には同一の参照符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。   The communication system according to each embodiment of the present invention will be described below with reference to the drawings. In the following description, the same reference numerals are assigned to the same members. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

[実施の形態1]
<1A.システム構成>
図1は、本実施の形態に係る通信システム1の概略構成を表した図である。図1を参照して、通信システム1は、サーバ装置100と、ホームサーバ200と、通信機器300と、家庭用電気器具群400と、端末装置としてのスマートフォン500とを備える。家庭用電気器具群400は、複数の家庭用電気器具(被制御装置)として、エアーコンディショナ401と、照明装置402と、テレビ403とを含む。なお、エアーコンディショナ401、照明装置402、およびテレビ403は、被制御装置の一例であって、これに限定されるものではない。
[Embodiment 1]
<1A. System configuration>
FIG. 1 is a diagram showing a schematic configuration of a communication system 1 according to the present embodiment. With reference to FIG. 1, the communication system 1 is provided with the server apparatus 100, the home server 200, the communication apparatus 300, the household appliances 400, and the smart phone 500 as a terminal device. The household appliance group 400 includes an air conditioner 401, a lighting device 402, and a television 403 as a plurality of household appliances (controlled devices). Note that the air conditioner 401, the lighting device 402, and the television 403 are examples of controlled devices, and are not limited thereto.

ホームサーバ200、通信機器300、および各家庭用電気器具401〜403は、宅内に設置されている。サーバ装置100は、宅外に設置されている。また、本実施の形態では、スマートフォン500は、宅外にいるユーザに所持されているものとして説明する。通信機器300は、エアーコンディショナ401と離れた位置に設置されていてもよいし、あるいはエアーコンディショナ401に据え付けられていてもよい。また、通信機器300は、エアーコンディショナ401の内部に備え付けられていてもよい。   Home server 200, communication device 300, and home appliances 401 to 403 are installed in the house. Server apparatus 100 is installed outside the house. In the present embodiment, description will be given assuming that smartphone 500 is possessed by a user outside the home. The communication device 300 may be installed at a position away from the air conditioner 401 or may be installed on the air conditioner 401. In addition, the communication device 300 may be provided inside the air conditioner 401.

スマートフォン500は、サーバ装置100と通信可能に接続されている。サーバ装置100は、ホームサーバ200および通信機器300と通信可能に接続されている。ホームサーバ200は、サーバ装置100および各家庭用電気器具401〜403と通信可能に接続されている。通信機器300は、サーバ装置100およびエアーコンディショナ401と通信可能に接続されている。このように、通信システム1では、サーバ装置100は、ホームサーバ200を介してエアーコンディショナ401と通信可能に接続されているとともに、通信機器300を介してエアーコンディショナ401と通信可能に接続されている。   Smartphone 500 is connected to server device 100 so as to be communicable. Server device 100 is connected to home server 200 and communication device 300 in a communicable manner. Home server 200 is communicably connected to server device 100 and home appliances 401 to 403. Communication device 300 is communicably connected to server device 100 and air conditioner 401. As described above, in the communication system 1, the server device 100 is communicably connected to the air conditioner 401 via the home server 200 and is communicably connected to the air conditioner 401 via the communication device 300. ing.

サーバ装置100は、一例として、XML(Extensible Markup Language)等のマークアップ言語を用いた通信仕様に基づき、ホームサーバ200および通信機器300と通信する。なお、サーバ装置100は、JSON(JavaScript(登録商標) Object Notation)等の非マークアップ言を用いた通信仕様に基づき、ホームサーバ200および通信機器300と通信してもよい。通信に用いるデータの形式は、特に限定されるものではない。   For example, the server device 100 communicates with the home server 200 and the communication device 300 based on a communication specification using a markup language such as XML (Extensible Markup Language). Note that the server device 100 may communicate with the home server 200 and the communication device 300 based on a communication specification using non-markup language such as JSON (JavaScript (registered trademark) Object Notation). The format of data used for communication is not particularly limited.

より詳しくは、ホームサーバ200および通信機器300は、家庭用電気器具を制御するための指令が存在するか否かを、指定されたタイミングでサーバ装置100に対して問い合わせ、当該問い合わせに基づき上記指令を受信する。つまり、ホームサーバ200および通信機器300は、サーバ装置100に対してポーリングを行なう。   More specifically, the home server 200 and the communication device 300 make an inquiry to the server device 100 at a designated timing as to whether or not there is an instruction for controlling the home appliance, and the instruction is based on the inquiry. Receive. That is, the home server 200 and the communication device 300 poll the server device 100.

以下においては、問合せのタイミングのデフォルト値がホームサーバ200および通信機器300において予め指定(決定)されており、サーバ装置100が必要に応じてデフォルト値以外のタイミングで問い合せを行なうようにホームサーバ200および通信機器300に指示する構成を例に挙げて説明する。具体的には、ポーリングの送信についての時間間隔がホームサーバ200および通信機器300の各々において規定されており、サーバ装置100が必要に応じてポーリングの送信タイミングを変更する指示をホームサーバ200および通信機器300に通知する構成を例に挙げて説明する。   In the following, the default value of the inquiry timing is specified (determined) in advance in the home server 200 and the communication device 300, and the home server 200 makes an inquiry at a timing other than the default value as necessary. A configuration instructing the communication device 300 will be described as an example. Specifically, a time interval for polling transmission is defined in each of the home server 200 and the communication device 300, and the server device 100 issues an instruction to change the polling transmission timing as necessary. A configuration for notifying the device 300 will be described as an example.

なお、これに限定されず、次回の問い合わせのタイミングが、サーバ装置100によって毎回指定される構成であってもよい。つまり、ポーリングのタイミングは、サーバ装置100によって都度指定される構成としてもよい。問い合わせのタイミングは、たとえば、時間間隔または時刻により指定され得る。   However, the present invention is not limited to this, and the configuration may be such that the next inquiry timing is designated by the server device 100 each time. That is, the polling timing may be designated by the server device 100 each time. The inquiry timing can be specified by, for example, a time interval or a time.

また、以下では、説明を簡略化するために、ホームサーバ200および通信機器300は、サーバ装置100によって問い合わせの時間間隔が変更された場合を除き、「指定されたタイミング」の一例として「予め定められた時間間隔」で、サーバ装置100に対してポーリングを行なうものとして説明を行なう。すなわち、実際には、ポーリングの時間間隔は、一定範囲のランダム要素が含まれるため、正確には予め定められ時間間隔とはならない。たとえば、次回の問い合わせのタイミングがサーバ装置100によって毎回指定される構成においては、でサーバ装置100から指定される時間は、たとえば15分間隔といった固定された値ではなく、サーバ装置100への負荷を加味して、15分前後といったランダム要素が考慮された値となる。また、上述したように問合せのタイミングのデフォルト値がホームサーバ200および通信機器300において予め指定されている構成であっても、ランダム要素が考慮される。しかしながら、以下の説明では、説明を簡略化し、理解を容易とするために、当該ランダム要素を考慮しないで説明を行なう。   Also, in the following, in order to simplify the description, the home server 200 and the communication device 300 are “predetermined” as an example of “designated timing” except when the inquiry device time interval is changed by the server device 100. The description will be made assuming that the server apparatus 100 is polled at the “time interval”. In other words, in practice, the polling time interval includes a certain range of random elements, and thus is not accurately determined in advance. For example, in a configuration in which the timing of the next inquiry is specified every time by the server device 100, the time specified by the server device 100 is not a fixed value such as an interval of 15 minutes, but a load on the server device 100. Taking this into account, the value takes into account a random factor such as around 15 minutes. Further, as described above, even if the default value of the inquiry timing is specified in advance in the home server 200 and the communication device 300, random elements are taken into consideration. However, in the following description, in order to simplify the description and facilitate understanding, the description will be given without considering the random element.

ホームサーバ200は、スマートハウス向けの制御プロトコルおよびセンサーネットプロトコルを有する通信プロトコルを用いて、各家庭用電気器具401〜403と通信する。ホームサーバ200は、たとえばECHONET Lite(登録商標)によって、各家庭用電気器具401〜403と通信する。ただし、ホームサーバ200と家庭用電気器具401〜403との通信は、ECHONET Liteのように汎用の通信プロトコルによるものではなく、独自の通信プロトコルにより実現してもよい。   Home server 200 communicates with home appliances 401 to 403 using a communication protocol including a control protocol for a smart house and a sensor net protocol. Home server 200 communicates with each household electric appliance 401-403, for example by ECHONET Lite (trademark). However, the communication between the home server 200 and the home appliances 401 to 403 may be realized not by a general-purpose communication protocol like ECHONET Lite but by a unique communication protocol.

本実施の形態では、説明の便宜上、各家庭用電気器具401〜403がECHONET Liteによる通信を可能とする機能を内蔵しているものとして説明する。なお、家庭用電気器具がECHONET Liteによる通信を可能とする機能を内蔵していない場合には、当該機能を実現するためのアダプタを家庭用電気器具に通信可能に接続すればよい。   In this embodiment, for convenience of explanation, it will be assumed that each of the household electric appliances 401 to 403 has a built-in function that enables communication using ECHONET Lite. If the home appliance does not have a function that enables communication using ECHONET Lite, an adapter for realizing the function may be connected to the home appliance so as to be communicable.

スマートフォン500は、ユーザ操作に基づき、各家庭用電気器具401〜403を制御するための制御指令の入力を受け付ける。スマートフォン500は、受付けた制御指令をサーバ装置100に送信する。   The smartphone 500 receives an input of a control command for controlling each of the household appliances 401 to 403 based on a user operation. Smartphone 500 transmits the received control command to server device 100.

サーバ装置100は、受信した制御指令が照明装置402およびテレビ403のいずれかを制御するための指令である場合には、ポーリングに対する応答として、ホームサーバ200に制御指令を送信する。この場合、ホームサーバ200は、受信した制御指令に基づき、照明装置402およびテレビ403のいずれかを制御する。より詳しくは、ホームサーバ200は、マークアップ言語を用いた制御指令を解釈し、ECHONET LITEの通信に必要なデータを抽出する。ホームサーバ200は、当該抽出したデータを制御対象である照明装置402またはテレビ403に送信することより、家庭用電気器具を制御する。   When the received control command is a command for controlling either the lighting device 402 or the television 403, the server device 100 transmits a control command to the home server 200 as a response to polling. In this case, home server 200 controls either lighting device 402 or television 403 based on the received control command. More specifically, the home server 200 interprets a control command using a markup language and extracts data necessary for ECHONET LITE communication. The home server 200 controls the home appliance by transmitting the extracted data to the lighting device 402 or the television set 403 that is the control target.

サーバ装置100は、受信した制御指令がエアーコンディショナ401を制御するための指令である場合、エアーコンディショナ401を制御する主体として、予め定められた規則に基づき、ホームサーバ200および通信機器300の何れかを選択する。この場合、サーバ装置100によって選択された機器(ホームサーバ200または通信機器300)は、受信した制御指令に基づき、エアーコンディショナ401を制御する。たとえば、通信機器300が選択された場合、通信機器300は、マークアップ言語を用いた制御指令を解釈し、エアーコンディショナ401を制御する。また、ホームサーバ200が選択された場合、上記と同様に、制御指令から抽出したデータを制御対象であるエアーコンディショナ401に送信することより、家庭用電気器具を制御する。   When the received control command is a command for controlling the air conditioner 401, the server device 100 is used as a main body for controlling the air conditioner 401 based on a predetermined rule as to the home server 200 and the communication device 300. Select one. In this case, the device (home server 200 or communication device 300) selected by the server device 100 controls the air conditioner 401 based on the received control command. For example, when the communication device 300 is selected, the communication device 300 interprets a control command using a markup language and controls the air conditioner 401. When the home server 200 is selected, similarly to the above, the home appliance is controlled by transmitting data extracted from the control command to the air conditioner 401 as the control target.

このように、ホームサーバ200は、各家庭用電気器具401〜403を制御するための制御装置として機能する。また、通信機器300は、エアーコンディショナ401の動作を制御するための制御装置として機能する。つまり、通信システム1では、2つの制御装置(通信機器300およびホームサーバ200)によって、エアーコンディショナ401の制御が可能である。以下では、通信機器300およびホームサーバ200の各々を、「制御装置」とも称する。なお、本実施の形態では、説明を簡略化するために、家庭用電気器具の制御装置として機能する装置が2つである場合を例に挙げて説明したが、3つ以上であってもよい。   In this way, the home server 200 functions as a control device for controlling the home appliances 401 to 403. In addition, the communication device 300 functions as a control device for controlling the operation of the air conditioner 401. That is, in the communication system 1, the air conditioner 401 can be controlled by two control devices (the communication device 300 and the home server 200). Hereinafter, each of the communication device 300 and the home server 200 is also referred to as a “control device”. In the present embodiment, in order to simplify the explanation, the case where there are two devices functioning as control devices for household appliances has been described as an example, but three or more devices may be used. .

また、以下では、主として、スマートフォン500からエアーコンディショナ401を制御する局面について説明する。特に、サーバ装置100が、エアーコンディショナ401を制御する主体として、ホームサーバ200および通信機器300のいずれを選択するかについて説明する。つまり、複数の制御装置のうちから1つの制御装置を選択するに際しての規則(予め定められた規則)の一例について、説明する。なお、後述する実施の形態2〜5についても、実施の形態1と同じ観点から説明を行なう。   Moreover, below, the aspect which mainly controls the air conditioner 401 from the smart phone 500 is demonstrated. In particular, it will be described which of the home server 200 and the communication device 300 is selected by the server device 100 as a subject that controls the air conditioner 401. That is, an example of a rule (predetermined rule) for selecting one control device from a plurality of control devices will be described. Note that Embodiments 2 to 5 to be described later will be described from the same viewpoint as Embodiment 1.

<1B.通信システム1における処理の概要>
図2は、通信システム1における処理の流れを説明するためのシーケンスチャートである。より詳しくは、図2は、通信システム1におけるある局面の通信状態を表した図である。
<1B. Overview of Processing in Communication System 1>
FIG. 2 is a sequence chart for explaining the flow of processing in the communication system 1. More specifically, FIG. 2 is a diagram showing a communication state of a certain aspect in the communication system 1.

図2を参照して、シーケンスSQ102において、ホームサーバ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ104において、通信機器300は、サーバ装置100に対してポーリングを行なう。シーケンスSQ106において、ユーザ操作に基づき、スマートフォン500は制御指令をサーバ装置100に送信する。シーケンスSQ108において、ホームサーバ200は、サーバ装置100に対してポーリングを行なう。   Referring to FIG. 2, in sequence SQ102, home server 200 polls server apparatus 100. In sequence SQ104, communication device 300 polls server apparatus 100. In sequence SQ <b> 106, smartphone 500 transmits a control command to server device 100 based on a user operation. In sequence SQ108, home server 200 polls server apparatus 100.

ところで、サーバ装置100は、ホームサーバ200および通信機器300のうち、サーバ装置100がスマートフォン500から制御指令を受信した後にサーバ装置100が最初に受信したポーリングの送信元である機器(制御装置)を選択する。サーバ装置100は、選択した機器に対して、制御指令を送信する。   By the way, the server device 100 is a device (control device) that is a transmission source of the polling that the server device 100 first receives after the server device 100 receives the control command from the smartphone 500 among the home server 200 and the communication device 300. select. The server apparatus 100 transmits a control command to the selected device.

図2の場合においては、サーバ装置100は、シーケンスSQ106の後のシーケンスSQ108において、ホームサーバ200からポーリング処理により送信される信号(以下、「ポーリング信号」)を受信している。つまり、サーバ装置100は、通信機器300からのポーリング信号よりも先にホームサーバ200からのポーリング信号を受信している。   In the case of FIG. 2, server apparatus 100 receives a signal (hereinafter, “polling signal”) transmitted from home server 200 by polling processing in sequence SQ108 after sequence SQ106. That is, the server device 100 receives the polling signal from the home server 200 before the polling signal from the communication device 300.

このため、シーケンスSQ110において、サーバ装置100は、ホームサーバ200に制御指令を送信する。シーケンスSQ112において、ホームサーバ200は、受信した制御指令をエアーコンディショナ401に送信する。この場合、エアーコンディショナ401は、受信した制御指令に基づき動作する。   Therefore, in sequence SQ110, server device 100 transmits a control command to home server 200. In sequence SQ112, home server 200 transmits the received control command to air conditioner 401. In this case, the air conditioner 401 operates based on the received control command.

シーケンスSQ114において、ホームサーバ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ116において、通信機器300は、サーバ装置100に対してポーリングを行なう。以下、ホームサーバ200および通信機器300の各々は、各々に規定された時間間隔で、サーバ装置100に対してポーリングを行なう。なお、ホームサーバ200の制御対象の数(図1では3台)は、通信機器300の制御対象の数(図1では1台)よりも多いため、ホームサーバ200のポーリングの送信の時間間隔(以下、「ポーリング間隔」)は、通信機器300のポーリング間隔よりも短く設定されている。   In sequence SQ114, home server 200 polls server apparatus 100. In sequence SQ116, communication device 300 polls server apparatus 100. Hereinafter, each of the home server 200 and the communication device 300 performs polling with respect to the server device 100 at a time interval defined for each. Since the number of control targets of the home server 200 (three in FIG. 1) is larger than the number of control targets of the communication device 300 (one in FIG. 1), the polling transmission time interval of the home server 200 ( Hereinafter, “polling interval”) is set shorter than the polling interval of the communication device 300.

<1C.ハードウェア構成>
(1)サーバ装置100
図3は、サーバ装置100のハードウェア構成の典型例を表した図である。図3を参照して、サーバ装置100は、主たる構成要素として、プログラムを実行するCPU151と、データを不揮発的に格納するROM152と、CPU151によるプログラムの実行により生成されたデータ、又は入力装置(図示せず)を介して入力されたデータを揮発的に格納するRAM153と、データを不揮発的に格納するHDD154と、LED155と、スイッチ156と、通信IF(Interface)157と、電源回路158と、モニタ159と、操作キー160とを含む。各構成要素は、相互にデータバスによって接続されている。
<1C. Hardware configuration>
(1) Server device 100
FIG. 3 is a diagram illustrating a typical example of the hardware configuration of the server apparatus 100. Referring to FIG. 3, server apparatus 100 includes, as main components, CPU 151 that executes a program, ROM 152 that stores data in a nonvolatile manner, data generated by execution of the program by CPU 151, or an input device (see FIG. 3). RAM 153 for volatile storage of data input via the HDD, 154 for storing data in a nonvolatile manner, LED 155, switch 156, communication IF (Interface) 157, power supply circuit 158, monitor 159 and operation keys 160. Each component is connected to each other by a data bus.

電源回路158は、コンセントを介して受信した商用電源の電圧を降圧し、サーバ装置100の各部に電源供給を行なう回路である。スイッチ156は、電源回路158に給電を行なうか否かを切替えるための主電源用のスイッチ、およびその他の各種の押しボタンスイッチである。モニタ159は、各種のデータを表示するためのデバイスである。   The power supply circuit 158 is a circuit that steps down the voltage of the commercial power received via the outlet and supplies power to each part of the server device 100. The switch 156 is a main power switch for switching whether or not to supply power to the power circuit 158 and other various push button switches. The monitor 159 is a device for displaying various data.

通信IF157は、ホームサーバ200および通信機器300に対するデータの送信処理およびホームサーバ200および通信機器300から送信されたデータの受信処理、並びに、スマートフォン500に対するデータの送信処理およびスマートフォン500から送信されたデータの受信処理を行なう。   The communication IF 157 includes data transmission processing for the home server 200 and the communication device 300, data reception processing transmitted from the home server 200 and the communication device 300, data transmission processing for the smartphone 500, and data transmitted from the smartphone 500. Receive processing.

LED155は、サーバ装置100の動作状態を表す各種の表示ランプである。たとえば、LED155は、サーバ装置100の主電源のオンまたはオフ状態、およびHDD154への読み出しまたは書き込み状態等を表す。操作キー160は、サーバ装置100のユーザがサーバ装置100へデータを入力するための用いるキー(キーボード)である。   The LED 155 is various display lamps that indicate the operating state of the server apparatus 100. For example, the LED 155 represents an on / off state of the main power supply of the server apparatus 100, a read / write state to the HDD 154, and the like. The operation key 160 is a key (keyboard) used for the user of the server apparatus 100 to input data to the server apparatus 100.

サーバ装置100における処理は、各ハードウェアおよびCPU151により実行されるソフトウェアによって実現される。このようなソフトウェアは、HDD154に予め記憶されている場合がある。また、ソフトウェアは、その他の記憶媒体に格納されて、プログラムプロダクトとして流通している場合もある。あるいは、ソフトウェアは、いわゆるインターネットに接続されている情報提供事業者によってダウンロード可能なプログラムプロダクトとして提供される場合もある。このようなソフトウェアは、読取装置によりその記憶媒体から読み取られて、あるいは、通信IF157等を介してダウンロードされた後、HDD154に一旦格納される。そのソフトウェアは、CPU151によってHDD154から読み出され、RAM153に実行可能なプログラムの形式で格納される。CPU151は、そのプログラムを実行する。   The processing in the server device 100 is realized by each hardware and software executed by the CPU 151. Such software may be stored in the HDD 154 in advance. The software may be stored in other storage media and distributed as a program product. Alternatively, the software may be provided as a program product that can be downloaded by an information provider connected to the so-called Internet. Such software is read from the storage medium by the reading device or downloaded via the communication IF 157 or the like and then temporarily stored in the HDD 154. The software is read from the HDD 154 by the CPU 151 and stored in the RAM 153 in the form of an executable program. CPU 151 executes the program.

同図に示されるサーバ装置100を構成する各構成要素は、一般的なものである。したがって、本発明の本質的な部分は、RAM153、HDD154、記憶媒体に格納されたソフトウェア、あるいはネットワークを介してダウンロード可能なソフトウェアであるともいえる。なお、サーバ装置100の各ハードウェアの動作は周知であるので、詳細な説明は繰り返さない。   Each component which comprises the server apparatus 100 shown by the figure is a general thing. Therefore, it can be said that the essential part of the present invention is the RAM 153, the HDD 154, software stored in a storage medium, or software downloadable via a network. Since the operation of each hardware of server device 100 is well known, detailed description will not be repeated.

なお、記録媒体としては、DVD−RAMに限られず、DVD-ROM、CD−ROM、FD、ハードディスク、磁気テープ、カセットテープ、光ディスク、EEPROM、フラッシュROMなどの半導体メモリ等の固定的にプログラムを担持する媒体でもよい。また、記録媒体は、当該プログラム等をコンピュータが読取可能な一時的でない媒体である。また、ここでいうプログラムとは、CPUにより直接実行可能なプログラムだけでなく、ソースプログラム形式のプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The recording medium is not limited to a DVD-RAM, and a fixed program such as a semiconductor memory such as a DVD-ROM, a CD-ROM, an FD, a hard disk, a magnetic tape, a cassette tape, an optical disk, an EEPROM, and a flash ROM is supported. It may be a medium to be used. The recording medium is a non-temporary medium that can be read by the computer. The program here includes not only a program directly executable by the CPU but also a program in a source program format, a compressed program, an encrypted program, and the like.

(2)ホームサーバ200
図4は、ホームサーバ200のハードウェア構成の典型例を表した図である。図4を参照して、ホームサーバ200は、主たる構成要素として、プログラムを実行するCPU251と、データを不揮発的に格納するROM252と、CPU251によるプログラムの実行により生成されたデータ、又は入力装置(図示せず)を介して入力されたデータを揮発的に格納するRAM253と、データを不揮発的に格納するHDD254と、LED255と、スイッチ256と、通信IF(Interface)257と、電源回路258と、モニタ259と、操作キー260とを含む。各構成要素は、相互にデータバスによって接続されている。
(2) Home server 200
FIG. 4 is a diagram illustrating a typical example of the hardware configuration of the home server 200. Referring to FIG. 4, home server 200 includes, as main components, CPU 251 that executes a program, ROM 252 that stores data in a nonvolatile manner, data generated by execution of the program by CPU 251, or an input device (see FIG. 4). (Not shown) RAM 253 for storing data volatilely, HDD 254 for storing data in a nonvolatile manner, LED 255, switch 256, communication IF (Interface) 257, power supply circuit 258, monitor 259 and operation keys 260. Each component is connected to each other by a data bus.

電源回路258は、コンセントを介して受信した商用電源の電圧を降圧し、サーバ装置100の各部に電源供給を行なう回路である。スイッチ256は、電源回路258に給電を行なうか否かを切替えるための主電源用のスイッチ、およびその他の各種の押しボタンスイッチである。モニタ259は、各種のデータを表示するためのデバイスである。   The power supply circuit 258 is a circuit that steps down the voltage of the commercial power received via the outlet and supplies power to each part of the server device 100. The switch 256 is a main power switch for switching whether or not to supply power to the power circuit 258 and other various push button switches. The monitor 259 is a device for displaying various data.

通信IF257は、サーバ装置100および各家庭用電気器具401〜403に対するデータの送信処理、およびサーバ装置100および各家庭用電気器具401〜403から送信されたデータの受信処理を行なう。   Communication IF 257 performs processing for transmitting data to server device 100 and each of household appliances 401 to 403, and processing for receiving data transmitted from server device 100 and each of household appliances 401 to 403.

LED255は、サーバ装置100の動作状態を表す各種の表示ランプである。たとえば、LED255は、サーバ装置100の主電源のオンまたはオフ状態、およびHDD254への読み出しまたは書き込み状態等を表す。操作キー260は、サーバ装置100のユーザがサーバ装置100へデータを入力するための用いるキー(キーボード)である。   The LED 255 is various display lamps that indicate the operating state of the server apparatus 100. For example, the LED 255 represents an on or off state of the main power supply of the server apparatus 100, a read or write state to the HDD 254, and the like. The operation key 260 is a key (keyboard) used for the user of the server apparatus 100 to input data to the server apparatus 100.

サーバ装置100における処理は、各ハードウェアおよびCPU251により実行されるソフトウェアによって実現される。このようなソフトウェアは、HDD254に予め記憶されている場合がある。また、ソフトウェアは、その他の記憶媒体に格納されて、プログラムプロダクトとして流通している場合もある。あるいは、ソフトウェアは、いわゆるインターネットに接続されている情報提供事業者によってダウンロード可能なプログラムプロダクトとして提供される場合もある。このようなソフトウェアは、読取装置によりその記憶媒体から読み取られて、あるいは、通信IF257等を介してダウンロードされた後、HDD254に一旦格納される。そのソフトウェアは、CPU251によってHDD254から読み出され、RAM253に実行可能なプログラムの形式で格納される。CPU251は、そのプログラムを実行する。   The processing in the server device 100 is realized by each hardware and software executed by the CPU 251. Such software may be stored in the HDD 254 in advance. The software may be stored in other storage media and distributed as a program product. Alternatively, the software may be provided as a program product that can be downloaded by an information provider connected to the so-called Internet. Such software is read from the storage medium by a reading device or downloaded via the communication IF 257 or the like and then temporarily stored in the HDD 254. The software is read from the HDD 254 by the CPU 251 and stored in the RAM 253 in the form of an executable program. The CPU 251 executes the program.

同図に示されるサーバ装置100を構成する各構成要素は、一般的なものである。したがって、本発明の本質的な部分は、RAM253、HDD254、記憶媒体に格納されたソフトウェア、あるいはネットワークを介してダウンロード可能なソフトウェアであるともいえる。なお、サーバ装置100の各ハードウェアの動作は周知であるので、詳細な説明は繰り返さない。   Each component which comprises the server apparatus 100 shown by the figure is a general thing. Therefore, it can be said that the essential part of the present invention is RAM 253, HDD 254, software stored in a storage medium, or software that can be downloaded via a network. Since the operation of each hardware of server device 100 is well known, detailed description will not be repeated.

なお、記録媒体としては、DVD−RAMに限られず、DVD-ROM、CD−ROM、FD、ハードディスク、磁気テープ、カセットテープ、光ディスク、EEPROM、フラッシュROMなどの半導体メモリ等の固定的にプログラムを担持する媒体でもよい。また、記録媒体は、当該プログラム等をコンピュータが読取可能な一時的でない媒体である。また、ここでいうプログラムとは、CPUにより直接実行可能なプログラムだけでなく、ソースプログラム形式のプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The recording medium is not limited to a DVD-RAM, and a fixed program such as a semiconductor memory such as a DVD-ROM, a CD-ROM, an FD, a hard disk, a magnetic tape, a cassette tape, an optical disk, an EEPROM, and a flash ROM is supported. It may be a medium to be used. The recording medium is a non-temporary medium that can be read by the computer. The program here includes not only a program directly executable by the CPU but also a program in a source program format, a compressed program, an encrypted program, and the like.

(3)通信機器300
図5は、通信機器300のハードウェア構成の典型例を表した図である。図5を参照して、通信機器300は、主たる構成要素として、プログラムを実行するCPU351と、フラッシュROM等のデータを不揮発的に格納するROM352と、CPU351によるプログラムの実行により生成されたデータ、又は入力装置(図示せず)を介して入力されたデータを揮発的に格納するRAM353と、スイッチ356と、通信IF(Interface)357と、電源回路358とを含む。各構成要素は、相互にデータバスによって接続されている。
(3) Communication device 300
FIG. 5 is a diagram illustrating a typical example of the hardware configuration of the communication device 300. Referring to FIG. 5, communication device 300 includes, as main components, CPU 351 that executes a program, ROM 352 that stores data such as a flash ROM in a nonvolatile manner, data generated by execution of a program by CPU 351, or A RAM 353 that stores data input via an input device (not shown) in a volatile manner, a switch 356, a communication IF (Interface) 357, and a power supply circuit 358 are included. Each component is connected to each other by a data bus.

電源回路358は、コンセントを介して受信した商用電源の電圧を降圧し、通信機器300の各部に電源供給を行なう回路である。スイッチ356は、電源回路358に給電を行なうか否かを切替えるための主電源用のスイッチ、およびその他の各種の押しボタンスイッチである。通信IF357は、サーバ装置100およびエアーコンディショナ401との間で通信を行なうために、データの送受信処理を行なう。   The power supply circuit 358 is a circuit that steps down the voltage of the commercial power received via the outlet and supplies power to each part of the communication device 300. The switch 356 is a main power switch for switching whether or not to supply power to the power circuit 358 and other various push button switches. The communication IF 357 performs data transmission / reception processing in order to perform communication between the server apparatus 100 and the air conditioner 401.

通信機器300における処理は、各ハードウェアおよびCPU351により実行されるソフトウェアによって実現される。このようなソフトウェアは、ROM352に予め記憶されている場合がある。また、ソフトウェアは、その他の記憶媒体に格納されて、プログラムプロダクトとして流通している場合もある。あるいは、ソフトウェアは、いわゆるインターネットに接続されている情報提供事業者によってダウンロード可能なプログラムプロダクトとして提供される場合もある。このようなソフトウェアは、読取装置によりその記憶媒体から読み取られて、あるいは、通信IF357等を介してダウンロードされた後、ROM352に一旦格納される。そのソフトウェアは、CPU351によってROM352から読み出され、RAM353に実行可能なプログラムの形式で格納される。CPU351は、そのプログラムを実行する。   The processing in the communication device 300 is realized by each hardware and software executed by the CPU 351. Such software may be stored in the ROM 352 in advance. The software may be stored in other storage media and distributed as a program product. Alternatively, the software may be provided as a program product that can be downloaded by an information provider connected to the so-called Internet. Such software is read from the storage medium by the reading device or downloaded via the communication IF 357 or the like and then temporarily stored in the ROM 352. The software is read from the ROM 352 by the CPU 351 and stored in the RAM 353 in the form of an executable program. The CPU 351 executes the program.

同図に示される通信機器300を構成する各構成要素は、一般的なものである。したがって、本発明の本質的な部分は、RAM353、ROM352、記憶媒体に格納されたソフトウェア、あるいはネットワークを介してダウンロード可能なソフトウェアであるともいえる。なお、通信機器300の各ハードウェアの動作は周知であるので、詳細な説明は繰り返さない。   Each component which comprises the communication apparatus 300 shown by the figure is a general thing. Therefore, it can be said that the essential part of the present invention is RAM 353, ROM 352, software stored in a storage medium, or software that can be downloaded via a network. Since the operation of each hardware of communication device 300 is well known, detailed description will not be repeated.

なお、記録媒体としては、DVD−RAMに限られず、DVD-ROM、CD−ROM、FD、ハードディスク、磁気テープ、カセットテープ、光ディスク、EEPROM、フラッシュROMなどの半導体メモリ等の固定的にプログラムを担持する媒体でもよい。また、記録媒体は、当該プログラム等をコンピュータが読取可能な一時的でない媒体である。また、ここでいうプログラムとは、CPUにより直接実行可能なプログラムだけでなく、ソースプログラム形式のプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The recording medium is not limited to a DVD-RAM, and a fixed program such as a semiconductor memory such as a DVD-ROM, a CD-ROM, an FD, a hard disk, a magnetic tape, a cassette tape, an optical disk, an EEPROM, and a flash ROM is supported. It may be a medium to be used. The recording medium is a non-temporary medium that can be read by the computer. The program here includes not only a program directly executable by the CPU but also a program in a source program format, a compressed program, an encrypted program, and the like.

<1D.機能的構成>
図6は、サーバ装置100とホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。図6を参照して、通信システム1は、上述したように、サーバ装置100と、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。
<1D. Functional configuration>
FIG. 6 is a functional block diagram for explaining functional configurations of the server device 100, the home server 200, and the communication device 300. Referring to FIG. 6, the communication system 1 includes the server device 100, the home server 200, the communication device 300, a plurality of household appliances 401 to 403, and the smartphone 500 as described above.

サーバ装置100は、受信部111と、記憶部112と、選択部113と、送信部114とを含む。ホームサーバ200は、問合部211と、受信部212と、家電制御部213と、制御結果送信部214とを含む。通信機器300は、問合部311と、受信部312と、家電制御部313と、制御結果送信部314とを含む。以下、各装置100,200,300に含まれる各部について説明する。   The server device 100 includes a reception unit 111, a storage unit 112, a selection unit 113, and a transmission unit 114. Home server 200 includes an inquiry unit 211, a reception unit 212, a home appliance control unit 213, and a control result transmission unit 214. Communication device 300 includes an inquiry unit 311, a reception unit 312, a home appliance control unit 313, and a control result transmission unit 314. Hereinafter, each unit included in each device 100, 200, 300 will be described.

(1)サーバ装置100
受信部111は、スマートフォン500から制御指令を受信する。また、受信部111は、ホームサーバ200および通信機器300から送信されるポーリング信号を受信する。さらに、受信部111は、ホームサーバ200および通信機器300から家庭用電気器具の制御結果を表した通知を受信する。制御結果とは、制御が行えたか否かを示す情報である。
(1) Server device 100
The receiving unit 111 receives a control command from the smartphone 500. In addition, the reception unit 111 receives a polling signal transmitted from the home server 200 and the communication device 300. Furthermore, the receiving unit 111 receives a notification representing the control result of the home appliance from the home server 200 and the communication device 300. The control result is information indicating whether control has been performed.

記憶部112は、サーバ装置100を動作させるためのオペレーティングシステム、サーバ装置100で実行される各種のアプリケーションプログラム、サーバ装置100で用いられる各種のデータを記憶している。一例として、記憶部112は、ホームサーバ200の制御対象(家庭用電気器具)を表す識別情報(たとえばMACアドレス)と、通信機器300の制御対象を表す識別情報とを記憶している。   The storage unit 112 stores an operating system for operating the server device 100, various application programs executed by the server device 100, and various data used by the server device 100. As an example, the storage unit 112 stores identification information (for example, a MAC address) indicating a control target (home appliance) of the home server 200 and identification information indicating a control target of the communication device 300.

選択部113は、予め定められた規則に基づいて、複数の制御装置(つまり、ホームサーバ200および通信機器300)のうちから1つの制御装置を選択する。具体的には、選択部113は、サーバ装置100がスマートフォン500から制御指令を受信した後にサーバ装置100が最初に受信したポーリング信号の送信元である機器を選択する。   The selection unit 113 selects one control device from among a plurality of control devices (that is, the home server 200 and the communication device 300) based on a predetermined rule. Specifically, the selection unit 113 selects a device that is a transmission source of a polling signal received first by the server apparatus 100 after the server apparatus 100 receives a control command from the smartphone 500.

送信部114は、選択された制御装置(ホームサーバ200および通信機器300のいずれか)に対して、エアーコンディショナ401を制御するための制御指令を送信する。   The transmission unit 114 transmits a control command for controlling the air conditioner 401 to the selected control device (either the home server 200 or the communication device 300).

(2)ホームサーバ200
問合部211は、家庭用電気器具401〜403に対して送信すべきデータとして制御指令が存在するか否かを、予め定められた時間間隔でサーバ装置100に対して問い合わせる。つまり、問合部211は、サーバ装置100に対してポーリングを行なう。
(2) Home server 200
The inquiry unit 211 inquires of the server apparatus 100 at a predetermined time interval whether or not a control command exists as data to be transmitted to the home appliances 401 to 403. That is, the inquiry unit 211 polls the server device 100.

受信部212は、サーバ装置100の選択部113によってホームサーバ200が選択された場合、サーバ装置100から制御指令を受信する。   The reception unit 212 receives a control command from the server device 100 when the home server 200 is selected by the selection unit 113 of the server device 100.

家電制御部213は、受信部212が受信した制御指令に基づき、当該制御指令で指定された家庭用電気器具を制御する。   Based on the control command received by the reception unit 212, the home appliance control unit 213 controls the household appliance specified by the control command.

制御結果送信部214は、家電制御部213による家庭用電気器具の制御が行なわれた場合に、制御に成功した旨の通知をサーバ装置100に送信する。また、制御結果送信部214は、家電制御部213による家庭用電気器具の制御が行えなかった場合には、制御に失敗した旨の通知をサーバ装置100に送信する。なお、制御が行なえなかった場合の一例としては、通信障害が挙げられる。   When the home appliance control unit 213 controls the household appliance, the control result transmission unit 214 transmits a notification that the control has been successful to the server device 100. Moreover, the control result transmission part 214 transmits the notification to the effect of control failure to the server apparatus 100, when control of the household appliances by the household appliance control part 213 cannot be performed. An example of the case where the control could not be performed is a communication failure.

スマートフォン500からの制御指令が、エアーコンディショナ401に対する指令である場合、サーバ装置100の選択部113によってホームサーバ200が選択されると、家電制御部213がエアーコンディショナを制御することになる。この場合には、通信機器300によるエアーコンディショナ401の制御は行われない。   When the control command from the smartphone 500 is a command for the air conditioner 401, when the home server 200 is selected by the selection unit 113 of the server device 100, the home appliance control unit 213 controls the air conditioner. In this case, the control of the air conditioner 401 by the communication device 300 is not performed.

(3)通信機器300
問合部311は、エアーコンディショナ401に対して送信すべきデータとして制御指令が存在するか否かを、予め定められた時間間隔でサーバ装置100に対して問い合わせる。つまり、問合部311は、サーバ装置100に対してポーリングを行なう。
(3) Communication device 300
The inquiry unit 311 inquires of the server apparatus 100 at a predetermined time interval whether or not a control command exists as data to be transmitted to the air conditioner 401. That is, the inquiry unit 311 polls the server device 100.

受信部312は、サーバ装置100の選択部113によって通信機器300が選択された場合、サーバ装置100から制御指令を受信する。   The receiving unit 312 receives a control command from the server device 100 when the communication device 300 is selected by the selection unit 113 of the server device 100.

家電制御部313は、受信部312が受信した制御指令に基づき、エアーコンディショナ401を制御する。   The home appliance control unit 313 controls the air conditioner 401 based on the control command received by the receiving unit 312.

制御結果送信部314は、家電制御部313によるエアーコンディショナ401の制御が行なわれた場合に、制御に成功した旨の通知をサーバ装置100に送信する。また、制御結果送信部314は、家電制御部313によるエアーコンディショナ401の制御が行えなかった場合には、制御に失敗した旨の通知をサーバ装置100に送信する。なお、制御が行なえなかった場合の一例としては、通信障害が挙げられる。   When the air conditioner 401 is controlled by the home appliance control unit 313, the control result transmission unit 314 transmits a notification that the control is successful to the server device 100. In addition, when the home conditioner control unit 313 cannot control the air conditioner 401, the control result transmission unit 314 transmits a notification that the control has failed to the server device 100. An example of the case where the control could not be performed is a communication failure.

つまり、スマートフォン500からの制御指令が、エアーコンディショナ401に対する指令である場合、サーバ装置100の選択部113によって通信機器300が選択されると、家電制御部313がエアーコンディショナを制御することになる。この場合には、ホームサーバ200によるエアーコンディショナ401の制御は行われない。   That is, when the control command from the smartphone 500 is a command for the air conditioner 401, when the communication device 300 is selected by the selection unit 113 of the server device 100, the home appliance control unit 313 controls the air conditioner. Become. In this case, control of the air conditioner 401 by the home server 200 is not performed.

<1E.サーバ装置100の処理フロー>
図7は、サーバ装置100における処理の流れを表したフローチャートである。図7を参照して、ステップS102において、サーバ装置100は、ホームサーバ200から送信されるポーリング信号の受信を開始する。ステップS104において、サーバ装置100は、エアーコンディショナ401に接続された通信機器300から送信されるポーリング信号の受信を開始する。
<1E. Processing flow of server apparatus 100>
FIG. 7 is a flowchart showing the flow of processing in the server apparatus 100. Referring to FIG. 7, in step S <b> 102, server apparatus 100 starts receiving a polling signal transmitted from home server 200. In step S <b> 104, the server apparatus 100 starts receiving a polling signal transmitted from the communication device 300 connected to the air conditioner 401.

ステップS106において、サーバ装置100は、スマートフォン500から制御指令を受信したか否かを判断する。サーバ装置100は、制御指令を受信したと判断した場合(ステップS106においてYES)、ステップS108において、ホームサーバ200および通信機器300のうちから、サーバ装置100が制御指令を受信した後に最初に受信したポーリング信号の送信元の機器を選択する。サーバ装置100は、制御指令を受信していないと判断した場合(ステップS106においてNO)、処理をステップS106に進める。ステップS110において、サーバ装置100は、選択された制御装置(ホームサーバ200または通信機器300)に対して、制御指令を送信する。たとえば、図2の場合においては、サーバ装置100は、ホームサーバ200および通信機器300のうちからホームサーバ200を選択し、ホームサーバ200に制御指令を送信する。   In step S <b> 106, the server device 100 determines whether a control command has been received from the smartphone 500. When server device 100 determines that a control command has been received (YES in step S106), server device 100 first receives the control command from home server 200 and communication device 300 in step S108 after receiving the control command. Select the polling signal source device. If server device 100 determines that a control command has not been received (NO in step S106), the process proceeds to step S106. In step S110, the server device 100 transmits a control command to the selected control device (home server 200 or communication device 300). For example, in the case of FIG. 2, the server device 100 selects the home server 200 from the home server 200 and the communication device 300 and transmits a control command to the home server 200.

<1F.通信システム1の利点>
(1)以上のように、通信システム1は、サーバ装置100と、複数の制御装置(ホームサーバ200および通信機器300)と、被制御装置(エアーコンディショナ401)とを備える。ホームサーバ200および通信機器300の各々は、サーバ装置100およびエアーコンディショナ401と通信可能に接続されている。サーバ装置100は、予め定められた規則に基づいて、ホームサーバ200および通信機器300のうちから1つの機器(制御装置)を選択する選択部113を備える。サーバ装置100は、選択された制御装置に対して、エアーコンディショナ401を制御するための制御指令を送信する送信部114を備える。選択された制御装置は、当該制御指令に基づきエアーコンディショナ401を制御する。それゆえ、通信システム1によれば、各々が特定の電気器具(エアーコンディショナ401)を制御可能な複数の制御装置(ホームサーバ200および通信機器300)のいずれかを用いて当該特定の電気器具を制御可能となる。このことは、後述する各実施の形態2〜7の通信システムについても同様である。
<1F. Advantages of communication system 1>
(1) As described above, the communication system 1 includes the server device 100, a plurality of control devices (home server 200 and communication device 300), and a controlled device (air conditioner 401). Each of home server 200 and communication device 300 is communicably connected to server device 100 and air conditioner 401. The server device 100 includes a selection unit 113 that selects one device (control device) from the home server 200 and the communication device 300 based on a predetermined rule. The server device 100 includes a transmission unit 114 that transmits a control command for controlling the air conditioner 401 to the selected control device. The selected control device controls the air conditioner 401 based on the control command. Therefore, according to the communication system 1, the specific electrical appliance is used by using one of a plurality of control devices (home server 200 and communication device 300) each capable of controlling the specific electrical appliance (air conditioner 401). Can be controlled. The same applies to the communication systems of Embodiments 2 to 7 described later.

(2)また、ホームサーバ200および通信機器300の各々は、エアーコンディショナ401に対して送信すべきデータとして制御指令が存在するか否かを、予め定められた時間間隔でサーバ装置100に対してポーリングを行なう問合部211,311を備える。さらに、ホームサーバ200および通信機器300の各々は、ポーリングに基づき制御指令を受信する受信部212,312を備える。それゆえ、通信システム1を、ポーリングを行なうことによって制御命令を取得する制御装置を備える構成に適用させることができる。このことは、後述する各実施の形態2〜4,6,および7の通信システムについても同様である。   (2) Each of the home server 200 and the communication device 300 determines whether or not a control command exists as data to be transmitted to the air conditioner 401 with respect to the server apparatus 100 at a predetermined time interval. Inquiries 211 and 311 for polling are provided. Furthermore, each of home server 200 and communication device 300 includes receiving units 212 and 312 that receive control commands based on polling. Therefore, the communication system 1 can be applied to a configuration including a control device that acquires a control command by polling. The same applies to the communication systems of Embodiments 2, 4, 6, and 7 described later.

(3)また、上記制御指令は、スマートフォン500からサーバ装置100を介して選択された制御装置(ホームサーバ200および通信機器300)に送信されるものである。選択部113は、サーバ装置100がスマートフォン500から上記制御指令を受信した後にサーバ装置100が最初に受信したポーリング信号の送信元である制御装置を選択する。それゆえ、サーバ装置100は、最初に受信したポーリング信号の送信元でない制御装置に対して制御指令を送信する構成に比べて、被制御装置であるエアーコンディショナ401に対して、制御指令を早く送信することができる。   (3) Moreover, the said control command is transmitted to the control apparatus (home server 200 and communication apparatus 300) selected via the server apparatus 100 from the smart phone 500. FIG. The selection unit 113 selects a control device that is a transmission source of a polling signal received first by the server device 100 after the server device 100 receives the control command from the smartphone 500. Therefore, the server apparatus 100 sends the control command to the air conditioner 401 that is the controlled apparatus earlier than the configuration in which the control command is transmitted to the control apparatus that is not the transmission source of the polling signal received first. Can be sent.

[実施の形態2]
本実施の形態では、実施の形態1で説明した手法によって選択された制御装置がエアーコンディショナ401の制御を行なえなかった場合に、選択されなかった制御装置がエアーコンディショナ401を制御する構成について説明する。
[Embodiment 2]
In this embodiment, when the control device selected by the method described in the first embodiment cannot control the air conditioner 401, the control device that is not selected controls the air conditioner 401. explain.

なお、以下では、説明の便宜上、実施の形態1の通信システム1と区別すために、本実施の形態に係る通信システムを「通信システム1A」と称する。また、実施の形態1のサーバ装置100と区別すために、本実施の形態に係るサーバ装置を「サーバ装置100A」と称する。通信システム1Aは、サーバ装置100Aと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。各機器同士の接続態様は、実施の形態1における図1に示した態様と同じであるため、ここでは、接続態様の説明を繰り返さない。また、サーバ装置100Aは、サーバ装置100と同様のハードウェア構成を有するため、サーバ装置100Aのハードウェア構成については説明を繰り返さない。   In the following, for convenience of explanation, the communication system according to the present embodiment is referred to as “communication system 1A” in order to distinguish it from the communication system 1 of the first embodiment. Further, in order to distinguish from the server apparatus 100 of the first embodiment, the server apparatus according to the present embodiment is referred to as “server apparatus 100A”. The communication system 1A includes a server device 100A, a home server 200, a communication device 300, a plurality of home appliances 401 to 403, and a smartphone 500. Since the connection mode between the devices is the same as the mode shown in FIG. 1 in the first embodiment, the description of the connection mode will not be repeated here. Since server device 100A has the same hardware configuration as server device 100, the description of the hardware configuration of server device 100A will not be repeated.

<2A.通信システム1Aにおける処理の概要>
図8は、通信システム1Aにおける処理の流れを説明するためのシーケンスチャートである。より詳しくは、図8は、通信システム1Aにおけるある局面の通信状態を表した図である。
<2A. Overview of Processing in Communication System 1A>
FIG. 8 is a sequence chart for explaining the flow of processing in the communication system 1A. More specifically, FIG. 8 is a diagram showing a communication state of a certain aspect in the communication system 1A.

図8を参照して、シーケンスSQ202において、ホームサーバ200は、サーバ装置100Aに対してポーリングを行なう。シーケンスSQ204において、通信機器300は、サーバ装置100Aに対してポーリングを行なう。シーケンスSQ206において、スマートフォン500は、制御指令をサーバ装置100Aに送信する。   Referring to FIG. 8, in sequence SQ202, home server 200 polls server apparatus 100A. In sequence SQ204, communication device 300 polls server apparatus 100A. In sequence SQ206, smartphone 500 transmits a control command to server device 100A.

本実施の形態においても、実施の形態1と同様に、サーバ装置100Aは、ホームサーバ200および通信機器300のうち、サーバ装置100Aがスマートフォン500から制御指令を受信した後にサーバ装置100Aが最初に受信したポーリングの送信元である機器(制御装置)を選択する。サーバ装置100Aは、選択した機器に対して、制御指令を送信する。   Also in the present embodiment, as in the first embodiment, server device 100A receives first control command from smartphone 500 among server device 100A and server device 100A among home server 200 and communication device 300. The device (control device) that is the transmission source of the polling is selected. Server device 100A transmits a control command to the selected device.

図8の場合においては、サーバ装置100Aは、シーケンスSQ206の後のシーケンスSQ208において、ホームサーバ200からポーリングによる信号(ポーリング信号)を受信している。つまり、サーバ装置100Aは、通信機器300からのポーリング信号よりも先にホームサーバ200からのポーリング信号を受信している。   In the case of FIG. 8, server apparatus 100A receives a polling signal (polling signal) from home server 200 in sequence SQ208 after sequence SQ206. That is, the server device 100A receives the polling signal from the home server 200 before the polling signal from the communication device 300.

このため、シーケンスSQ210において、サーバ装置100Aは、ホームサーバ200に制御指令を送信する。シーケンスSQ212において、ホームサーバ200は、受信した制御指令をエアーコンディショナ401に送信する。一例として、ホームサーバ200が、エアーコンディショナ401の制御に失敗したとする。この場合、シーケンスSQ214において、ホームサーバ200は、制御結果の通知として、制御に失敗したことを示す通知をサーバ装置100Aに送信する。また、サーバ装置100Aは、ホームサーバ200による制御が失敗したことを表す記録(ログ)を記憶する。サーバ装置100Aは、当該ログによって、選択されかつ制御に失敗した制御装置を認識し続けることができる。   Therefore, in sequence SQ210, server device 100A transmits a control command to home server 200. In sequence SQ212, home server 200 transmits the received control command to air conditioner 401. As an example, it is assumed that the home server 200 has failed to control the air conditioner 401. In this case, in sequence SQ214, home server 200 transmits a notification indicating that the control has failed as a notification of the control result to server device 100A. Further, the server device 100A stores a record (log) indicating that the control by the home server 200 has failed. The server apparatus 100A can continue to recognize the control apparatus that has been selected and failed to be controlled based on the log.

サーバ装置100Aは、制御に失敗した旨の通知を受信した場合、後述するように、選択しなかった制御装置である通信機器300からの次回のポーリング信号に応答して、通信機器300に対して同じ制御指令を送信(再送信)する処理を行なう。   When the server device 100A receives a notification that the control has failed, the server device 100A responds to the next polling signal from the communication device 300, which is the control device that has not been selected, with respect to the communication device 300, as will be described later. Processing to transmit (retransmit) the same control command is performed.

シーケンスSQ216において、ホームサーバ200は、サーバ装置100Aに対してポーリングを行なう。シーケンスSQ218において、通信機器300は、サーバ装置100Aに対してポーリングを行なう。シーケンスSQ220において、サーバ装置100Aは、通信機器300に対して制御指令を送信する。シーケンスSQ222において、通信機器300は、受信した制御指令をエアーコンディショナ401に送信することにより、エアーコンディショナ401を制御する。   In sequence SQ216, home server 200 polls server apparatus 100A. In sequence SQ218, communication device 300 polls server apparatus 100A. In sequence SQ220, server device 100A transmits a control command to communication device 300. In sequence SQ222, the communication device 300 controls the air conditioner 401 by transmitting the received control command to the air conditioner 401.

<2B.機能的構成>
図9は、サーバ装置100Aとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。図9を参照して、通信システム1Aは、上述したように、サーバ装置100Aと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。
<2B. Functional configuration>
FIG. 9 is a functional block diagram for explaining functional configurations of the server device 100A, the home server 200, and the communication device 300. Referring to FIG. 9, communication system 1A includes server device 100A, home server 200, communication device 300, a plurality of household appliances 401 to 403, and smartphone 500, as described above.

サーバ装置100Aは、受信部111と、記憶部112と、選択部113Aと、送信部114Aとを含む。ホームサーバ200は、問合部211と、受信部212と、家電制御部213と、制御結果送信部214とを含む。通信機器300は、問合部311と、受信部312と、家電制御部313と、制御結果送信部314とを含む。   Server device 100A includes a reception unit 111, a storage unit 112, a selection unit 113A, and a transmission unit 114A. Home server 200 includes an inquiry unit 211, a reception unit 212, a home appliance control unit 213, and a control result transmission unit 214. Communication device 300 includes an inquiry unit 311, a reception unit 312, a home appliance control unit 313, and a control result transmission unit 314.

つまり、サーバ装置100Aが選択部113Aと送信部114Aを備える点において、選択部113と送信部114とを備える実施の形態1のサーバ装置100(図6)とは異なる。他の構成は、実施の形態1に係る通信システム1と同じである。このため、以下では、実施の形態1の通信システム1と異なる構成について説明を行ない、同じ構成については説明を繰り返さない。   That is, the server device 100A is different from the server device 100 (FIG. 6) of the first embodiment including the selection unit 113 and the transmission unit 114 in that the server device 100A includes the selection unit 113A and the transmission unit 114A. Other configurations are the same as those of the communication system 1 according to the first embodiment. For this reason, below, a different structure from the communication system 1 of Embodiment 1 is demonstrated, and description is not repeated about the same structure.

選択部113Aは、予め定められた規則に基づいて、複数の制御装置(つまり、ホームサーバ200および通信機器300)のうちから1つの制御装置を選択する。具体的には、選択部113Aは、サーバ装置100がスマートフォン500から制御指令を受信した後にサーバ装置100Aが最初に受信したポーリング信号の送信元である機器を選択する。   The selection unit 113A selects one control device from among a plurality of control devices (that is, the home server 200 and the communication device 300) based on a predetermined rule. Specifically, the selection unit 113A selects a device that is a transmission source of a polling signal that the server device 100A first receives after the server device 100 receives a control command from the smartphone 500.

送信部114Aは、選択された制御装置(ホームサーバ200および通信機器300のいずれか)に対して、エアーコンディショナ401を制御するための制御指令を送信する。   The transmission unit 114A transmits a control command for controlling the air conditioner 401 to the selected control device (either the home server 200 or the communication device 300).

また、受信部111が、選択部113Aによって選択された制御装置(たとえば、図8の場合にはホームサーバ200)から、エアーコンディショナ401の制御に失敗した旨の通知を受信した場合、選択部113Aは、前回選択しなかった制御装置(図8の場合には通信機器300)を選択する。この場合、送信部114Aは、再度選択された制御装置に対して、制御指令を送信する。   When the reception unit 111 receives a notification that the control of the air conditioner 401 has failed from the control device (for example, the home server 200 in the case of FIG. 8) selected by the selection unit 113A, 113A selects a control device (communication device 300 in the case of FIG. 8) that was not selected last time. In this case, the transmission unit 114A transmits a control command to the control device selected again.

上記においては、エアーコンディショナ401を制御可能な制御装置が2つである場合を例に挙げて説明した。たとえば、制御装置として機能する機器が2つ以上である場合には、通信システム1Aは、以下の構成を有すると言える。   In the above, the case where there are two control devices that can control the air conditioner 401 has been described as an example. For example, when there are two or more devices functioning as a control device, it can be said that the communication system 1A has the following configuration.

<2C.サーバ装置100Aの制御構造>
図10は、サーバ装置100Aにおける処理の流れを説明するためのフローチャートである。図10を参照して、ステップS102〜S110の処理は、実施の形態1の図7における処理と同じである。したがって、ここでは、ステップS102〜S110の処理については、説明を繰り返さない。
<2C. Control structure of server device 100A>
FIG. 10 is a flowchart for explaining the flow of processing in server apparatus 100A. Referring to FIG. 10, the processes in steps S102 to S110 are the same as the processes in FIG. 7 of the first embodiment. Therefore, description of steps S102 to S110 will not be repeated here.

ステップS110の後、サーバ装置100Aは、ステップS202において、選択された制御装置によるエアーコンディショナ401の制御に成功したか否かを、当該機器からの通知に基づき判断する。たとえば、図8の場合においては、サーバ装置100Aは、ホームサーバ200によりエアーコンディショナ401の制御に成功したか否かを判断する。   After step S110, server apparatus 100A determines in step S202 whether or not control of air conditioner 401 by the selected control apparatus has succeeded based on a notification from the device. For example, in the case of FIG. 8, the server device 100 </ b> A determines whether or not the home server 200 has successfully controlled the air conditioner 401.

サーバ装置100Aは、制御に成功した場合(ステップS202においてYES)、一連の処理を終了する。サーバ装置100Aは、制御に失敗した場合(ステップS202においてNO)、ステップS204において、選択されなかった機器(制御装置)に制御指令を送信する。たとえば、図8の場合においては、サーバ装置100Aは、通信機器300に制御指令を送信する。   If the control is successful (YES in step S202), server device 100A ends the series of processing. If the control fails (NO in step S202), server apparatus 100A transmits a control command to the unselected device (control apparatus) in step S204. For example, in the case of FIG. 8, server device 100 </ b> A transmits a control command to communication device 300.

<2D.通信システム1Aの利点>
(1)以上のように、選択された制御装置が被制御装置であるエアーコンディショナ401の制御を行なえなかった場合には、送信部114Aは、複数の制御装置(ホームサーバ200および通信機器300)のうち、選択された制御装置とは異なる1つの制御装置に対して、制御指令を送信する。それゆえ、通信システム1Aでは、選択された制御装置とは異なる1つの制御装置に対して制御指令を送信しない構成に比べて、通信エラーに対する堅牢性(ネットワークのロバストネス)を高めることができる。
<2D. Advantages of Communication System 1A>
(1) As described above, when the selected control device cannot control the air conditioner 401 that is the controlled device, the transmission unit 114A includes a plurality of control devices (the home server 200 and the communication device 300). ), A control command is transmitted to one control device different from the selected control device. Therefore, in the communication system 1A, it is possible to improve robustness (network robustness) against a communication error as compared with a configuration in which a control command is not transmitted to one control device different from the selected control device.

(2)また、選択部113Aは、選択された制御装置が被制御装置であるエアーコンディショナ401の制御を行なえなかったことを表した信号をサーバ装置100Aが受信した後にサーバ装置100Aが最初に受信したポーリング信号の送信元である制御装置を、上記異なる1つの制御装置として選択する。それゆえ、通信システム1Aでは、ネットワークのロバストネスを高めつつ、被制御装置であるエアーコンディショナ401に対して制御指令を早く送信することができる。   (2) In addition, the selection unit 113A first receives the signal indicating that the selected control device cannot control the air conditioner 401, which is the controlled device, after the server device 100A receives the signal. The control device that is the transmission source of the received polling signal is selected as the one different control device. Therefore, in the communication system 1A, it is possible to quickly transmit a control command to the air conditioner 401 that is a controlled device while increasing the robustness of the network.

[実施の形態3]
以下では、説明の便宜上、実施の形態1,2の通信システム1,1Aと区別すために、本実施の形態に係る通信システムを「通信システム1B」と称する。また、実施の形態1,2のサーバ装置100,100Aと区別すために、本実施の形態に係るサーバ装置を「サーバ装置100B」と称する。通信システム1Bは、サーバ装置100Bと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。各機器同士の接続態様は、実施の形態1における図1に示した態様と同じであるため、ここでは、接続態様の説明を繰り返さない。また、サーバ装置100Bは、サーバ装置100と同様のハードウェア構成を有するため、サーバ装置100Bのハードウェア構成については説明を繰り返さない。
[Embodiment 3]
Hereinafter, for the sake of convenience of explanation, the communication system according to the present embodiment is referred to as “communication system 1B” in order to distinguish it from the communication systems 1 and 1A of the first and second embodiments. Further, in order to distinguish from the server apparatuses 100 and 100A of the first and second embodiments, the server apparatus according to the present embodiment is referred to as a “server apparatus 100B”. The communication system 1B includes a server device 100B, a home server 200, a communication device 300, a plurality of home appliances 401 to 403, and a smartphone 500. Since the connection mode between the devices is the same as the mode shown in FIG. 1 in the first embodiment, the description of the connection mode will not be repeated here. Further, since server device 100B has the same hardware configuration as server device 100, the description of the hardware configuration of server device 100B will not be repeated.

サーバ装置100Bは、受信した制御指令がエアーコンディショナ401を制御するための指令である場合、エアーコンディショナ401を制御する主体として、予め定められた規則に基づき、ホームサーバ200および通信機器300の何れかを選択する。   When the received control command is a command for controlling the air conditioner 401, the server apparatus 100 </ b> B serves as a main body that controls the air conditioner 401 based on a predetermined rule as to the home server 200 and the communication device 300. Select one.

サーバ装置100Bは、予め定められた規則として以下の規則を用いる。通信機器300は、エアーコンディショナ401のみを制御する。その一方、ホームサーバ200は、エアーコンディショナ401と、照明装置402と、テレビ403とを制御する。このように、ホームサーバ200は、通信機器300の制御対象であるエアーコンディショナ401を制御可能である。しかしながら、通信機器300は、ホームサーバ200の制御対象である照明装置402およびテレビ403を制御できない。このため、サーバ装置100Bは、ホームサーバ200および通信機器300のうち、他の機器(制御装置)の制御対象についても制御可能な機器(制御装置)を選択する。つまり、本実施の形態の場合には、サーバ装置100Bは、ホームサーバ200を選択する。   Server apparatus 100B uses the following rule as a predetermined rule. The communication device 300 controls only the air conditioner 401. On the other hand, the home server 200 controls the air conditioner 401, the lighting device 402, and the television 403. Thus, the home server 200 can control the air conditioner 401 that is the control target of the communication device 300. However, the communication device 300 cannot control the lighting device 402 and the television set 403 that are controlled by the home server 200. Therefore, the server device 100B selects a device (control device) that can also control the control target of another device (control device) from the home server 200 and the communication device 300. That is, in the case of the present embodiment, server device 100B selects home server 200.

また、本実施の形態では、サーバ装置100Bは、2つの制御装置(ホームサーバ200および通信機器300)のうちの1つの機器のポーリング間隔をデフォルト値(予め定められた時間間隔)よりも長くする構成について説明する。具体的には、サーバ装置100Bは、サーバ装置100Bによって選択されなかった機器(つまり通信機器300)のポーリング間隔をデフォルト値よりも長くする。   In the present embodiment, server device 100B makes the polling interval of one of the two control devices (home server 200 and communication device 300) longer than a default value (predetermined time interval). The configuration will be described. Specifically, the server device 100B makes the polling interval of devices (that is, the communication device 300) not selected by the server device 100B longer than the default value.

<3A.通信システム1Bにおける処理の概要>
図11は、通信システム1Bにおける処理の流れを説明するためのシーケンスチャートである。より詳しくは、図11は、通信システム1Bにおけるある局面の通信状態を表した図である。
<3A. Overview of Processing in Communication System 1B>
FIG. 11 is a sequence chart for explaining the flow of processing in the communication system 1B. More specifically, FIG. 11 is a diagram showing a communication state of a certain aspect in the communication system 1B.

図11を参照して、シーケンスSQ302において、ホームサーバ200は、サーバ装置100Bに対してポーリングを行なう。シーケンスSQ304において、通信機器300は、サーバ装置100Bに対してポーリングを行なう。   Referring to FIG. 11, in sequence SQ302, home server 200 polls server apparatus 100B. In sequence SQ304, communication device 300 polls server device 100B.

サーバ装置100Bは、制御指令の送信先としてホームサーバ200を選択するため、シーケンスSQ306において、通信機器300に対してポーリング間隔を長くするための指令(以下、「ポーリング間隔変更指令」と称する)を送信する。具体的には、サーバ装置100Bは、次回のポーリングまでの時間間隔を、デフォルト値よりも長い時間に指定する指令を送信する。次回のポーリングまでの時間間隔の指定は、たとえば、具体的な時間を通知してもよいし、あるいはデフォルト値に乗算する値を通知してもよい。なお、詳細については後述するが、図11では、次回のポーリングまでの時間間隔を、デフォルト値の2倍とした例を示している。   Server apparatus 100B selects home server 200 as the transmission destination of the control command, and therefore, in sequence SQ306, a command for increasing the polling interval for communication device 300 (hereinafter referred to as “polling interval change command”). Send. Specifically, the server device 100B transmits a command that designates a time interval until the next polling as a time longer than the default value. For specifying the time interval until the next polling, for example, a specific time may be notified, or a value to be multiplied by a default value may be notified. Although details will be described later, FIG. 11 shows an example in which the time interval until the next polling is twice the default value.

シーケンスSQ308において、スマートフォン500は、制御指令をサーバ装置100Bに送信する。シーケンスSQ310において、ホームサーバ200は、サーバ装置100Bに対してポーリングを行なう。シーケンスSQ312において、サーバ装置100Bは、ポーリング信号への応答として、制御指令をホームサーバ200に送信する。シーケンスSQ314において、ホームサーバ200は、制御指令をエアーコンディショナ401に送信することにより、エアーコンディショナ401を制御する。   In sequence SQ308, smartphone 500 transmits a control command to server device 100B. In sequence SQ310, home server 200 polls server apparatus 100B. In sequence SQ312, server apparatus 100B transmits a control command to home server 200 as a response to the polling signal. In sequence SQ 314, home server 200 controls air conditioner 401 by transmitting a control command to air conditioner 401.

シーケンスSQ316において、ホームサーバ200は、サーバ装置100Bに対してポーリングを行なう。シーケンスSQ316の後は、本来であれば、通信機器300からのポーリングの時間であるが、上述したようにポーリング間隔が2倍に制御されているため、当該タイミングでは通信機器300によるポーリングは行われない。   In sequence SQ316, home server 200 polls server apparatus 100B. After the sequence SQ316, it is originally a polling time from the communication device 300, but since the polling interval is controlled twice as described above, the communication device 300 performs polling at this timing. Absent.

シーケンスSQ318において、ホームサーバ200は、サーバ装置100Bに対してポーリングを行なう。また、シーケンスSQ320において、ホームサーバ200は、サーバ装置100Bに対してポーリングを行なう。シーケンスSQ322において、通信機器300は、サーバ装置100Bに対してポーリングを行なう。なお、サーバ装置100Aは、シーケンスSQ322においてポーリング信号を受信した場合には、シーケンスSQ306において説明したように、再度、ポーリング間隔変更指令を通信機器300に送信する。   In sequence SQ318, home server 200 polls server apparatus 100B. In sequence SQ320, home server 200 polls server apparatus 100B. In sequence SQ322, communication device 300 polls server apparatus 100B. In addition, when receiving a polling signal in sequence SQ322, server apparatus 100A transmits a polling interval change command to communication device 300 again as described in sequence SQ306.

<3B.機能的構成>
図12は、サーバ装置100Bとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。図12を参照して、通信システム1Bは、上述したように、サーバ装置100Bと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。
<3B. Functional configuration>
FIG. 12 is a functional block diagram for explaining functional configurations of the server device 100B, the home server 200, and the communication device 300. 12, communication system 1B includes server device 100B, home server 200, communication device 300, a plurality of household appliances 401 to 403, and smartphone 500, as described above.

サーバ装置100Bは、受信部111と、記憶部112と、選択部113Bと、送信部114Bと、設定部115とを含む。ホームサーバ200は、問合部211と、受信部212と、家電制御部213と、制御結果送信部214とを含む。通信機器300は、問合部311と、受信部312と、家電制御部313と、制御結果送信部314とを含む。   Server device 100B includes a reception unit 111, a storage unit 112, a selection unit 113B, a transmission unit 114B, and a setting unit 115. Home server 200 includes an inquiry unit 211, a reception unit 212, a home appliance control unit 213, and a control result transmission unit 214. Communication device 300 includes an inquiry unit 311, a reception unit 312, a home appliance control unit 313, and a control result transmission unit 314.

つまり、サーバ装置100Bが選択部113Bと送信部114Bと設定部115とを備える点において、選択部113と送信部114とを備える実施の形態1のサーバ装置100(図6)とは異なる。他の構成は、実施の形態1に係る通信システム1と同じである。このため、以下では、実施の形態1の通信システム1と異なる構成について説明を行ない、同じ構成については説明を繰り返さない。   That is, the server device 100B is different from the server device 100 (FIG. 6) of the first embodiment including the selection unit 113 and the transmission unit 114 in that the server device 100B includes the selection unit 113B, the transmission unit 114B, and the setting unit 115. Other configurations are the same as those of the communication system 1 according to the first embodiment. For this reason, below, a different structure from the communication system 1 of Embodiment 1 is demonstrated, and description is not repeated about the same structure.

選択部113Bは、予め定められた規則に基づいて、複数の制御装置(つまり、ホームサーバ200および通信機器300)のうちから1つの制御装置を選択する。具体的には、選択部113Bは、ホームサーバ200および通信機器300のうち、他の機器(制御装置)の制御対象についても制御可能な機器(制御装置)を選択する。つまり、図12に示すシステム構成の場合、選択部113Bは、ホームサーバ200を選択する。   The selection unit 113B selects one control device from among a plurality of control devices (that is, the home server 200 and the communication device 300) based on a predetermined rule. Specifically, the selection unit 113B selects, from the home server 200 and the communication device 300, a device (control device) that can also control a control target of another device (control device). That is, in the system configuration illustrated in FIG. 12, the selection unit 113B selects the home server 200.

設定部115は、選択されなかった機器(通信機器300)のポーリング間隔をデフォルト値よりも長くする。つまり、設定部115は、ポーリング信号の送信タイミングを遅らせる制御を行なう。さらに換言すれば、設定部115は、問い合わせのタイミングをデフォルト値で規定されるタイミングよりも遅らせるタイミング制御を行なう。具体的には、設定部115は、設定したポーリング間隔を送信部114Bを用いて通信機器300に通知することにより、通信機器300のポーリング間隔をデフォルト値よりも長くする。つまり、設定部115は、送信部114Bにポーリング間隔変更指令を送信させることにより、通信機器300のポーリング間隔をデフォルト値よりも長くする。   The setting unit 115 makes the polling interval for the unselected device (communication device 300) longer than the default value. That is, the setting unit 115 performs control to delay the transmission timing of the polling signal. In other words, the setting unit 115 performs timing control for delaying the inquiry timing from the timing defined by the default value. Specifically, the setting unit 115 notifies the communication device 300 of the set polling interval using the transmission unit 114B, thereby making the polling interval of the communication device 300 longer than the default value. That is, the setting unit 115 causes the transmission unit 114B to transmit a polling interval change command to make the polling interval of the communication device 300 longer than the default value.

送信部114Bは、選択された制御装置(ホームサーバ200)に対して、エアーコンディショナ401を制御するための制御指令を送信する。また、送信部114Bは、上述したように、ポーリング間隔変更指令を、選択されなかった機器(通信機器300)に送信する。   The transmission unit 114B transmits a control command for controlling the air conditioner 401 to the selected control device (home server 200). Further, as described above, the transmission unit 114B transmits the polling interval change command to the device (communication device 300) that has not been selected.

上記においては、エアーコンディショナ401を制御可能な制御装置が2つである場合を例に挙げて説明した。たとえば、制御装置として機能する機器が2つ以上である場合には、通信システム1Bは、以下の構成を有すると言える。   In the above, the case where there are two control devices that can control the air conditioner 401 has been described as an example. For example, when there are two or more devices functioning as control devices, it can be said that the communication system 1B has the following configuration.

<3C.サーバ装置100Bの制御構造>
図13は、サーバ装置100Bにおける処理の流れを説明するためのフローチャートである。図13を参照して、ステップS102,S104,S106の処理は、実施の形態1の図7における処理と同じである。したがって、ここでは、ステップS102,S104,S106の処理については、説明を繰り返さない。
<3C. Control structure of server apparatus 100B>
FIG. 13 is a flowchart for explaining the flow of processing in the server apparatus 100B. Referring to FIG. 13, the processes in steps S102, S104, and S106 are the same as the processes in FIG. 7 of the first embodiment. Therefore, description of steps S102, S104, and S106 will not be repeated here.

ステップS104の後、サーバ装置100Bは、ステップS302において、ホームサーバ200および通信機器300のうち、全ての家庭用電気器具(家電)の制御が可能なホームサーバ200を選択する。ステップS304において、サーバ装置100Bは、選択されなかった通信機器300に対して、ポーリング間隔をデフォルト値よりも長く設定する。ステップS106の後は、ステップS306において、サーバ装置100Bは、ホームサーバ200に対して制御指令を送信する。   After step S104, server device 100B selects home server 200 capable of controlling all household appliances (home appliances) from home server 200 and communication device 300 in step S302. In step S304, the server apparatus 100B sets a polling interval longer than the default value for the communication device 300 that has not been selected. After step S106, in step S306, server apparatus 100B transmits a control command to home server 200.

<3D.通信システム1Bの利点>
以上のように、通信システム1Bは、エアーコンディショナ401とは異なる電気器具(照明装置402およびテレビ403)をさらに備える。複数の制御装置(ホームサーバ200および通信機器300)は、照明装置402およびテレビ403に接続された制御装置(ホームサーバ200)と、照明装置402およびテレビ403に接続されていない制御装置(通信機器300)とを含む。選択部113Bは、第1の制御装置および第2の制御装置のうちから、第1の制御装置を選択する。サーバ装置100Bは、第2の制御装置対して、ポーリング間隔を、予め定められた時間間隔よりも長く設定する設定部115をさらに含む。それゆえ、通信システム1Bは、ポーリング間隔を長く設定しない構成に比べて、サーバ装置に加わる負荷を低減することができる。
<3D. Advantages of Communication System 1B>
As described above, the communication system 1B further includes an electric appliance (the lighting device 402 and the television 403) that is different from the air conditioner 401. A plurality of control devices (home server 200 and communication device 300) include a control device (home server 200) connected to lighting device 402 and television 403, and a control device (communication device) not connected to lighting device 402 and television 403. 300). The selection unit 113B selects the first control device from the first control device and the second control device. Server device 100B further includes a setting unit 115 that sets a polling interval longer than a predetermined time interval for the second control device. Therefore, the communication system 1B can reduce the load applied to the server device as compared with a configuration in which the polling interval is not set to be long.

[実施の形態4]
以下では、説明の便宜上、実施の形態1〜3の通信システム1,1A,1Bと区別すために、本実施の形態に係る通信システムを「通信システム1C」と称する。また、実施の形態1〜3のサーバ装置100,100A,100Bと区別すために、本実施の形態に係るサーバ装置を「サーバ装置100C」と称する。通信システム1Cは、サーバ装置100Cと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。各機器同士の接続態様は、実施の形態1における図1に示した態様と同じであるため、ここでは、接続態様の説明を繰り返さない。また、サーバ装置100Cは、サーバ装置100と同様のハードウェア構成を有するため、サーバ装置100Cのハードウェア構成については説明を繰り返さない。
[Embodiment 4]
Hereinafter, for the sake of convenience of description, the communication system according to the present embodiment is referred to as “communication system 1C” in order to distinguish from the communication systems 1, 1A, and 1B of the first to third embodiments. Further, in order to distinguish from the server apparatuses 100, 100A, and 100B of the first to third embodiments, the server apparatus according to the present embodiment is referred to as a “server apparatus 100C”. The communication system 1C includes a server device 100C, a home server 200, a communication device 300, a plurality of household appliances 401 to 403, and a smartphone 500. Since the connection mode between the devices is the same as the mode shown in FIG. 1 in the first embodiment, the description of the connection mode will not be repeated here. Since server device 100C has the same hardware configuration as server device 100, the description of the hardware configuration of server device 100C will not be repeated.

本実施の形態においても、実施の形態1,2と同様に、サーバ装置100Cは、ホームサーバ200および通信機器300のうち、サーバ装置100Cがスマートフォン500から制御指令を受信した後にサーバ装置100Cが最初に受信したポーリングの送信元である機器(制御装置)を選択する。サーバ装置100Cは、選択した機器に対して、制御指令を送信する。   Also in the present embodiment, as in the first and second embodiments, server device 100C is the first server device 100C that receives the control command from smartphone 500 among home server 200 and communication device 300. The device (control device) that is the transmission source of the polling received is selected. Server device 100C transmits a control command to the selected device.

また、本実施の形態では、サーバ装置100Cは、2つの制御装置(ホームサーバ200および通信機器300)のうちの1つの機器のポーリング間隔をデフォルト値(予め定められた時間間隔)よりも短くする構成について説明する。具体的には、サーバ装置100Cは、ポーリング信号の送信が途絶えた機器とは異なる機器のポーリング間隔を短く設定する。   In the present embodiment, server device 100C shortens the polling interval of one of the two control devices (home server 200 and communication device 300) from a default value (predetermined time interval). The configuration will be described. Specifically, the server apparatus 100C sets the polling interval of a device different from the device from which the polling signal transmission is stopped short.

<4A.通信システム1Cのシステム構成の詳細>
図14は、通信システム1Cの詳細を説明するための図である。図14を参照して、通信システム1Cは、サーバ装置100Cと、ホームサーバ200と、通信機器300と、エアーコンディショナ401と、スマートフォン500と、ルータ600と、図示しない照明装置402およびテレビ403とを備えている。
<4A. Details of System Configuration of Communication System 1C>
FIG. 14 is a diagram for explaining the details of the communication system 1C. Referring to FIG. 14, communication system 1 </ b> C includes server device 100 </ b> C, home server 200, communication device 300, air conditioner 401, smartphone 500, router 600, lighting device 402 and television 403 (not shown). It has.

サーバ装置100Cは、ルータ600と通信可能に接続されている。ホームサーバ200は、ルータ600を介してサーバ装置100Cと通信可能に接続されている。   Server device 100C is connected to router 600 so as to be communicable. The home server 200 is communicably connected to the server device 100C via the router 600.

エアーコンディショナ401は、通信機器300およびルータ600を介して、サーバ装置100Cと通信可能に接続されている。また、エアーコンディショナ401は、ルータ600およびホームサーバ200を介してサーバ装置100Cと通信可能に接続されている。   The air conditioner 401 is communicably connected to the server device 100C via the communication device 300 and the router 600. The air conditioner 401 is communicably connected to the server device 100C via the router 600 and the home server 200.

つまり、ある局面においては、ホームサーバ200は、ルータ600を介して、サーバ装置100Cから制御指令を受信する。また、ホームサーバ200は、ルータ600を介して、エアーコンディショナ401に制御指令を送る。他の局面においては、通信機器300は、ルータ600を介してサーバ装置100Cから制御指令を受信する。この場合、通信機器300は、ルータ600を介することなく直接、制御命令をエアーコンディショナ401に送信する。   That is, in one aspect, home server 200 receives a control command from server device 100C via router 600. The home server 200 also sends a control command to the air conditioner 401 via the router 600. In another aspect, communication device 300 receives a control command from server device 100C via router 600. In this case, the communication device 300 transmits a control command directly to the air conditioner 401 without going through the router 600.

<4B.通信システム1Cにおける処理の概要>
図15は、通信システム1Cにおける処理の流れを説明するためのシーケンスチャートである。より詳しくは、図15は、通信システム1Cにおけるある局面の通信状態を表した図である。なお、通信システム1Cにおいては、ホームサーバ200のポーリング間隔のデフォルト値をTa秒とし、通信機器300のポーリング間隔のデフォルト値をTb秒とする。
<4B. Overview of Processing in Communication System 1C>
FIG. 15 is a sequence chart for explaining the flow of processing in the communication system 1C. More specifically, FIG. 15 is a diagram showing a communication state of a certain aspect in the communication system 1C. In the communication system 1C, the default value of the polling interval of the home server 200 is Ta seconds, and the default value of the polling interval of the communication device 300 is Tb seconds.

図15を参照して、シーケンスSQ402において、ホームサーバ200は、サーバ装置100Cに対してポーリングを行なう。シーケンスSQ404において、通信機器300は、サーバ装置100Cに対してポーリングを行なう。シーケンスSQ404の後、ホームサーバ200からのポーリングが途絶えた状態となる。   Referring to FIG. 15, in sequence SQ402, home server 200 polls server apparatus 100C. In sequence SQ404, communication device 300 polls server device 100C. After sequence SQ404, polling from home server 200 stops.

シーケンスSQ406において、スマートフォン500は、サーバ装置100Cに制御指令を送信する。シーケンスSQ408において、通信機器300は、前回のポーリング(シーケンスSQ404におけるポーリング)からTb秒後に、ポーリングをサーバ装置100Cに対して行なう。シーケンスSQ410において、サーバ装置100Cは、通信機器300に制御指令を送信する。シーケンスSQ412において、サーバ装置100Cは、通信機器に対して、ポーリング間隔変更指令を送信する。以下では、ポーリング間隔変更指令は、ポーリング間隔をデフォルト値(Tb秒)から、デフォルト値よりも短い時間(Tc秒)に設定するための指令である。なお、サーバ装置100Cは、シーケンスSQ410,SQ412の代わりに、制御指令とポーリング間隔変更指令とを含んだ指令を通信機器300に送信してもよい。   In sequence SQ406, smartphone 500 transmits a control command to server device 100C. In sequence SQ408, communication device 300 performs polling on server device 100C Tb seconds after the previous polling (polling in sequence SQ404). In sequence SQ410, server device 100C transmits a control command to communication device 300. In sequence SQ412, server device 100C transmits a polling interval change command to the communication device. In the following, the polling interval change command is a command for setting the polling interval from the default value (Tb seconds) to a time (Tc seconds) shorter than the default value. Server device 100C may transmit a command including a control command and a polling interval change command to communication device 300 instead of sequences SQ410 and SQ412.

シーケンスSQ414において、通信機器300は、制御指令をエアーコンディショナ401に送信する。つまり、通信機器300は、サーバ装置100Cを介して受信した制御指令に基づき、エアーコンディショナ401を制御する。   In sequence SQ414, the communication device 300 transmits a control command to the air conditioner 401. That is, the communication device 300 controls the air conditioner 401 based on the control command received via the server device 100C.

シーケンスSQ416において、通信機器300は、前回のポーリング(シーケンスSQ408におけるポーリング)からTc(<Tb)秒後に、サーバ装置100Cに対してポーリングを行なう。シーケンスSQ418において、サーバ装置100Cは、ポーリング間隔変更指令を通信機器300に送信する。   In sequence SQ416, communication device 300 polls server apparatus 100C after Tc (<Tb) seconds from the previous polling (polling in sequence SQ408). In sequence SQ418, server device 100C transmits a polling interval change command to communication device 300.

シーケンスSQ420において、通信機器300は、前回のポーリング(シーケンスSQ416におけるポーリング)からTc秒後に、サーバ装置100Cに対してポーリングを行なう。シーケンスSQ422において、サーバ装置100Cは、ポーリング間隔変更指令を通信機器300に送信する。   In sequence SQ420, communication device 300 performs polling on server device 100C Tc seconds after the previous polling (polling in sequence SQ416). In sequence SQ422, server device 100C transmits a polling interval change command to communication device 300.

シーケンスSQ424において、ホームサーバ200が、サーバ装置100Cに対するポーリングを再開する。シーケンスSQ426において、通信機器300は、前回のポーリング(シーケンスSQ416におけるポーリング)からTc秒後に、サーバ装置100Cに対して、ポーリングを行なう。サーバ装置100Cは、ホームサーバ200からのポーリングが再開したため、ポーリング間隔変更指令を通信機器300には送らない。   In sequence SQ424, home server 200 resumes polling for server device 100C. In sequence SQ426, communication device 300 polls server apparatus 100C after Tc seconds from the previous polling (polling in sequence SQ416). Server device 100C does not send a polling interval change command to communication device 300 because polling from home server 200 has resumed.

シーケンスSQ428において、ホームサーバ200は、前回のポーリング(シーケンスSQ424におけるポーリング)からTa秒後に、サーバ装置100Cに対してポーリングを行なう。シーケンスSQ430において、通信機器300は、前回のポーリング(シーケンスSQ426におけるポーリング)からTb秒後に、サーバ装置100Cに対してポーリングを行なう。   In sequence SQ428, home server 200 polls server apparatus 100C after Ta seconds from the previous polling (polling in sequence SQ424). In sequence SQ430, communication device 300 polls server apparatus 100C for Tb seconds after the previous polling (polling in sequence SQ426).

<4C.機能的構成>
図16は、サーバ装置100Cとホームサーバ200と通信機器300との機能的構成を説明するための機能ブロック図である。図16を参照して、通信システム1Cは、上述したように、サーバ装置100Cと、ホームサーバ200と、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500と、図示しないルータ600とを備える。
<4C. Functional configuration>
FIG. 16 is a functional block diagram for explaining functional configurations of the server device 100C, the home server 200, and the communication device 300. Referring to FIG. 16, as described above, communication system 1C includes server device 100C, home server 200, communication device 300, a plurality of household appliances 401 to 403, smartphone 500, and a router (not shown). 600.

サーバ装置100Cは、受信部111と、記憶部112と、選択部113Cと、送信部114Cと、設定部115Cとを含む。ホームサーバ200は、問合部211と、受信部212と、家電制御部213と、制御結果送信部214とを含む。通信機器300は、問合部311と、受信部312と、家電制御部313と、制御結果送信部314とを含む。   The server device 100C includes a reception unit 111, a storage unit 112, a selection unit 113C, a transmission unit 114C, and a setting unit 115C. Home server 200 includes an inquiry unit 211, a reception unit 212, a home appliance control unit 213, and a control result transmission unit 214. Communication device 300 includes an inquiry unit 311, a reception unit 312, a home appliance control unit 313, and a control result transmission unit 314.

つまり、サーバ装置100Cが選択部113Cと送信部114Cと設定部115Cとを備える点において、実施の形態1のサーバ装置100(図6)とは異なる。他の構成は、実施の形態1に係る通信システム1と同じである。このため、以下では、実施の形態1の通信システム1と異なる構成について説明を行ない、同じ構成については説明を繰り返さない。   That is, the server device 100C is different from the server device 100 (FIG. 6) of the first embodiment in that the server device 100C includes a selection unit 113C, a transmission unit 114C, and a setting unit 115C. Other configurations are the same as those of the communication system 1 according to the first embodiment. For this reason, below, a different structure from the communication system 1 of Embodiment 1 is demonstrated, and description is not repeated about the same structure.

選択部113Cは、予め定められた規則に基づいて、複数の制御装置(つまり、ホームサーバ200および通信機器300)のうちから1つの制御装置を選択する。具体的には、選択部113Cは、ホームサーバ200および通信機器300の各々からのポーリングが途絶えていないと判断した場合には、サーバ装置100Cがスマートフォン500から制御指令を受信した後にサーバ装置100Cが最初に受信したポーリング信号の送信元である機器を選択する。また、選択部113Cは、ホームサーバ200および通信機器300のいずれかからのポーリングが途絶えたと判断した場合には、ポーリングが途絶えていない機器を選択する。つまり、図15に示すシステム構成の場合、選択部113Cは、通信機器300を選択する。   The selection unit 113C selects one control device from among a plurality of control devices (that is, the home server 200 and the communication device 300) based on a predetermined rule. Specifically, when the selection unit 113C determines that polling from each of the home server 200 and the communication device 300 is not interrupted, the server device 100C receives the control command from the smartphone 500, and then the server device 100C The device that is the source of the polling signal received first is selected. If the selection unit 113C determines that polling from either the home server 200 or the communication device 300 has stopped, the selection unit 113C selects a device that has not stopped polling. That is, in the case of the system configuration illustrated in FIG. 15, the selection unit 113C selects the communication device 300.

設定部115Cは、複数の制御装置(つまり、ホームサーバ200および通信機器300)のうちのいずれかの制御装置からポーリング信号を受信できなかった場合、サーバ装置100Cが受信できたポーリング信号の送信元の制御装置が送信するポーリングの時間間隔を、デフォルト値よりも短く設定する。つまり、設定部115は、ポーリング信号の送信タイミングを早める制御を行なう。さらに換言すれば、設定部115は、問い合わせのタイミングをデフォルト値で規定されるタイミングよりも早めるタイミング制御を行なう。たとえば、図15に示すシステム構成の場合、設定部115Cは、通信機器300のポーリング間隔を短く設定する。具体的には、設定部115Cは、送信部114Cにポーリング間隔変更指令を送信させることにより、通信機器300のポーリング間隔をデフォルト値よりも短くする。   When the setting unit 115C cannot receive a polling signal from any one of a plurality of control devices (that is, the home server 200 and the communication device 300), the source of the polling signal that the server device 100C can receive The polling time interval transmitted by the control device is set to be shorter than the default value. That is, the setting unit 115 performs control to advance the transmission timing of the polling signal. In other words, the setting unit 115 performs timing control that makes the inquiry timing earlier than the timing specified by the default value. For example, in the case of the system configuration illustrated in FIG. 15, the setting unit 115 </ b> C sets the polling interval of the communication device 300 to be short. Specifically, the setting unit 115C causes the transmission unit 114C to transmit a polling interval change command, thereby shortening the polling interval of the communication device 300 from the default value.

<4D.サーバ装置100Cの制御構造>
図17は、サーバ装置100Cにおける処理の流れを説明するためのフローチャートである。図17を参照して、ステップS102,S104,S106,S108の処理は、実施の形態1の図7における処理と同じである。したがって、ここでは、ステップS102,S104,S106,S108の処理については、説明を繰り返さない。
<4D. Control structure of server device 100C>
FIG. 17 is a flowchart for explaining the flow of processing in the server apparatus 100C. Referring to FIG. 17, the processes in steps S102, S104, S106, and S108 are the same as the processes in FIG. 7 of the first embodiment. Therefore, the description of steps S102, S104, S106, and S108 will not be repeated here.

ステップS104の後、サーバ装置100Cは、ステップS402において、ホームサーバ200および通信機器300からのポーリング信号を受信できなかったか否かを判断する。なお、サーバ装置100Cは、ホームサーバ200および通信機器300から定期的に送信されるポーリング信号を受信できたか否かに基づき、ステップS104の判断を行なう。   After step S104, server device 100C determines whether or not the polling signal from home server 200 and communication device 300 could not be received in step S402. Note that the server device 100C makes the determination in step S104 based on whether or not the polling signal periodically transmitted from the home server 200 and the communication device 300 has been received.

サーバ装置100Cは、受信できなかったと判断した場合(ステップS402においてNO)、処理をステップS106に進める。サーバ装置100Cは、受信できたと判断した場合(ステップS402においてYES)、ステップS404において、スマートフォン500から制御指令を受信したか否かを判断する。   When server device 100C determines that the data cannot be received (NO in step S402), the process proceeds to step S106. When it is determined that the server apparatus 100C has been able to receive (YES in step S402), the server apparatus 100C determines whether or not a control command has been received from the smartphone 500 in step S404.

ステップS406において、サーバ装置100Cは、サーバ装置100Cが受信できたポーリング信号の送信元の機器に対して、制御指令を送信する。ステップS408において、サーバ装置100Cが受信できたポーリング信号の送信元の機器に対して、ポーリング間隔をデフォルト値よりも短く設定する。   In step S406, the server device 100C transmits a control command to the device that has transmitted the polling signal that the server device 100C has received. In step S408, the polling interval is set shorter than the default value for the device that is the source of the polling signal that can be received by the server apparatus 100C.

<4E.通信システム1Cの利点>
以上のように、サーバ装置100Cは、複数の制御装置(ホームサーバ200および通信機器300)のうちのいずれかの制御装置からポーリング信号を受信できなかった場合、サーバ装置100Cが受信できたポーリング信号の送信元の制御装置が送信するポーリング間隔を、予め定められた時間間隔よりも短く設定する設定部115Cをさらに含む。それゆえ、通信システム1Cは、サーバ装置100Cと1つの制御装置との間で通信エラーが生じた場合、ポーリング間隔を短くしない構成に比べて、他の制御装置との間で迅速な通信を行なうことが可能となる。
<4E. Advantages of Communication System 1C>
As described above, when the server apparatus 100C cannot receive the polling signal from any one of the plurality of control apparatuses (home server 200 and communication device 300), the polling signal that the server apparatus 100C has received. It further includes a setting unit 115C that sets the polling interval transmitted by the transmission source control device to be shorter than a predetermined time interval. Therefore, when a communication error occurs between the server device 100C and one control device, the communication system 1C performs quick communication with another control device as compared with a configuration in which the polling interval is not shortened. It becomes possible.

[実施の形態5]
本実施の形態では、サーバ装置とホームサーバとの間の通信規格が実施の形態1〜4とは異なる場合について説明する。サーバ装置とホームサーバとの間の通信が、ウェブソケット(Web Socket)である場合を例に挙げて説明する。
[Embodiment 5]
In the present embodiment, a case where the communication standard between the server device and the home server is different from those in the first to fourth embodiments will be described. A case where communication between the server device and the home server is a web socket will be described as an example.

<5A.通信システム1Dのシステム構成>
図18は、本実施の形態に係る通信システム1Dの概略構成を表した図である。図18を参照して、通信システム1Dは、サーバ装置100Dと、ホームサーバ200Dと、通信機器300と、家庭用電気器具群400と、端末装置としてのスマートフォン500とを備える。
<5A. System configuration of communication system 1D>
FIG. 18 is a diagram illustrating a schematic configuration of a communication system 1D according to the present embodiment. Referring to FIG. 18, the communication system 1D includes a server device 100D, a home server 200D, a communication device 300, a household electric appliance group 400, and a smartphone 500 as a terminal device.

サーバ装置100Dとホームサーバ200Dとは、ポーリングを行なうことなく双方向通信が可能な通信方式により接続されている。このため、ホームサーバ200Dは、ポーリングを行なうことなくサーバ装置100Dから制御指令を受信可能である。典型的には、サーバ装置100Dは、上述したように、通信規格の1つであるウェブソケットに基づき、ホームサーバ200Dと通信可能に接続されている。   Server device 100D and home server 200D are connected by a communication method capable of bidirectional communication without polling. For this reason, home server 200D can receive a control command from server apparatus 100D without performing polling. Typically, as described above, the server device 100D is connected to the home server 200D so as to be communicable based on a web socket that is one of communication standards.

なお、サーバ装置100Dとホームサーバ200Dとがウェブソケットにより通信可能に接続されている以外、各機器同士の接続態様は実施の形態1における図1に示した態様と同じである。このため、ここでは、接続態様の説明を繰り返さない。また、サーバ装置100Dは、サーバ装置100と同様のハードウェア構成を有するため、サーバ装置100Dのハードウェア構成については説明を繰り返さない。さらに、ホームサーバ200Dは、ホームサーバ200と同様のハードウェア構成を有するため、ホームサーバ200Dのハードウェア構成については説明を繰り返さない。   Note that the connection mode between the devices is the same as that shown in FIG. 1 in the first embodiment, except that the server device 100D and the home server 200D are communicably connected via a web socket. For this reason, description of a connection aspect is not repeated here. Further, since server device 100D has the same hardware configuration as server device 100, the description of the hardware configuration of server device 100D will not be repeated. Furthermore, since home server 200D has the same hardware configuration as home server 200, the description of the hardware configuration of home server 200D will not be repeated.

<5B.通信システム1Dにおける処理の概要>
図19は、通信システム1Dにおける処理の流れを説明するためのシーケンスチャートである。より詳しくは、図19は、通信システム1Dにおけるある局面の通信状態を表した図である。
<5B. Overview of Processing in Communication System 1D>
FIG. 19 is a sequence chart for explaining the flow of processing in the communication system 1D. More specifically, FIG. 19 is a diagram illustrating a communication state of a certain aspect in the communication system 1D.

図19を参照して、シーケンスSQ502において、通信機器300は、サーバ装置100Dに対してポーリングを行なう。ホームサーバ200Dは、ウェブソケットでサーバ装置100と接続されているために、ポーリングは行わない。   Referring to FIG. 19, in sequence SQ502, communication device 300 polls server apparatus 100D. Since home server 200D is connected to server device 100 via a web socket, polling is not performed.

シーケンスSQ504において、スマートフォン500は、サーバ装置100Dに対して、制御指令を送信する。シーケンスSQ506において、サーバ装置100Dに対してポーリングを行なう。サーバ装置100Dは、ホームサーバ200Dとウェブソケットで接続されているため、シーケンスSQ508において、制御指令をホームサーバ200Dに送信する。つまり、サーバ装置100Dは、ポーリングを用いた通信を行なう通信機器300には、スマートフォン500から受信した制御指令を送信しない。換言すれば、サーバ装置100Dは、ホームサーバ200Dおよび通信機器300のうち、ウェブソケットで接続されている機器を選択し、当該選択した機器に対して制御指令を送信する。   In sequence SQ504, smartphone 500 transmits a control command to server device 100D. In sequence SQ506, server apparatus 100D is polled. Server device 100D is connected to home server 200D via a web socket, and therefore transmits a control command to home server 200D in sequence SQ508. That is, the server apparatus 100D does not transmit the control command received from the smartphone 500 to the communication device 300 that performs communication using polling. In other words, the server device 100D selects a device connected by the web socket from the home server 200D and the communication device 300, and transmits a control command to the selected device.

シーケンスSQ510において、ホームサーバ200Dは、サーバ装置100Dから受信した制御指令を、エアーコンディショナ401に送る。つまり、ホームサーバ200Dは、エアーコンディショナ401を制御する。シーケンスSQ512において、通信機器300は、サーバ装置100Dに対してポーリングを行なう。   In sequence SQ510, home server 200D sends the control command received from server device 100D to air conditioner 401. That is, the home server 200D controls the air conditioner 401. In sequence SQ512, communication device 300 polls server apparatus 100D.

<5C.機能的構成>
図20は、サーバ装置100Dとホームサーバ200Dと通信機器300との機能的構成を説明するための機能ブロック図である。図20を参照して、通信システム1Dは、上述したように、サーバ装置100Dと、ホームサーバ200Dと、通信機器300と、複数の家庭用電気器具401〜403と、スマートフォン500とを備える。
<5C. Functional configuration>
FIG. 20 is a functional block diagram for explaining functional configurations of the server device 100D, the home server 200D, and the communication device 300. Referring to FIG. 20, communication system 1D includes server device 100D, home server 200D, communication device 300, a plurality of household appliances 401 to 403, and smartphone 500, as described above.

サーバ装置100Dは、受信部111Dと、記憶部112と、選択部113Dと、送信部114Dとを含む。ホームサーバ200Dは、受信部212Dと、家電制御部213と、送信部215とを含む。通信機器300は、問合部311と、受信部312と、家電制御部313と、制御結果送信部314とを含む。   Server apparatus 100D includes a reception unit 111D, a storage unit 112, a selection unit 113D, and a transmission unit 114D. Home server 200D includes a reception unit 212D, a home appliance control unit 213, and a transmission unit 215. Communication device 300 includes an inquiry unit 311, a reception unit 312, a home appliance control unit 313, and a control result transmission unit 314.

つまり、サーバ装置100Dが受信部111Dと選択部113Dと送信部114Dとを備える点において、受信部111と選択部113と送信部114とを備える実施の形態1のサーバ装置100(図6)とは異なる。このため、以下では、実施の形態1の通信システム1と異なる構成について説明を行ない、同じ構成については説明を繰り返さない。また、ホームサーバ200Dは、問合部211と制御結果送信部214とを備えていない点、および送信部215を備えている点において、実施の形態1のホームサーバ200とは異なる。   That is, the server device 100D according to the first embodiment including the reception unit 111, the selection unit 113, and the transmission unit 114 in that the server device 100D includes the reception unit 111D, the selection unit 113D, and the transmission unit 114D. Is different. For this reason, below, a different structure from the communication system 1 of Embodiment 1 is demonstrated, and description is not repeated about the same structure. The home server 200D is different from the home server 200 of the first embodiment in that the home server 200D does not include the inquiry unit 211 and the control result transmission unit 214 and includes the transmission unit 215.

サーバ装置100Dの受信部111Dは、ホームサーバ200Dの送信部215から送信される各種のデータを受信する。選択部113Dは、複数の制御装置(つまり、ホームサーバ200Dおよび通信機器300)のうちから1つの制御装置を選択する。具体的には、選択部113Dは、ウェブソケットで接続されている機器(つまりホームサーバ200Dを選択する。選択部113Dが、ポーリングによる通信を行なう通信機器300ではなく、ホームサーバ200Dを選択する理由は、ポーリングによる通信よりも迅速な通信が可能であるためである。   The receiving unit 111D of the server device 100D receives various data transmitted from the transmitting unit 215 of the home server 200D. The selection unit 113D selects one control device from among a plurality of control devices (that is, the home server 200D and the communication device 300). Specifically, the selection unit 113D selects a device connected via a web socket (that is, the home server 200D. Reason why the selection unit 113D selects the home server 200D instead of the communication device 300 that performs communication by polling). This is because faster communication than polling communication is possible.

送信部114Dは、スマートフォン500から受信した制御指令を、選択部113Dにより選択された制御装置(つまり、ホームサーバ200D)に対して、送信する。ホームサーバ200Dの受信部212Dは、送信部114Dから送信された制御指令を受信する。受信部212Dは、受信した制御指令を家電制御部213に送る。   The transmission unit 114D transmits the control command received from the smartphone 500 to the control device (that is, the home server 200D) selected by the selection unit 113D. The receiving unit 212D of the home server 200D receives the control command transmitted from the transmitting unit 114D. The receiving unit 212D sends the received control command to the home appliance control unit 213.

<5D.サーバ装置100Dの制御構造>
図21は、サーバ装置100Dにおける処理の流れを説明するためのフローチャートである。図21を参照して、ステップS102,S104,S106,S110の処理は、実施の形態1の図7における処理と同じである。したがって、ここでは、ステップS102,S104,S106,S110の処理については、説明を繰り返さない。
<5D. Control structure of server device 100D>
FIG. 21 is a flowchart for explaining the flow of processing in the server apparatus 100D. Referring to FIG. 21, the processes in steps S102, S104, S106, and S110 are the same as the processes in FIG. 7 of the first embodiment. Accordingly, the description of steps S102, S104, S106, and S110 will not be repeated here.

ステップS104の後、サーバ装置100Dは、ステップS502において、ホームサーバ200および通信機器300のうちから、ウェブソケット通信を行なう機器を選択する。サーバ装置100Dは、ステップS502の後は、ステップS106に処理を進める。また、サーバ装置100Dは、ステップS106の後は、ステップS110に処理を進める。   After step S104, server apparatus 100D selects a device that performs web socket communication from home server 200 and communication device 300 in step S502. Server apparatus 100D advances the process to step S106 after step S502. Moreover, server apparatus 100D advances a process to step S110 after step S106.

<5E.通信システム1Dの利点>
以上のように、通信システム1Dは、被制御装置であるエアーコンディショナ401に対して送信すべきデータとして制御指令が存在するか否かを、予め定められた時間間隔でサーバ装置100Dに対して問い合わせ、問い合わせに基づき制御指令を受信する第1の通信方式(ポーリング方式)と、ポーリングを行なうことなくサーバ装置100Dから制御指令を受信する第2の通信方式とを含んでいる。選択部113Dは、複数の制御装置(ホームサーバ200および通信機器300)が、第1の通信方式でサーバ装置100Dと通信する第1の制御装置(通信機器300)と、第2の通信方式でサーバ装置100Dと通信する第2の制御装置(ホームサーバ200)とを含む場合には、上記規則に基づいた選択として、第2の制御装置を選択する。
<5E. Advantages of Communication System 1D>
As described above, the communication system 1D determines whether or not a control command exists as data to be transmitted to the air conditioner 401 that is a controlled device, with respect to the server device 100D at a predetermined time interval. This includes a first communication method (polling method) that receives a control command based on an inquiry, and a second communication method that receives a control command from server device 100D without performing polling. The selection unit 113D includes a first control device (communication device 300) in which a plurality of control devices (home server 200 and communication device 300) communicate with the server device 100D using the first communication method, and a second communication method. When the second control device (home server 200) communicating with the server device 100D is included, the second control device is selected as the selection based on the rule.

それゆえ、サーバ装置100Dは、ポーリングを行なうことにより制御指令を制御装置に送信する場合(第1の通信方式)に比べて、被制御装置であるエアーコンディショナ401に対して、制御指令を早く送信することができる。   Therefore, the server device 100D sends the control command to the air conditioner 401 that is the controlled device earlier than when the control command is transmitted to the control device by polling (the first communication method). Can be sent.

<5F.変形例>
上記においては、サーバ装置100Dとホームサーバ200Dとの間がウェブソケットで接続されている場合を例に挙げて説明したが、これに限定されるものではない。たとえば、サーバ装置100Dと通信機器300との間がウェブソケットで通信可能に接続されている場合にも、上述した処理を適用できる。このような態様の場合には、サーバ装置100Dは、通信機器300を選択し、通信機器300に対して制御指令を送信する。
<5F. Modification>
In the above description, the case where the server apparatus 100D and the home server 200D are connected by a web socket has been described as an example. However, the present invention is not limited to this. For example, the processing described above can also be applied when the server apparatus 100D and the communication device 300 are connected so as to be able to communicate with each other via a web socket. In the case of such an aspect, the server device 100D selects the communication device 300 and transmits a control command to the communication device 300.

[実施の形態6]
図22は、本実施の形態に係る通信システム1Eの概略構成を表した図である。図22を参照して、通信システム1Eは、サーバ装置100Eと、ホームサーバ200と、ホームサーバ200Eと、通信機器300と、家庭用電気器具群400と、端末装置としてのスマートフォン500とを備える。
[Embodiment 6]
FIG. 22 is a diagram illustrating a schematic configuration of a communication system 1E according to the present embodiment. With reference to FIG. 22, the communication system 1E includes a server device 100E, a home server 200, a home server 200E, a communication device 300, a household electric appliance group 400, and a smartphone 500 as a terminal device.

つまり、通信システム1Eは、ホームサーバ200Eを備える点、およびサーバ装置100の代わりにサーバ装置100Eを備える点において、実施の形態1に係る通信システム1とは異なる。   That is, the communication system 1E is different from the communication system 1 according to Embodiment 1 in that the communication system 1E includes the home server 200E and the server apparatus 100E instead of the server apparatus 100.

サーバ装置100Eは、ホームサーバ200Eと通信可能な点において、サーバ装置100とは異なる。この点を除き、サーバ装置100Eは、サーバ装置100と同様の構成を有する。それゆえ、サーバ装置100Eの構成については、繰り返し説明しない。   Server device 100E is different from server device 100 in that it can communicate with home server 200E. Except for this point, the server apparatus 100E has the same configuration as the server apparatus 100. Therefore, the configuration of the server device 100E will not be repeatedly described.

ホームサーバ200Eは、スマートハウス向けの制御プロトコルおよびセンサーネットプロトコルを有する通信プロトコルを用いて、照明装置402およびテレビ403と通信する。ホームサーバ200Eは、ECHONET LITEによって、照明装置402およびテレビ403と通信する。つまり、ホームサーバ200Eは、エアーコンディショナ401とは通信を行なわない。   The home server 200E communicates with the lighting device 402 and the television 403 using a communication protocol having a control protocol for a smart house and a sensor net protocol. Home server 200E communicates with lighting device 402 and television 403 by ECHONET LITE. That is, the home server 200E does not communicate with the air conditioner 401.

たとえば、ホームサーバ200とホームサーバ200Eとは、製造メーカが異なっていてもよいし、同じでもよい。換言すれば、ホームサーバ200とサーバ装置100Eとの間の通信仕様と、ホームサーバ200とサーバ装置100Eとの間の通信仕様とは、異なっていてもよいし、同じであってもよい。   For example, the home server 200 and the home server 200E may have different manufacturers or the same manufacturer. In other words, the communication specification between the home server 200 and the server device 100E and the communication specification between the home server 200 and the server device 100E may be different or the same.

サーバ装置100Eは、ホームサーバ200および通信機器300のうちから、エアーコンディショナ401を制御するための機器を選択する。また、サーバ装置100Eは、ホームサーバ200およびホームサーバ200Eのうちから、照明装置402を制御するための機器を選択する。さらに、サーバ装置100Eは、ホームサーバ200およびホームサーバ200Eのうちから、テレビ403を制御するための機器を選択する。   The server device 100E selects a device for controlling the air conditioner 401 from the home server 200 and the communication device 300. In addition, the server device 100E selects a device for controlling the lighting device 402 from the home server 200 and the home server 200E. Furthermore, the server device 100E selects a device for controlling the television 403 from the home server 200 and the home server 200E.

このように、ホームサーバを複数備えるシステム構成であっても、通信システム1と同様の効果を得ることができる。   Thus, even in a system configuration including a plurality of home servers, the same effect as that of the communication system 1 can be obtained.

また、上記においては、実施の形態1で説明したサーバ装置100の代わりにサーバ装置100Eを備える構成を例に挙げて説明したが、これに限定されるものではない。たとえば、実施の形態2から5で説明したサーバ装置100A,100B,100C,100Dの代わりにサーバ装置100Eを備える通信システムにも、ホームサーバを複数有する構成を適用できる。   Moreover, in the above, although the structure provided with the server apparatus 100E instead of the server apparatus 100 demonstrated in Embodiment 1 was mentioned as an example, it demonstrated, It is not limited to this. For example, a configuration having a plurality of home servers can be applied to a communication system including the server device 100E instead of the server devices 100A, 100B, 100C, and 100D described in the second to fifth embodiments.

なお、上記においては、通信システム1Eがホームサーバを2つ備える構成を例に挙げて説明しているが、3つ以上であってもよい。   In the above description, the configuration in which the communication system 1E includes two home servers is described as an example, but may be three or more.

[実施の形態7]
図23は、本実施の形態に係る通信システム1Fの概略構成を表した図である。図23を参照して、通信システム1Fは、サーバ装置100Fと、2つのホームサーバ200と、家庭用電気器具群400と、端末装置としてのスマートフォン500とを備える。
[Embodiment 7]
FIG. 23 is a diagram illustrating a schematic configuration of a communication system 1F according to the present embodiment. Referring to FIG. 23, communication system 1F includes server device 100F, two home servers 200, a household appliance group 400, and a smartphone 500 as a terminal device.

つまり、通信システム1Fは、ホームサーバ200を2つ備える点と、通信機器300を備えていない点と、サーバ装置100の代わりにサーバ装置100Fを備える点とにおいて、実施の形態1に係る通信システム1とは異なる。   That is, the communication system 1F includes the two home servers 200, the communication device 300, and the server device 100F instead of the server device 100. Different from 1.

サーバ装置100Fは、2つのホームサーバ200と通信可能な点において、サーバ装置100とは異なる。また、通信システム1Fが通信機器300を備えていないため、サーバ装置100Fが通信機器300に対して制御命令を送信しない点において、サーバ装置100とは異なる。これらの点を除き、サーバ装置100Fは、サーバ装置100と同様の構成を有する。それゆえ、サーバ装置100Fの構成については、繰り返し説明しない。   Server apparatus 100F differs from server apparatus 100 in that it can communicate with two home servers 200. Further, since the communication system 1F does not include the communication device 300, the server device 100F differs from the server device 100 in that the server device 100F does not transmit a control command to the communication device 300. Except for these points, the server apparatus 100F has the same configuration as the server apparatus 100. Therefore, the configuration of the server device 100F will not be described repeatedly.

サーバ装置100Fは、2つのホームサーバ200から、エアーコンディショナ401を制御するための機器を選択する。また、サーバ装置100Fは、2つのホームサーバ200から、照明装置402を制御するための機器を選択する。さらに、サーバ装置100Fは、2つのホームサーバ200から、テレビ403を制御するための機器を選択する。   The server device 100F selects a device for controlling the air conditioner 401 from the two home servers 200. In addition, the server device 100F selects a device for controlling the lighting device 402 from the two home servers 200. Furthermore, the server device 100F selects a device for controlling the television 403 from the two home servers 200.

このように、通信機器300を備えずに、ホームサーバを複数備えるシステム構成であっても、通信システム1と同様の効果を得ることができる。   Thus, even if the system configuration includes a plurality of home servers without including the communication device 300, the same effect as that of the communication system 1 can be obtained.

また、上記においては、実施の形態1で説明したサーバ装置100の代わりにサーバ装置100Eを備える構成を例に挙げて説明したが、これに限定されるものではない。たとえば、実施の形態2から5で説明したサーバ装置100A,100B,100C,100Dの代わりにサーバ装置100Eを備える通信システムにも、ホームサーバを複数有する構成を適用できる。   Moreover, in the above, although the structure provided with the server apparatus 100E instead of the server apparatus 100 demonstrated in Embodiment 1 was mentioned as an example, it demonstrated, It is not limited to this. For example, a configuration having a plurality of home servers can be applied to a communication system including the server device 100E instead of the server devices 100A, 100B, 100C, and 100D described in the second to fifth embodiments.

なお、上記においては、通信システム1Fがホームサーバを2つ備える構成を例に挙げて説明しているが、3つ以上であってもよい。また、複数のホームサーバ200のうちの1つを、実施の形態6で説明したホームサーバ200Eとしてもよい。   In the above description, the configuration in which the communication system 1F includes two home servers is described as an example, but may be three or more. One of the plurality of home servers 200 may be the home server 200E described in the sixth embodiment.

<<まとめ>>
(1)以上のように、通信システム(具体的には通信システム1,1A,1B,1C,1D,1E,1F)は、サーバ装置と、複数の制御装置と、被制御装置とを備える。通信システムは、複数の制御装置の各々は、サーバ装置および被制御装置と通信可能に接続されている。サーバ装置は、予め定められた規則に基づいて、複数の制御装置のうちから1つの制御装置を選択する選択手段と、選択された制御装置に対して、被制御装置を制御するための指令を送信する送信手段とを含む。選択された制御装置は、指令に基づき被制御装置を制御する。
<< Summary >>
(1) As described above, the communication system (specifically, the communication systems 1, 1A, 1B, 1C, 1D, 1E, and 1F) includes a server device, a plurality of control devices, and controlled devices. In the communication system, each of the plurality of control devices is communicably connected to the server device and the controlled device. The server device selects, based on a predetermined rule, a selection unit that selects one control device from among a plurality of control devices, and a command for controlling the controlled device to the selected control device. Transmitting means for transmitting. The selected control device controls the controlled device based on the command.

それゆえ、上記通信システムによれば、各々が特定の被制御装置(たとえばエアーコンディショナ401)を制御可能な複数の制御装置(たとえば、ホームサーバ200および通信機器300)のいずれかを用いて当該特定の被制御装置を制御可能となる。   Therefore, according to the communication system, each of the plurality of control devices (for example, the home server 200 and the communication device 300) that can control a specific controlled device (for example, the air conditioner 401) is used. It becomes possible to control a specific controlled device.

(2)通信システム(具体的には、通信システム1,1A,1B,1C,1E,1F)においては、複数の制御装置の各々は、被制御装置に対して送信すべきデータとして指令が存在するか否かを、指定されたタイミングでサーバ装置に対して問い合わせる問合手段と、問い合わせに基づき指令を受信する受信手段とを含む。それゆえ、上記通信システムを、ポーリングを行なうことによって制御命令を取得する制御装置を備える構成に適用させることができる。   (2) In the communication system (specifically, in the communication systems 1, 1A, 1B, 1C, 1E, 1F), each of the plurality of control devices has a command as data to be transmitted to the controlled device. Inquiry means for making an inquiry to the server device at a designated timing and receiving means for receiving an instruction based on the inquiry. Therefore, the communication system can be applied to a configuration including a control device that acquires a control command by polling.

(3)上記指令は、端末装置(たとえばスマートフォン500)からサーバ装置を介して選択された制御装置に送信されるものである。選択手段は、サーバ装置が端末装置から指令を受信した後に当該サーバ装置が最初に受信した問い合せの送信元である制御装置を選択する。それゆえ、サーバ装置は、最初に受信したポーリング信号の送信元でない制御装置に対して制御指令を送信する構成に比べて、被制御装置(たとえばエアーコンディショナ401)に対して、制御指令を早く送信することができる。   (3) The command is transmitted from the terminal device (for example, smartphone 500) to the selected control device via the server device. The selection means selects a control device that is a transmission source of an inquiry that the server device first receives after the server device receives a command from the terminal device. Therefore, the server device issues the control command to the controlled device (for example, the air conditioner 401) earlier than the configuration in which the control command is transmitted to the control device that is not the transmission source of the polling signal received first. Can be sent.

(4)通信システム(具体的には通信システム1A)においては、選択された制御装置が被制御装置の制御を行なえなかった場合には、送信手段は、複数の制御装置のうち、選択された制御装置とは異なる1つの制御装置に対して、指令を送信する。それゆえ、上記通信システムでは、選択された制御装置とは異なる1つの制御装置に対して制御指令を送信しない構成に比べて、通信エラーに対する堅牢性(ネットワークのロバストネス)を高めることができる。   (4) In the communication system (specifically, the communication system 1A), when the selected control device cannot control the controlled device, the transmission means is selected from the plurality of control devices. A command is transmitted to one control device different from the control device. Therefore, in the above communication system, robustness against communication errors (robustness of the network) can be improved as compared with a configuration in which a control command is not transmitted to one control device different from the selected control device.

(5)通信システム(具体的には通信システム1A)においては、選択手段は、選択された制御装置が被制御装置の制御を行なえなかったことを表した信号をサーバ装置が受信した後に当該サーバ装置が最初に受信した問い合せの送信元である制御装置を、異なる1つの制御装置として選択する。それゆえ、通信システムでは、ネットワークのロバストネスを高めつつ、被制御装置(たとえばエアーコンディショナ401)に対して制御指令を早く送信することができる。   (5) In the communication system (specifically, the communication system 1A), the selecting unit receives the signal indicating that the selected control device cannot control the controlled device after the server device receives the signal. The control device that is the transmission source of the inquiry received first by the device is selected as one different control device. Therefore, in the communication system, the control command can be quickly transmitted to the controlled device (for example, the air conditioner 401) while increasing the robustness of the network.

(6)通信システム(具体的には通信システム1B)は、被制御装置とは異なる他の被制御装置をさらに備える。複数の制御装置は、他の被制御装置に接続された第1の制御装置と、他の被制御装置に接続されていない第2の制御装置とを含む。選択手段は、第1の制御装置および第2の制御装置のうちから、第1の制御装置を選択する。サーバ装置は、第2の制御装置対して、問い合せのタイミングをデフォルト値で規定されるタイミングよりも遅らせるタイミング制御手段をさらに含む。それゆえ、通信システムは、タイミングをデフォルト値で規定されるタイミングよりも遅らせない構成(ポーリング間隔を長く設定しない構成)に比べて、サーバ装置に加わる負荷を低減することができる。   (6) The communication system (specifically, the communication system 1B) further includes another controlled device different from the controlled device. The plurality of control devices include a first control device connected to another controlled device and a second control device not connected to the other controlled device. The selection means selects the first control device from the first control device and the second control device. The server device further includes timing control means for delaying the inquiry timing with respect to the second control device from the timing defined by the default value. Therefore, the communication system can reduce the load applied to the server device as compared with a configuration in which the timing is not delayed from the timing defined by the default value (a configuration in which the polling interval is not set longer).

(7)通信システム(具体的には、通信システム1C)においては、サーバ装置は、複数の制御装置のうちのいずれかの制御装置から問い合せを受信できなかった場合、サーバ装置が受信できた問い合わせの送信元の制御装置が送信する問い合せのタイミングをデフォルト値で規定されるタイミングよりも早めるタイミング制御手段をさらに含む。それゆえ、通信システムは、サーバ装置と1つの制御装置との間で通信エラーが生じた場合、タイミングをデフォルト値で規定されるタイミングよりも早めない構成(ポーリング間隔を短くしない構成)に比べて、他の制御装置との間で迅速な通信を行なうことが可能となる。   (7) In the communication system (specifically, the communication system 1C), when the server apparatus cannot receive an inquiry from any one of the plurality of control apparatuses, the inquiry that the server apparatus has received. Further includes timing control means for making the inquiry timing transmitted by the transmission source control device earlier than the timing defined by the default value. Therefore, in the communication system, when a communication error occurs between the server device and one control device, the communication system is compared with a configuration in which the timing is not earlier than the timing specified by the default value (a configuration in which the polling interval is not shortened). Thus, it is possible to perform rapid communication with other control devices.

(8)通信システム(具体的には通信システム1D)においては、選択手段は、複数の制御装置が、第1の通信方式でサーバ装置と通信する第1の制御装置と、第2の通信方式でサーバ装置と通信する第2の制御装置とを含む場合には、規則に基づいた選択として、第2の制御装置を選択する。第1の通信方式は、被制御装置に対して送信すべきデータとして指令が存在するか否かを、指定されたタイミングでサーバ装置に対して問い合わせ、問い合わせに基づき指令を受信する方式である。第2の通信方式は、問合せを行なうことなくサーバ装置から指令を受信する方式である。それゆえ、サーバ装置は、ポーリングを行なうことにより制御指令を制御装置に送信する場合(第1の通信方式)に比べて、被制御装置(たとえばエアーコンディショナ401)に対して、制御指令を早く送信することができる。   (8) In the communication system (specifically, the communication system 1D), the selection means includes a first control device in which a plurality of control devices communicate with the server device in the first communication method, and a second communication method. When the second control device that communicates with the server device is included, the second control device is selected as the selection based on the rule. The first communication method is a method of inquiring the server device at a designated timing whether or not a command exists as data to be transmitted to the controlled device, and receiving the command based on the inquiry. The second communication method is a method of receiving a command from the server device without making an inquiry. Therefore, the server device issues the control command to the controlled device (for example, the air conditioner 401) earlier than when the control command is transmitted to the control device by polling (first communication method). Can be sent.

今回開示された実施の形態は例示であって、上記内容のみに制限されるものではない。本発明の範囲は特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time is an exemplification, and the present invention is not limited to the above contents. The scope of the present invention is defined by the terms of the claims, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1,1A,1B,1C,1D,1E,1F 通信システム、100,100A,100B,100C,100D,100E,100F サーバ装置、111,111D,212,212D,312 受信部、112 記憶部、113,113A,113B,113C,113D 選択部、114,114A,114B,114C,114D,215 送信部、115,115C 設定部、151,251,351 CPU、200,200D,200E ホームサーバ、211,311 問合部、213,313 家電制御部、214,314 制御結果送信部、300 通信機器、400 家庭用電気器具群、401 エアーコンディショナ、402 照明装置、403 テレビ、500 スマートフォン、600 ルータ。   1, 1A, 1B, 1C, 1D, 1E, 1F communication system, 100, 100A, 100B, 100C, 100D, 100E, 100F server device, 111, 111D, 212, 212D, 312 receiving unit, 112 storage unit, 113, 113A, 113B, 113C, 113D Selection unit, 114, 114A, 114B, 114C, 114D, 215 Transmission unit, 115, 115C Setting unit, 151, 251, 351 CPU, 200, 200D, 200E Home server, 211, 311 Query Unit, 213, 313 Home appliance control unit, 214, 314 Control result transmission unit, 300 Communication device, 400 Home appliance group, 401 Air conditioner, 402 Lighting device, 403 TV, 500 Smartphone, 600 router.

Claims (13)

サーバ装置と、複数の制御装置と、被制御装置とを備えた通信システムであって、
前記複数の制御装置の各々は、前記サーバ装置および前記被制御装置と通信可能に接続されており、
前記サーバ装置は、
予め定められた規則に基づいて、前記複数の制御装置のうちから1つの制御装置を選択する選択手段と、
前記選択された制御装置に対して、前記被制御装置を制御するための指令を送信する送信手段とを含み、
前記選択された制御装置は、前記指令に基づき前記被制御装置を制御する、通信システム。
A communication system comprising a server device, a plurality of control devices, and a controlled device,
Each of the plurality of control devices is communicably connected to the server device and the controlled device,
The server device
Selection means for selecting one control device from among the plurality of control devices based on a predetermined rule;
Transmitting means for transmitting a command for controlling the controlled device to the selected control device;
The selected control device is a communication system that controls the controlled device based on the command.
前記複数の制御装置の各々は、
前記被制御装置に対して送信すべきデータとして前記指令が存在するか否かを、指定されたタイミングで前記サーバ装置に対して問い合わせる問合手段と、
前記問い合わせに基づき前記指令を受信する受信手段とを含む、請求項1に記載の通信システム。
Each of the plurality of control devices is
Inquiry means for inquiring of the server device at a specified timing whether or not the command exists as data to be transmitted to the controlled device;
The communication system according to claim 1, further comprising receiving means for receiving the command based on the inquiry.
前記指令は、端末装置から前記サーバ装置を介して前記選択された制御装置に送信されるものであり、
前記選択手段は、前記サーバ装置が前記端末装置から前記指令を受信した後に当該サーバ装置が最初に受信した前記問い合せの送信元である制御装置を選択する、請求項2に記載の通信システム。
The command is transmitted from the terminal device to the selected control device via the server device,
The communication system according to claim 2, wherein the selection unit selects a control device that is a transmission source of the inquiry first received by the server device after the server device receives the command from the terminal device.
前記選択された制御装置が前記被制御装置の制御を行なえなかった場合には、前記送信手段は、前記複数の制御装置のうち、前記選択された制御装置とは異なる1つの制御装置に対して、前記指令を送信する、請求項1から3のいずれか1項に記載の通信システム。   When the selected control device cannot control the controlled device, the transmission means applies to one control device different from the selected control device among the plurality of control devices. The communication system according to any one of claims 1 to 3, wherein the command is transmitted. 前記選択手段は、前記選択された制御装置が前記被制御装置の制御を行なえなかったことを表した信号を前記サーバ装置が受信した後に当該サーバ装置が最初に受信した前記問い合せの送信元である制御装置を、前記異なる1つの制御装置として選択する、請求項4に記載の通信システム。   The selection means is a transmission source of the inquiry first received by the server apparatus after the server apparatus receives a signal indicating that the selected control apparatus cannot control the controlled apparatus. The communication system according to claim 4, wherein a control device is selected as the different one control device. 前記通信システムは、前記被制御装置とは異なる他の被制御装置をさらに備え、
前記複数の制御装置は、前記他の被制御装置に接続された第1の制御装置と、前記他の被制御装置に接続されていない第2の制御装置とを含み、
前記選択手段は、前記第1の制御装置および前記第2の制御装置のうちから、前記第1の制御装置を選択し、
前記サーバ装置は、前記第2の制御装置対して、前記問い合せのタイミングをデフォルト値で規定されるタイミングよりも遅らせるタイミング制御手段をさらに含む、請求項2に記載の通信システム。
The communication system further includes another controlled device different from the controlled device,
The plurality of control devices include a first control device connected to the other controlled device and a second control device not connected to the other controlled device,
The selection means selects the first control device from the first control device and the second control device,
The communication system according to claim 2, wherein the server device further includes a timing control unit that delays the inquiry timing with respect to the second control device from a timing defined by a default value.
前記サーバ装置は、前記複数の制御装置のうちのいずれかの制御装置から前記問い合せを受信できなかった場合、前記サーバ装置が受信できた問い合わせの送信元の制御装置が送信する前記問い合せのタイミングをデフォルト値で規定されるタイミングよりも早めるタイミング制御手段をさらに含む、請求項2または3に記載の通信システム。   When the server device fails to receive the inquiry from any one of the plurality of control devices, the server device transmits the inquiry timing transmitted by the control device that transmitted the inquiry received by the server device. The communication system according to claim 2, further comprising timing control means for making a timing earlier than a timing defined by a default value. 前記選択手段は、前記複数の制御装置が、第1の通信方式で前記サーバ装置と通信する第1の制御装置と、第2の通信方式で前記サーバ装置と通信する第2の制御装置とを含む場合には、前記規則に基づいた選択として、前記第2の制御装置を選択し、
前記第1の通信方式は、前記被制御装置に対して送信すべきデータとして前記指令が存在するか否かを、指定されたタイミングで前記サーバ装置に対して問い合わせ、前記問い合わせに基づき前記指令を受信する方式であり、
前記第2の通信方式は、前記問合せを行なうことなく前記サーバ装置から前記指令を受信する方式である、請求項1に記載の通信システム。
The selection means includes: a first control device in which the plurality of control devices communicate with the server device in a first communication method; and a second control device in communication with the server device in a second communication method. If included, select the second control device as a selection based on the rule,
The first communication method inquires the server device at a designated timing whether or not the command exists as data to be transmitted to the controlled device, and the command is issued based on the inquiry. It is a method to receive,
The communication system according to claim 1, wherein the second communication method is a method of receiving the command from the server device without performing the inquiry.
前記問い合せのタイミングは、前記サーバ装置によって指定される、請求項2,6〜8のいずれか1項に記載の通信システム。   The communication system according to claim 2, wherein the inquiry timing is specified by the server device. 前記問い合わせのタイミングは、時間間隔または時刻により指定される、請求項9に記載の通信システム。   The communication system according to claim 9, wherein the inquiry timing is specified by a time interval or a time. 複数の制御装置と通信するサーバ装置であって、
前記複数の制御装置の各々は、前記サーバ装置から受信した指令に基づき、被制御装置を制御可能であって、
前記サーバ装置は、
予め定められた規則に基づいて、前記複数の制御装置のうちから1つの制御装置を選択する選択手段と、
前記選択された制御装置に対して、前記指令を送信する送信手段と備える、サーバ装置。
A server device that communicates with a plurality of control devices,
Each of the plurality of control devices can control the controlled device based on a command received from the server device,
The server device
Selection means for selecting one control device from among the plurality of control devices based on a predetermined rule;
The server apparatus provided with the transmission means which transmits the said instruction | command with respect to the said selected control apparatus.
複数の制御装置と通信するサーバ装置における通信方法であって、
前記複数の制御装置の各々は、前記サーバ装置から受信した指令に基づき、被制御装置を制御可能であって、
前記通信方法は、
予め定められた規則に基づいて、前記複数の制御装置のうちから1つの制御装置を選択するステップと、
前記選択された制御装置に対して、前記指令を送信するステップとを備える、通信方法。
A communication method in a server device that communicates with a plurality of control devices,
Each of the plurality of control devices can control the controlled device based on a command received from the server device,
The communication method is:
Selecting one control device from the plurality of control devices based on a predetermined rule;
Transmitting the command to the selected control device.
複数の制御装置と通信するサーバ装置を制御するためのプログラムであって、
前記複数の制御装置の各々は、前記サーバ装置から受信した指令に基づき、被制御装置を制御可能であって、
前記プログラムは、
予め定められた規則に基づいて、前記複数の制御装置のうちから1つの制御装置を選択するステップと、
前記選択された制御装置に対して、前記指令を送信するステップとを、前記サーバ装置のプロセッサに実行させる、プログラム。
A program for controlling a server device that communicates with a plurality of control devices,
Each of the plurality of control devices can control the controlled device based on a command received from the server device,
The program is
Selecting one control device from the plurality of control devices based on a predetermined rule;
The program which makes the processor of the said server apparatus perform the step which transmits the said instruction | command with respect to the said selected control apparatus.
JP2013107820A 2013-05-22 2013-05-22 Communication system, server device, communication method, and program Pending JP2014230064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013107820A JP2014230064A (en) 2013-05-22 2013-05-22 Communication system, server device, communication method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013107820A JP2014230064A (en) 2013-05-22 2013-05-22 Communication system, server device, communication method, and program

Publications (1)

Publication Number Publication Date
JP2014230064A true JP2014230064A (en) 2014-12-08

Family

ID=52129545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013107820A Pending JP2014230064A (en) 2013-05-22 2013-05-22 Communication system, server device, communication method, and program

Country Status (1)

Country Link
JP (1) JP2014230064A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017103981A (en) * 2015-12-04 2017-06-08 日本電信電話株式会社 Electric power demand control system and controller
CN109710339A (en) * 2018-12-30 2019-05-03 联想(北京)有限公司 Information processing method and device
JP2022026356A (en) * 2020-07-30 2022-02-10 パナソニックIpマネジメント株式会社 Home equipment control system and control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017103981A (en) * 2015-12-04 2017-06-08 日本電信電話株式会社 Electric power demand control system and controller
CN109710339A (en) * 2018-12-30 2019-05-03 联想(北京)有限公司 Information processing method and device
JP2022026356A (en) * 2020-07-30 2022-02-10 パナソニックIpマネジメント株式会社 Home equipment control system and control method
JP7489662B2 (en) 2020-07-30 2024-05-24 パナソニックIpマネジメント株式会社 Home appliance control system and control method

Similar Documents

Publication Publication Date Title
KR100884142B1 (en) Device control system, method and apparatus for server-based or peer-to-peer network environment
US20120331156A1 (en) Wireless control system, methods and apparatus
US9960959B2 (en) Methods and systems for transmitting information between electronic devices
US20030100962A1 (en) Appliance control system and method using mobile communications terminal, and home gateway
EP2461523B1 (en) Systems and methods for operating an appliance control device for an appliance
MX2012013859A (en) Backup and restore of network configuration data using a remote controller device.
JP2006501751A (en) Control device in home network environment
JP2008040858A (en) Information processing apparatus and information processing system
CN103856374A (en) Data transmission method, terminal and home interconnected system
CN110012527B (en) Awakening method and electronic equipment
US9491082B2 (en) Main electronic device for communicating within a network and method for operating a main electronic device for communicating within the network
US20200213663A1 (en) Renderer device, renderer playback system and information updating method
EP2954656A1 (en) Configuring interaction control in multi-controller network
JP2014230064A (en) Communication system, server device, communication method, and program
US9584627B2 (en) Control device, control system, and control method
KR100912537B1 (en) Remote control method of IP terminal and system
JP5714067B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM
US20090172133A1 (en) Control points for controlling devices in a network
CN114785913B (en) Display device and device information processing method
WO2025118119A1 (en) Fast screen projection
TWI650974B (en) Wireless system data transmission method
JP2015033034A (en) Communication system, server device, control method, and program
JP2019174987A (en) Communication adapter and firmware update method
TW201911818A (en) Data transmission method of wireless system including a server, a relay apparatus and at least one device
JP2017143329A (en) Content distribution server and content reproduction device