JP2015033034A - Communication system, server device, control method, and program - Google Patents

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

Info

Publication number
JP2015033034A
JP2015033034A JP2013162244A JP2013162244A JP2015033034A JP 2015033034 A JP2015033034 A JP 2015033034A JP 2013162244 A JP2013162244 A JP 2013162244A JP 2013162244 A JP2013162244 A JP 2013162244A JP 2015033034 A JP2015033034 A JP 2015033034A
Authority
JP
Japan
Prior art keywords
command
controller
control
server device
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013162244A
Other languages
Japanese (ja)
Other versions
JP5689156B2 (en
Inventor
中村 雅也
Masaya Nakamura
雅也 中村
太一郎 森下
Taichiro Morishita
太一郎 森下
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 JP2013162244A priority Critical patent/JP5689156B2/en
Publication of JP2015033034A publication Critical patent/JP2015033034A/en
Application granted granted Critical
Publication of JP5689156B2 publication Critical patent/JP5689156B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication system capable of transmitting a control command earlier than a conventional one while using communication processing by use of polling.SOLUTION: A controller 200 inquires of a server device 100 at designated timing whether or not a control command for controlling a control object device exists in the server device 100. That is, the controller 200 performs polling. The server device 100 receives the control command from a smart phone 500. The server device 100 transmits the control command to the controller 200 in response to the polling. If the control command has been received, the server device 100 transmits a polling request command to have the controller 200 perform polling to the controller 200 in order to transmit the control command to the controller 200. The controller 200 performs polling earlier than the designated timing on the basis of the reception of the polling request command.

Description

本発明は、通信システム、サーバ装置、制御方法、およびプログラムに関する。特に、家庭用電気器具等の被制御装置を制御するための通信システム、通信システムを構成するサーバ装置、通信装置における制御方法、サーバ装置における制御方法、およびサーバ装置を制御するためのプログラムに関する。   The present invention relates to a communication system, a server device, a control 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 control method for the communication device, a control method for the server device, and a program for controlling the server device.

従来、家庭用電気器具から受信するポーリング信号に基づき、当該家庭用電気器具にユーザ端末から受信した制御指令を送信する遠隔制御システムが知られている。   Conventionally, a remote control system that transmits a control command received from a user terminal to a household electric appliance based on a polling signal received from the household electric appliance is known.

たとえば、特許文献1には、当該遠隔制御システムとして、制御情報格納手段と、判定手段と、割当手段とを備える構成が開示されている。当該判定手段は、情報家電機器から、第1のタイムスロットにおいて、機器識別情報と初期ポーリング間隔とを含むポーリング信号を受信したことに応じて、制御情報格納手段を参照し、予め定めた制御情報有無判定時間内に、情報家電機器に対する制御情報の受信があったか否かを判定する。また、上記割当手段は、制御情報の受信があった場合に、前記第1のタイムスロットから、前記初期ポーリング間隔を所定の時間長さだけ短縮した時間だけ後の第2のタイムスロットを、次にポーリング信号を送出するタイムスロットとして情報家電機器に割り当てる。   For example, Patent Document 1 discloses a configuration including a control information storage unit, a determination unit, and an allocation unit as the remote control system. The determination means refers to the control information storage means in response to receiving the polling signal including the device identification information and the initial polling interval in the first time slot from the information home appliance, and determines predetermined control information. It is determined whether or not control information for the information home appliance has been received within the presence / absence determination time. In addition, when the control information is received, the allocating unit follows the second time slot after the first time slot by a time obtained by shortening the initial polling interval by a predetermined time length. Is assigned to the information home appliance as a time slot for sending a polling signal.

特開2011−166626号公報JP 2011-166626 A 特開2009−110300号公報JP 2009-110300 A

しかしながら、ポーリングを用いた通信処理では、リアルタイムでの遠隔制御を行なうことはできない。つまり、制御指令が実行されるまでに時間を要する。また、常時接続の通信方式を利用して制御指令を送信することも技術的には可能となってきたが、常時接続の通信方式では通信の切断が度々発生する。この場合には、制御指令を確実に送信できるとは言い難い。   However, in the communication processing using polling, real-time remote control cannot be performed. That is, it takes time until the control command is executed. In addition, although it has been technically possible to transmit a control command using an always-connected communication method, communication is frequently disconnected in the always-connected communication method. In this case, it is difficult to say that the control command can be transmitted reliably.

本願発明は、上記の問題点に鑑みなされたものであって、その目的は、ポーリングを用いた通信処理を利用しつつも、従来よりも制御指令を早期に送信可能な通信システム、通信システムを構成するサーバ装置、通信装置における制御方法、サーバ装置における制御方法、およびサーバ装置を制御するためのプログラムを提供することにある。   The present invention has been made in view of the above problems, and its purpose is to provide a communication system and a communication system capable of transmitting a control command earlier than before while using communication processing using polling. The present invention provides a server device, a control method in a communication device, a control method in a server device, and a program for controlling the server device.

本発明のある局面に従うと、通信システムは、サーバ装置と、被制御装置を制御する制御装置とを備える。制御装置は、被制御装置を制御するための第1の指令がサーバ装置に存在するか否かを、指定されたタイミングでサーバ装置に問い合わせる。サーバ装置は、第1の指令を電子機器から受信する受信手段と、問い合わせに対して、第1の指令を制御装置に送信する送信手段とを含む。送信手段は、受信手段によって第1の指令が受信された場合、第1の指令を制御装置に送信するために、問い合わせを制御装置に実行させる第2の指令を制御装置に対して送信する。制御装置は、第2の指令を受信したことに基づき、指定されたタイミングよりも早いタイミングで問い合わせを行なう。   According to an aspect of the present invention, a communication system includes a server device and a control device that controls a controlled device. The control device inquires of the server device at a designated timing whether or not the first command for controlling the controlled device exists in the server device. The server device includes a receiving unit that receives the first command from the electronic device, and a transmission unit that transmits the first command to the control device in response to the inquiry. When the first command is received by the receiving unit, the transmission unit transmits a second command for causing the control device to execute an inquiry to the control device in order to transmit the first command to the control device. The control device makes an inquiry at a timing earlier than the designated timing based on the reception of the second command.

好ましくは、送信手段は、第2の指令を、制御装置との常時接続によるデータ通信によって制御装置に送信する。   Preferably, the transmission means transmits the second command to the control device by data communication based on a constant connection with the control device.

好ましくは、送信手段は、第1の指令が第1の種別の指令である場合には、制御装置に対して第2の指令を1回送信する。送信手段は、第1の指令が第2の種別の指令である場合には、制御装置に対して第2の指令を複数回送信する。   Preferably, when the first command is a first type command, the transmission means transmits the second command once to the control device. The transmitting means transmits the second command to the control device a plurality of times when the first command is a second type command.

好ましくは、送信手段は、第1の指令が第2の種別である場合には、制御装置に対して第2の指令を2回送信する。送信手段は、1回目の第2の指令に基づく問い合わせに応じた第1の指令の送信が終了した後に、2回目の第2の指令を制御装置に対して送信する。   Preferably, the transmission means transmits the second command to the control device twice when the first command is of the second type. The transmission means transmits the second command for the second time to the control device after the transmission of the first command in response to the inquiry based on the second command for the first time is completed.

好ましくは、問い合せのタイミングは、サーバ装置によって指定される。
本発明の他の局面に従うと、サーバ装置は、電子機器と、被制御装置を制御する制御装置と通信する。被制御装置を制御するための第1の指令がサーバ装置に存在するか否かが、指定されたタイミングで制御装置からサーバ装置に問い合わされる。サーバ装置は、第1の指令を電子機器から受信する受信手段と、問い合わせに対して、第1の指令を制御装置に送信する送信手段とを備える。送信手段は、受信手段によって第1の指令が受信された場合、第1の指令を制御装置に送信するために、問い合わせを制御装置に実行させる第2の指令を制御装置に対して送信する。
Preferably, the inquiry timing is specified by the server device.
According to another aspect of the present invention, the server device communicates with an electronic device and a control device that controls the controlled device. Whether the first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing. The server device includes a receiving unit that receives the first command from the electronic device, and a transmission unit that transmits the first command to the control device in response to the inquiry. When the first command is received by the receiving unit, the transmission unit transmits a second command for causing the control device to execute an inquiry to the control device in order to transmit the first command to the control device.

本発明のさらに他の局面に従うと、制御方法は、サーバ装置と、被制御装置を制御する制御装置とを備える通信システムにおいて実行される。制御方法は、制御装置が、被制御装置を制御するための第1の指令がサーバ装置に存在するか否かを、指定されたタイミングでサーバ装置に問い合わせるステップと、サーバ装置が、第1の指令を電子機器から受信するステップと、第1の指令が受信された場合、サーバ装置が、第1の指令を制御装置に送信するために、問い合わせを制御装置に実行させる第2の指令を制御装置に対して送信するステップと、制御装置が、第2の指令を受信したことに基づき、指定されたタイミングよりも早いタイミングで問い合わせを行なうステップとを備える。   When the further another situation of this invention is followed, the control method is performed in a communication system provided with the server apparatus and the control apparatus which controls a to-be-controlled device. In the control method, the control device inquires of the server device at a designated timing whether or not the first command for controlling the controlled device exists in the server device, and the server device A step of receiving a command from the electronic device; and a second command for causing the control device to execute an inquiry in order for the server device to transmit the first command to the control device when the first command is received. A step of transmitting to the device, and a step of making an inquiry at a timing earlier than the designated timing based on the reception of the second command by the control device.

本発明のさらに他の局面に従うと、制御方法は、電子機器と、被制御装置を制御する制御装置と通信するサーバ装置において実行される。被制御装置を制御するための第1の指令がサーバ装置に存在するか否かが、指定されたタイミングで制御装置からサーバ装置に問い合わされる。制御方法は、第1の指令を電子機器から受信するステップと、第1の指令が受信された場合、第1の指令を制御装置に送信するために、問い合わせを制御装置に実行させる第2の指令を制御装置に対して送信するステップとを備える。   If the further another situation of this invention is followed, the control method is performed in the server apparatus which communicates with an electronic device and the control apparatus which controls a to-be-controlled device. Whether the first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing. The control method includes a step of receiving a first command from the electronic device, and a second method of causing the control device to execute an inquiry in order to transmit the first command to the control device when the first command is received. Transmitting a command to the control device.

本発明のさらに他の局面に従うと、プログラムは、電子機器と、被制御装置を制御する制御装置と通信するサーバ装置を制御する。被制御装置を制御するための第1の指令がサーバ装置に存在するか否かが、指定されたタイミングで制御装置からサーバ装置に問い合わされる。プログラムは、第1の指令を電子機器から受信するステップと、第1の指令が受信された場合、第1の指令を制御装置に送信するために、問い合わせを制御装置に実行させる第2の指令を制御装置に対して送信するステップとを、サーバ装置のプロセッサに実行させる。   When the further another situation of this invention is followed, a program controls the server apparatus which communicates with an electronic device and the control apparatus which controls a to-be-controlled apparatus. Whether the first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing. The program includes a step of receiving a first command from the electronic device, and a second command for causing the control device to execute an inquiry in order to transmit the first command to the control device when the first command is received. Is transmitted to the control device by the processor of the server device.

本発明によれば、ポーリングを用いた通信処理を利用しつつも、従来よりも制御指令を早期に送信可能となる。   According to the present invention, a control command can be transmitted earlier than in the past while using communication processing using polling.

通信システム1の概略構成を表した図である。1 is a diagram illustrating a schematic configuration of a communication system 1. FIG. 通信システム1における処理の概要を説明するためのシーケンスチャートである。3 is a sequence chart for explaining an overview 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 controller 200. FIG. 図2に示した通信処理G1の詳細を説明するための図である。It is a figure for demonstrating the detail of the communication process G1 shown in FIG. 状態更新処理を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating a state update process. 機器制御処理を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating apparatus control processing. サーバ装置100とコントローラ200との間の通信処理G1と、当該通信処理G1に基づくコントローラ200とエアーコンディショナ401との間の通信の一例とを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the communication process G1 between the server apparatus 100 and the controller 200, and an example of the communication between the controller 200 and the air conditioner 401 based on the said communication process G1. サーバ装置100とコントローラ200との間の他の通信処理G1’と、当該通信処理G1’に基づくコントローラ200とエアーコンディショナ401との間の通信処理とを説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the other communication process G1 'between the server apparatus 100 and the controller 200, and the communication process between the controller 200 and the air conditioner 401 based on the said communication process G1'. 図9における通信処理G1’の一例の詳細を説明するためのシーケンスチャートである。10 is a sequence chart for explaining details of an example of a communication process G1 ′ in FIG. 9. 図8における通信処理G1の一例の詳細を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the detail of an example of the communication process G1 in FIG. 図8における通信処理G1の他の例の詳細を説明するためのシーケンスチャートである。It is a sequence chart for demonstrating the detail of the other example of the communication process G1 in FIG. 図10〜図12における第1の判断処理の詳細を説明するためのフローチャートである。13 is a flowchart for explaining details of a first determination process in FIGS. 10 to 12; 図10〜図12における第2の判断処理の詳細を説明するためのフローチャートである。13 is a flowchart for explaining details of a second determination process in FIGS. サーバ装置100の機能的構成を説明するための図である。3 is a diagram for describing a functional configuration of a server apparatus 100. FIG. 通信システム1Aの概略構成を表した図である。It is a figure showing schematic structure of communication system 1A. コントローラ300のハードウェア構成の典型例を表した図である。3 is a diagram illustrating a typical example of a hardware configuration of a controller 300. FIG. 通信システム1Bの概略構成を表した図である。It is a figure showing the schematic structure of the communication system 1B.

以下、図面を参照しつつ、本発明の各実施の形態に係る通信システムについて説明する。また、以下の説明では、同一の部材には同一の参照符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。
[実施の形態1]
<A.システム構成>
図1は、本実施の形態に係る通信システム1の概略構成を表した図である。図1を参照して、通信システム1は、サーバ装置100と、コントローラ200と、家庭用電気器具群400と、端末装置としてのスマートフォン500と、ルータ600とを備える。家庭用電気器具群400は、複数の家庭用電気器具(被制御装置)として、エアーコンディショナ401と、照明装置402と、テレビ403とを含む。なお、エアーコンディショナ401、照明装置402、およびテレビ403は、被制御装置の一例であって、これに限定されるものではない。
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.
[Embodiment 1]
<A. 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 includes a server device 100, a controller 200, a household electric appliance group 400, a smartphone 500 as a terminal device, and a router 600. 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.

ルータ600と、コントローラ200と、各家庭用電気器具401〜403とは、宅内に設置されている。サーバ装置100は、宅外に設置されている。また、本実施の形態では、スマートフォン500は、宅外にいるユーザに所持されているものとして説明する。   The router 600, the controller 200, and the 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.

スマートフォン500は、サーバ装置100と通信可能に接続されている。サーバ装置100は、ルータ600を介して、コントローラ200と通信可能に接続されている。コントローラ200は、サーバ装置100および各家庭用電気器具401〜403と通信可能に接続されている。   Smartphone 500 is connected to server device 100 so as to be communicable. The server device 100 is connected to the controller 200 via the router 600 so as to be communicable. The controller 200 is communicably connected to the server device 100 and each household appliance 401-403.

サーバ装置100は、ポーリングを利用した双方向通信と、常時接続を利用した双方向通信とを選択的に利用して、ルータ600を介してコントローラ200と通信する。通信システム1では、常時接続を利用することにより、ポーリングを行なうことなく双方向通信ができる。以下では、常時接続を利用した通信方式として、ウェブソケット(Web Socket)を用いる例を説明する。   The server apparatus 100 communicates with the controller 200 via the router 600 by selectively using bidirectional communication using polling and bidirectional communication using always-on connection. In the communication system 1, bidirectional communication can be performed without performing polling by using always-on connection. Below, the example which uses a web socket (Web Socket) as a communication system using constant connection is demonstrated.

サーバ装置100は、ポーリングを利用した双方向通信およびウェブソケットを用いた双方向通信の各々において、一例として、XML(Extensible Markup Language)等のマークアップ言語を用いた通信仕様に基づき、コントローラ200と通信する。なお、サーバ装置100は、JSON(JavaScript(登録商標) Object Notation)等の非マークアップ言を用いた通信仕様に基づき、コントローラ200と通信してもよい。通信に用いるデータの形式は、特に限定されるものではない。   For example, in each of bidirectional communication using polling and bidirectional communication using a web socket, the server apparatus 100 is connected to the controller 200 based on a communication specification using a markup language such as XML (Extensible Markup Language). connect. Note that the server device 100 may communicate with the controller 200 based on communication specifications using non-markup words such as JSON (JavaScript (registered trademark) Object Notation). The format of data used for communication is not particularly limited.

ポーリングを利用した双方向通信方式においては、コントローラ200は、家庭用電気器具を制御するための制御指令が存在するか否かを、指定されたタイミングでサーバ装置100に対して問い合わせ(つまり、ポーリングを行ない)、当該問い合わせに基づき制御指令を受信する。   In the two-way communication method using polling, the controller 200 inquires of the server device 100 at a designated timing (that is, polling) as to whether or not there is a control command for controlling household appliances. The control command is received based on the inquiry.

以下においては、問合せのタイミングのデフォルト値がコントローラ200において予め指定(決定)されており、サーバ装置100が必要に応じてデフォルト値以外のタイミングで問い合せを行なうようにコントローラ200に対して指令を送信する構成を例に挙げて説明する。具体的には、ポーリングの送信についての時間間隔がコントローラ200において規定されており、サーバ装置100が、デフォルト値以外のタイミングにおいてポーリングを実行させるために、ウェブソケットを用いた通信によってポーリングを実行させるための指令(ポーリング要求指令)をコントローラ200に送信する構成を例に挙げて説明する。ポーリング要求指令を送信するためのトリガ等については、後述する。   In the following, the default value of the inquiry timing is designated (determined) in advance in the controller 200, and a command is sent to the controller 200 so that the server apparatus 100 makes an inquiry at a timing other than the default value as necessary. The configuration to be described will be described as an example. Specifically, a time interval for polling transmission is defined in the controller 200, and the server apparatus 100 executes polling by communication using a web socket in order to execute polling at a timing other than the default value. A configuration for transmitting a command (polling request command) to the controller 200 will be described as an example. A trigger or the like for transmitting the polling request command will be described later.

なお、ポーリング要求指令が送信されることによりポーリングが行なわれる場合を含み、次回の問い合わせのタイミングは、サーバ装置100によって毎回指定される構成であってもよい。つまり、ポーリングのタイミングは、サーバ装置100によって都度指定される構成としてもよい。問い合わせのタイミングは、たとえば、時間間隔または時刻により指定され得る。   In addition, the timing of the next inquiry may be designated every time by the server apparatus 100, including the case where polling is performed by transmitting a polling request command. 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は、ポーリング要求指令が送信されることによりポーリングが行なわれる場合を除き、指定されたタイミングの一例として予め定められた時間間隔で、サーバ装置100に対してポーリングを行なうものとして説明を行なう。すなわち、実際には、ポーリングの時間間隔は、一定範囲のランダム要素が含まれるため、正確には予め定められ時間間隔とはならない。たとえば、次回の問い合わせのタイミングがサーバ装置100によって毎回指定される構成においては、でサーバ装置100から指定される時間は、たとえば15分間隔といった固定された値ではなく、サーバ装置100への負荷を加味して、15分前後といったランダム要素が考慮された値となる。また、上述したように問合せのタイミングのデフォルト値がコントローラ200において予め指定されている構成であっても、ランダム要素が考慮される。しかしながら、以下の説明では、説明を簡略化し、理解を容易とするために、当該ランダム要素を考慮しないで説明を行なう。   In the following, for the sake of simplification of description, the controller 200 uses a server at a predetermined time interval as an example of designated timing except when polling is performed by transmitting a polling request command. The description will be made assuming that the device 100 is polled. 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 controller 200, random elements are considered. 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のように汎用の通信プロトコルによるものではなく、独自の通信プロトコルにより実現してもよい。なお、コントローラ200は、具体例を挙げれば、ホームサーバである。   The controller 200 communicates with the home appliances 401 to 403 using a communication protocol including a control protocol for a smart house and a sensor net protocol. The controller 200 communicates with each household electric appliance 401-403 by ECHONET Lite (trademark), for example. However, the communication between the controller 200 and the household electric appliances 401 to 403 may be realized not by a general-purpose communication protocol like ECHONET Lite but by an original communication protocol. Note that the controller 200 is a home server to give a specific example.

本実施の形態では、説明の便宜上、各家庭用電気器具401〜403がECHONETLiteによる通信を可能とする機能を内蔵しているものとして説明する。なお、家庭用電気器具がECHONET Liteによる通信を可能とする機能を内蔵していない場合には、当該機能を実現するためのアダプタを家庭用電気器具に通信可能に接続すればよい。   In this embodiment, for convenience of explanation, it is assumed that each of the household electric appliances 401 to 403 has a 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は、制御指令をスマートフォン500から受信した場合には、ポーリングに対する応答として、コントローラ200に当該制御指令を送信する。この場合、コントローラ200は、受信した制御指令に基づき、エアーコンディショナ401と照明装置402とテレビ403とのうち制御指令で指定された1つの家庭用電気器具を制御する。より詳しくは、コントローラ200は、マークアップ言語を用いた制御指令から、ECHONET Liteの通信に必要なデータを抽出する。コントローラ200は、当該抽出したデータを制御対象である家庭用電気器具に送信することより、当該家庭用電気器具を制御する。   When the server apparatus 100 receives a control command from the smartphone 500, the server apparatus 100 transmits the control command to the controller 200 as a response to polling. In this case, based on the received control command, the controller 200 controls one household appliance designated by the control command among the air conditioner 401, the lighting device 402, and the television 403. More specifically, the controller 200 extracts data necessary for ECHONET Lite communication from a control command using a markup language. The controller 200 controls the household appliance by transmitting the extracted data to the household appliance that is a control target.

より詳しくは、サーバ装置100は、スマートフォン500から受信した制御指令に基づき、被制御装置用の制御指令を生成し、当該生成した制御指令をコントローラ200を介して被制御装置に送信する。それゆえ、コントローラ200は、制御指令を生成する処理を行なう必要がなく、上記データの抽出のみを行なうだけでよい。したがって、コントローラ200における処理を簡略化できる。   More specifically, the server device 100 generates a control command for the controlled device based on the control command received from the smartphone 500, and transmits the generated control command to the controlled device via the controller 200. Therefore, the controller 200 does not need to perform a process of generating a control command, and only needs to extract the data. Therefore, the process in the controller 200 can be simplified.

また、以下では、説明の便宜上、主として、スマートフォン500からエアーコンディショナ401を制御する局面に着目して説明する。ただし、通信システム1で行なわれる後述する処理は、エアーコンディショナ401にのみ適用されるものではなく、照明装置402およびテレビ403等の各種の被制御装置に適用できる。   In the following description, for convenience of explanation, the description will be given mainly focusing on the aspect of controlling the air conditioner 401 from the smartphone 500. However, the processing described later performed in the communication system 1 is not applied only to the air conditioner 401 but can be applied to various controlled devices such as the lighting device 402 and the television 403.

<B.処理の概要>
図2は、通信システム1における処理の概要を説明するためのシーケンスチャートである。図2を参照して、シーケンスSQ2において、コントローラ200は、サーバ装置100に対してポーリング(問い合わせ)を行なう。
<B. Outline of processing>
FIG. 2 is a sequence chart for explaining an outline of processing in the communication system 1. Referring to FIG. 2, in sequence SQ2, controller 200 polls (inquires) server apparatus 100.

コントローラ200は、シーケンスSQ2においてポーリングを行なってから時間T1後に(つまり、指定されたタイミングで)、シーケンスSQ4において、サーバ装置100に対して再度ポーリングを行なう。コントローラ200は、シーケンスSQ4においてポーリングを行ってから時間T1後に、シーケンスSQ6において、サーバ装置100に対して再度ポーリングを行なう。なお、時間T1は、一例として、15分である。   Controller 200 polls server apparatus 100 again in sequence SQ4 after time T1 after polling in sequence SQ2 (that is, at a designated timing). Controller 200 polls server apparatus 100 again in sequence SQ6 after time T1 from polling in sequence SQ4. In addition, time T1 is 15 minutes as an example.

シーケンスSQ6においてポーリングを行なってから時間T1が経過していない時点で、サーバ装置100は、スマートフォン500からエアーコンディショナ401を制御するための制御指令を受信する(シーケンスSQ8)。シーケンスSQ10において、サーバ装置100は、制御指令を受信したことに基づき、当該制御指令をコントローラ200に送信するために、ウェブソケットを用いた常時接続の通信により、ポーリングをコントローラ200に実行させるためのポーリング要求指令をコントローラ200に対して送信する。   When time T1 has not elapsed since polling was performed in sequence SQ6, server device 100 receives a control command for controlling air conditioner 401 from smartphone 500 (sequence SQ8). In sequence SQ10, the server device 100 is configured to cause the controller 200 to execute polling by always-on communication using a web socket in order to transmit the control command to the controller 200 based on the reception of the control command. A polling request command is transmitted to the controller 200.

サーバ装置100がポーリング要求指令をコントローラ200に送信したことにより、通信システム1において、ポーリングの送信を含む一連の通信処理G1が実行される。具体的には、シーケンスSQ12において、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ14において、サーバ装置100は、ポーリングを受け付けたことに基づき、スマートフォン500から受信した制御命令をコントローラ200に送信する。   When the server apparatus 100 transmits a polling request command to the controller 200, a series of communication processing G1 including polling transmission is executed in the communication system 1. Specifically, in sequence SQ12, controller 200 polls server device 100. In sequence SQ <b> 14, server device 100 transmits the control command received from smartphone 500 to controller 200 based on accepting the polling.

以上のように、サーバ装置100は、スマートフォン500から制御指令を受信すると、次のポーリングを待たずに、ポーリング要求指令をウェブソケットによってコントローラ200に送信する。また、サーバ装置100は、ポーリングに対する応答として、制御指令をコントローラ200に送信できる。   As described above, when receiving a control command from the smartphone 500, the server device 100 transmits a polling request command to the controller 200 via the web socket without waiting for the next polling. Further, the server device 100 can transmit a control command to the controller 200 as a response to polling.

したがって、通信システム1では、ポーリングを用いた通信処理を利用しつつも、従来のタイミングでポーリングを行なう場合よりも制御指令を早期にコントローラ200およびエアーコンディショナ401に送信可能となる。   Therefore, in the communication system 1, the control command can be transmitted to the controller 200 and the air conditioner 401 earlier than the case where the polling is performed at the conventional timing while using the communication processing using the polling.

また、通信システム1では、定期的に(たとえば15分間隔で)行なわれるポーリングの処理を流用可能であるため、コントローラ200の処理を、ポーリングの処理を流用しない場合に比べて簡易化できる。さらに、ポーリング要求指令のみをウェブソケットにより送信するため、制御指令をウェブソケットを用いて送信する構成に比べて当該ウェブソケットにおける通信処理の負荷を低減することができる。   Moreover, in the communication system 1, since the polling process performed regularly (for example, every 15 minutes) can be diverted, the process of the controller 200 can be simplified compared with the case where the polling process is not diverted. Furthermore, since only the polling request command is transmitted through the web socket, the load of communication processing in the web socket can be reduced as compared with the configuration in which the control command is transmitted using the web socket.

<C.ハードウェア構成>
(c1.サーバ装置100)
図3は、サーバ装置100のハードウェア構成の典型例を表した図である。図3を参照して、サーバ装置100は、主たる構成要素として、プログラムを実行するCPU151と、データを不揮発的に格納するROM152と、CPU151によるプログラムの実行により生成されたデータ、又は入力装置(図示せず)を介して入力されたデータを揮発的に格納するRAM153と、データを不揮発的に格納するHDD154と、LED155と、スイッチ156と、通信IF(Interface)157と、電源回路158と、モニタ159と、操作キー160とを含む。各構成要素は、相互にデータバスによって接続されている。
<C. Hardware configuration>
(C1. Server apparatus 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に対するデータの送信処理およびコントローラ200から送信されたデータの受信処理、並びに、スマートフォン500に対するデータの送信処理およびスマートフォン500から送信されたデータの受信処理を行なう。   The communication IF 157 performs processing for transmitting data to the controller 200 and processing for receiving data transmitted from the controller 200, processing for transmitting data to the smartphone 500, and processing for receiving data transmitted from the smartphone 500.

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.

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

<D.処理の詳細>
(d1.通信処理G1)
図5は、図2に示した通信処理G1の詳細を説明するための図である。詳しくは、図5は、ポーリングを開始することによって行なわれる一連の処理を説明するための図である。
<D. Details of processing>
(D1. Communication processing G1)
FIG. 5 is a diagram for explaining the details of the communication process G1 shown in FIG. Specifically, FIG. 5 is a diagram for explaining a series of processes performed by starting polling.

図5を参照して、シーケンスSQ12において、コントローラ200は、サーバ装置100に対してポーリングを行なう。換言すれば、コントローラ200は、サーバ装置100に対して、指示確認を行なうための確認信号を送信する。   Referring to FIG. 5, in sequence SQ <b> 12, controller 200 polls server device 100. In other words, the controller 200 transmits a confirmation signal for confirming the instruction to the server apparatus 100.

シーケンスSQ14において、サーバ装置100は、コントローラ200に対して、スマートフォン500から受信した制御指令を送信する。換言すれば、サーバ装置100は、コントローラ200に対して、制御を要求するための要求信号を送信する。なお、制御指令には、被制御装置の最新の状態を取得することを指示する状態更新指令、被制御装置の動作状態を変更するための機器制御指令等を含む。動作状態とは、エアーコンディショナ401に関しては、運転または停止、運転種別(冷房、除湿、送風、暖房)、設定温度、風量等を含む。   In sequence SQ <b> 14, server device 100 transmits the control command received from smartphone 500 to controller 200. In other words, the server device 100 transmits a request signal for requesting control to the controller 200. The control command includes a state update command for instructing acquisition of the latest state of the controlled device, a device control command for changing the operating state of the controlled device, and the like. With respect to the air conditioner 401, the operation state includes operation or stop, operation type (cooling, dehumidification, ventilation, heating), set temperature, air volume, and the like.

シーケンスSQ16において、コントローラ200は、サーバ装置100に対して、制御指令に基づく処理を実行した旨を表す応答信号を送信する。シーケンスSQ18において、サーバ装置100は、応答信号を受信したことに基づき、コントローラ200に対して、通信処理G1を終了することを表す終了通知を送信する。   In sequence SQ16, controller 200 transmits to server device 100 a response signal indicating that processing based on the control command has been executed. In sequence SQ18, based on the reception of the response signal, server apparatus 100 transmits an end notification indicating that communication process G1 is to end to controller 200.

なお、上述したように、シーケンスSQ12のポーリングは、予め定められた時間間隔(たとえば15分間隔)で行われる。詳しくは、通信処理G1は、ポーリング要求指令がサーバ装置100からコントローラ200に送信されない限り、当該予め定められた時間間隔で実行される。   As described above, polling of sequence SQ12 is performed at a predetermined time interval (for example, every 15 minutes). Specifically, the communication process G1 is executed at the predetermined time interval unless a polling request command is transmitted from the server apparatus 100 to the controller 200.

(d2.状態更新)
図6は、状態更新処理を説明するためのシーケンスチャートである。詳しくは、図6は、スマートフォン500のユーザがエアーコンディショナ401の状態を取得するための処理の流れを説明するための図である。
(D2. Status update)
FIG. 6 is a sequence chart for explaining the state update process. Specifically, FIG. 6 is a diagram for explaining a flow of processing for the user of the smartphone 500 to acquire the state of the air conditioner 401.

図6を参照して、シーケンスSQ102において、スマートフォン500は、スマートフォン500のユーザの操作に基づき、制御指令を送信する。具体的には、スマートフォン500は、状態更新指令を送信する。シーケンスSQ104において、サーバ装置100は、ウェブソケット通信によって、ポーリング要求指令をコントローラ200に送信する。シーケンスSQ106において、サーバ装置100は、制御指令をサーバ装置100が受け付けたことを表す確認通知と、サーバ装置100において当該制御指令を特定するための指令IDとをスマートフォン500に送信する。   Referring to FIG. 6, in sequence SQ <b> 102, smartphone 500 transmits a control command based on an operation of the user of smartphone 500. Specifically, the smartphone 500 transmits a state update command. In sequence SQ104, server device 100 transmits a polling request command to controller 200 through web socket communication. In sequence SQ106, server device 100 transmits to smartphone 500 a confirmation notification indicating that server device 100 has received the control command, and a command ID for specifying the control command in server device 100.

コントローラ200がポーリング要求指令を受信したことに基づき、通信システム1において、一連の通信処理G21が行なわれる。まず、シーケンスSQ108において、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ110において、サーバ装置100は、スマートフォン500から受信した制御指令(状態更新指令)をコントローラ200に送信する。つまり、サーバ装置100は、被制御装置(エアーコンディショナ401)がどのような状態であるのかを通知するよう要求する状態要求信号を、コントローラ200に送信する。シーケンスSQ112において、コントローラ200は、エアーコンディショナ401の状態を表した応答信号をサーバ装置100に送信する。シーケンスSQ114において、サーバ装置100は、コントローラ200に対して終了通知を送信する。   A series of communication processing G21 is performed in the communication system 1 based on the controller 200 receiving the polling request command. First, in sequence SQ108, controller 200 polls server apparatus 100. In sequence SQ110, server apparatus 100 transmits a control command (state update command) received from smartphone 500 to controller 200. That is, the server apparatus 100 transmits a state request signal for requesting notification of what state the controlled apparatus (air conditioner 401) is to the controller 200. In sequence SQ112, the controller 200 transmits a response signal representing the state of the air conditioner 401 to the server apparatus 100. In sequence SQ <b> 114, server apparatus 100 transmits an end notification to controller 200.

シーケンスSQ116において、スマートフォン500は、スマートフォン500のユーザの操作に基づき、機器状態取得要求を行なう。すなわち、スマートフォン500は、SQ106において受信した指令IDを用いて、サーバ装置100がコントローラ200から取得したエアーコンディショナ401の状態を送信するよう、サーバ装置100に対して指示する。シーケンスSQ118において、サーバ装置100は、エアーコンディショナ401の機器状態をスマートフォン500に送信する。これにより、スマートフォン500のユーザは、エアーコンディショナ401の現在の状態を把握することが可能となる。   In sequence SQ116, the smartphone 500 makes a device state acquisition request based on the operation of the user of the smartphone 500. That is, the smartphone 500 instructs the server device 100 to transmit the state of the air conditioner 401 acquired from the controller 200 by the server device 100 using the command ID received in SQ106. In sequence SQ118, server device 100 transmits the device status of air conditioner 401 to smartphone 500. Thereby, the user of the smartphone 500 can grasp the current state of the air conditioner 401.

(d3.制御指示)
図7は、機器制御処理を説明するためのシーケンスチャートである。詳しくは、図7は、スマートフォン500のユーザがエアーコンディショナ401の動作を制御するための処理の流れを説明するための図である。
(D3. Control instruction)
FIG. 7 is a sequence chart for explaining the device control process. Specifically, FIG. 7 is a diagram for explaining a flow of processing for the user of the smartphone 500 to control the operation of the air conditioner 401.

図7を参照して、シーケンスSQ202において、スマートフォン500は、スマートフォン500のユーザの操作に基づき、制御指令を送信する。具体的には、スマートフォン500は、機器制御指令を送信する。シーケンスSQ204において、サーバ装置100は、ウェブソケット通信によって、ポーリング要求指令をコントローラ200に送信する。シーケンスSQ206において、サーバ装置100は、制御指令をサーバ装置100が受け付けたことを表す確認通知と、サーバ装置100において当該制御指令を特定するための指令IDとをスマートフォン500に送信する。   Referring to FIG. 7, in sequence SQ202, smartphone 500 transmits a control command based on the operation of the user of smartphone 500. Specifically, the smartphone 500 transmits a device control command. In sequence SQ204, server device 100 transmits a polling request command to controller 200 through web socket communication. In sequence SQ206, server device 100 transmits, to smartphone 500, a confirmation notification indicating that server device 100 has accepted the control command, and a command ID for specifying the control command in server device 100.

コントローラ200がポーリング要求指令を受信したことに基づき、通信システム1において、一連の通信処理G31が行なわれる。まず、シーケンスSQ208において、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ210において、サーバ装置100は、スマートフォン500から受信した制御指令(機器制御指令)をコントローラ200に送信する。つまり、サーバ装置100は、被制御装置(エアーコンディショナ401)の動作を機器制御指令に基づいて制御するように要求する制御要求信号を、コントローラ200に送信する。シーケンスSQ212において、コントローラ200は、エアーコンディショナ401の動作を制御したことを表す応答信号をサーバ装置100に送信する。シーケンスSQ214において、サーバ装置100は、コントローラ200に対して終了通知を送信する。   A series of communication processing G31 is performed in the communication system 1 based on the controller 200 receiving the polling request command. First, in sequence SQ208, controller 200 polls server apparatus 100. In sequence SQ210, server device 100 transmits a control command (device control command) received from smartphone 500 to controller 200. That is, the server apparatus 100 transmits a control request signal for requesting to control the operation of the controlled apparatus (air conditioner 401) based on the device control command to the controller 200. In sequence SQ212, the controller 200 transmits a response signal indicating that the operation of the air conditioner 401 has been controlled to the server apparatus 100. In sequence SQ214, server device 100 transmits an end notification to controller 200.

シーケンスSQ216において、サーバ装置100は、再び、ウェブソケット通信によってポーリング要求指令をコントローラ200に送信する。サーバ装置100は、シーケンスSQ210において制御指令を送信してから予め定められた時間経過した後に、当該ポーリング要求指令をコントローラ200に対して送信する。予め定められた時間として、たとえば、200msとすることができる。   In sequence SQ216, server device 100 again transmits a polling request command to controller 200 through web socket communication. Server device 100 transmits the polling request command to controller 200 after a predetermined time has elapsed since the control command was transmitted in sequence SQ210. The predetermined time can be set to 200 ms, for example.

予め定められた時間経過した後にポーリング要求指令をコントローラ200に送信する理由は、制御指令の送信直後ではエアーコンディショナ401の状態が変更させていない虞があるためである。なお、通信システム1において、シーケンスSQ214の後の直後にポーリング要求指令を送信しても上記の問題が生じない場合には、予め定められた時間の経過を待たずにポーリング要求指令を送信するように、サーバ装置100を構成してもよい。   The reason why the polling request instruction is transmitted to the controller 200 after a predetermined time has elapsed is that the state of the air conditioner 401 may not be changed immediately after the transmission of the control instruction. In the communication system 1, if the above problem does not occur even if the polling request command is transmitted immediately after the sequence SQ214, the polling request command is transmitted without waiting for the elapse of a predetermined time. In addition, the server device 100 may be configured.

コントローラ200がポーリング要求指令を受信したことに基づき、通信システム1において、一連の通信処理G22が行なわれる。まず、シーケンスSQ218において、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ220において、サーバ装置100は、状態更新指令をコントローラ200に送信する。つまり、サーバ装置100は、エアーコンディショナ401がどのような状態であるのかを通知するよう要求する状態要求信号を、コントローラ200に送信する。詳しくは、サーバ装置100は、機器制御指令により制御を指示した項目を含めた、エアーコンディショナ401の状態を特定するための全ての項目を送信するよう、コントローラ200に要求する。なお、サーバ装置100を、制御を指示した項目のみを送信するようコントローラ200に要求する構成としてもよい。   Based on the controller 200 receiving the polling request command, a series of communication processing G22 is performed in the communication system 1. First, in sequence SQ218, controller 200 polls server apparatus 100. In sequence SQ220, server device 100 transmits a state update command to controller 200. That is, the server apparatus 100 transmits to the controller 200 a state request signal for requesting notification of what state the air conditioner 401 is in. Specifically, the server device 100 requests the controller 200 to transmit all items for specifying the state of the air conditioner 401, including items for which control is instructed by the device control command. Note that the server apparatus 100 may be configured to request the controller 200 to transmit only items for which control has been instructed.

シーケンスSQ222において、コントローラ200は、エアーコンディショナ401の状態を表した応答信号をサーバ装置100に送信する。シーケンスSQ224において、サーバ装置100は、コントローラ200に対して終了通知を送信する。   In sequence SQ222, the controller 200 transmits a response signal representing the state of the air conditioner 401 to the server apparatus 100. In sequence SQ224, server device 100 transmits an end notification to controller 200.

シーケンスSQ226において、スマートフォン500は、スマートフォン500のユーザの操作に基づき、機器状態取得要求を行なう。すなわち、スマートフォン500は、SQ206において受信した指令IDを用いて、サーバ装置100がコントローラ200から取得したエアーコンディショナ401の状態を送信するよう、サーバ装置100に対して指示する。シーケンスSQ228において、サーバ装置100は、エアーコンディショナ401の機器状態をスマートフォン500に送信する。これにより、スマートフォン500のユーザは、エアーコンディショナ401の現在の状態(動作を制御した後の状態)を把握することが可能となる。   In sequence SQ226, smartphone 500 makes a device state acquisition request based on the operation of the user of smartphone 500. That is, the smartphone 500 instructs the server device 100 to transmit the state of the air conditioner 401 acquired from the controller 200 by the server device 100 using the command ID received in SQ206. In sequence SQ228, server device 100 transmits the device state of air conditioner 401 to smartphone 500. Thereby, the user of the smartphone 500 can grasp the current state of the air conditioner 401 (the state after the operation is controlled).

図6および図7に示したように、サーバ装置100は、スマートフォン500からの制御指令の種別に関わらず、同一内容のポーリング要求指令をコントローラ200に送信する。それゆえ、コントローラ200は、制御指令の種別を判断することなく、ポーリングを行なう。したがって、制御指令の種別の判断を行なう必要がある構成に比べて、コントローラ200における処理を簡略化できる。   As illustrated in FIGS. 6 and 7, the server apparatus 100 transmits a polling request command having the same content to the controller 200 regardless of the type of control command from the smartphone 500. Therefore, the controller 200 performs polling without determining the type of control command. Therefore, the processing in the controller 200 can be simplified as compared with the configuration in which it is necessary to determine the type of the control command.

また、ポーリングの種別は1つのみであるため、ポーリング要求指令においてもポーリングの種別の指定が不要となる。それゆえ、コントローラ200は、ポーリングの種別を判定する必要がなくなる。したがって、ポーリングの種別を判定する必要がある構成に比べて、コントローラ200における処理を簡略化できる。   Also, since there is only one polling type, it is not necessary to specify the polling type even in the polling request command. Therefore, the controller 200 does not need to determine the type of polling. Therefore, the processing in the controller 200 can be simplified as compared with the configuration in which the type of polling needs to be determined.

(d4.被制御装置とコントローラとサーバ装置との間の通信の態様)
図8は、サーバ装置100とコントローラ200との間の通信処理G1と、当該通信処理G1に基づくコントローラ200とエアーコンディショナ401との間の通信の一例とを説明するためのシーケンスチャートである。図8を参照して、シーケンスSQ12において、上述したとおり、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ12の後は、一連の通信処理g11(シーケンスSQ14,SQ302,SQ304,SQ16)が実行される。
(D4. Mode of communication among controlled device, controller and server device)
FIG. 8 is a sequence chart for explaining a communication process G1 between the server apparatus 100 and the controller 200 and an example of a communication between the controller 200 and the air conditioner 401 based on the communication process G1. Referring to FIG. 8, in sequence SQ12, controller 200 polls server device 100 as described above. After sequence SQ12, a series of communication processes g11 (sequences SQ14, SQ302, SQ304, SQ16) are executed.

まず、シーケンスSQ14において、サーバ装置100は、コントローラ200に対して、スマートフォン500から受信した制御指令を送信する。シーケンスSQ302において、コントローラ200は、サーバ装置100から受信した制御指令をエアーコンディショナ401に送る。具体的には、コントローラ200は、サーバ装置100から受信した制御命令からエアーコンディショナ401の制御に用いるデータ(記述)を抽出し、当該抽出されたデータを用いてエアーコンディショナ401を制御する。より具体的には、コントローラ200は、マークアップ言語等で記述された制御命令からECHONET Lite用の制御命令を生成する。シーケンスSQ304において、エアーコンディショナ401は、コントローラ200に対して制御命令に応じた応答信号(状態を表す信号、制御結果を表す信号等)を送信する。   First, in sequence SQ <b> 14, server apparatus 100 transmits a control command received from smartphone 500 to controller 200. In sequence SQ302, the controller 200 sends the control command received from the server apparatus 100 to the air conditioner 401. Specifically, the controller 200 extracts data (description) used for control of the air conditioner 401 from the control command received from the server apparatus 100, and controls the air conditioner 401 using the extracted data. More specifically, the controller 200 generates a control command for ECHONET Lite from a control command described in a markup language or the like. In sequence SQ304, the air conditioner 401 transmits a response signal (a signal indicating a state, a signal indicating a control result, etc.) according to a control command to the controller 200.

シーケンスSQ16において、上述したとおり、コントローラ200は、サーバ装置100に対して、制御指令に基づく処理を実行した旨を表す応答信号を送信する。シーケンスSQ18において、サーバ装置100は、応答信号を受信したことに基づき、コントローラ200に対して、通信処理G1を終了することを表す終了通知を送信する。   In sequence SQ16, as described above, controller 200 transmits a response signal indicating that the processing based on the control command has been executed, to server device 100. In sequence SQ18, based on the reception of the response signal, server apparatus 100 transmits an end notification indicating that communication process G1 is to end to controller 200.

図9は、サーバ装置100とコントローラ200との間の他の通信処理G1’と、当該通信処理G1’に基づくコントローラ200とエアーコンディショナ401との間の通信処理とを説明するためのシーケンスチャートである。   FIG. 9 is a sequence chart for explaining another communication process G1 ′ between the server apparatus 100 and the controller 200 and a communication process between the controller 200 and the air conditioner 401 based on the communication process G1 ′. It is.

図9を参照して、シーケンスSQ12において、上述したとおり、コントローラ200は、サーバ装置100に対してポーリングを行なう。シーケンスSQ12の後は、一連の通信処理g12(シーケンスSQ14A,SQ302A,SQ304A,SQ16A)と、一連の処理g11(シーケンスSQ14,SQ302,SQ304,SQ16)とが、この順に実行される。   Referring to FIG. 9, in sequence SQ12, controller 200 polls server apparatus 100 as described above. After sequence SQ12, a series of communication processes g12 (sequences SQ14A, SQ302A, SQ304A, SQ16A) and a series of processes g11 (sequences SQ14, SQ302, SQ304, SQ16) are executed in this order.

シーケンスSQ14Aにおいて、サーバ装置100は、コントローラ200に対して、指定された制御指令(たとえば、後述する属性情報を要求するための制御指令)を送信する。シーケンスSQ302Aにおいて、上述したとおり、コントローラ200は、サーバ装置100から受信した制御指令をエアーコンディショナ401に送る。シーケンスSQ304Aにおいて、エアーコンディショナ401は、コントローラ200に対して制御命令に応じた応答信号(たとえば属性情報を表す信号)を送信する。シーケンスSQ16Aにおいて、コントローラ200は、サーバ装置100に対して、受信した応答信号に基づく応答信号を送信する。   In sequence SQ14A, server device 100 transmits a designated control command (for example, a control command for requesting attribute information described later) to controller 200. In sequence SQ302A, as described above, controller 200 sends the control command received from server apparatus 100 to air conditioner 401. In sequence SQ304A, air conditioner 401 transmits a response signal (for example, a signal representing attribute information) according to the control command to controller 200. In sequence SQ16A, controller 200 transmits a response signal based on the received response signal to server apparatus 100.

シーケンスSQ14において、サーバ装置100は、コントローラ200に対して、スマートフォン500から受信した制御指令を送信する。シーケンスSQ302において、コントローラ200は、サーバ装置100から受信した制御指令をエアーコンディショナ401に送る。シーケンスSQ304において、エアーコンディショナ401は、コントローラ200に対して制御命令に応じた応答信号(状態を表す信号、制御結果を表す信号等)を送信する。シーケンスSQ18において、サーバ装置100は、応答信号を受信したことに基づき、コントローラ200に対して、通信処理G1を終了することを表す終了通知を送信する。   In sequence SQ <b> 14, server device 100 transmits the control command received from smartphone 500 to controller 200. In sequence SQ302, the controller 200 sends the control command received from the server apparatus 100 to the air conditioner 401. In sequence SQ304, the air conditioner 401 transmits a response signal (a signal indicating a state, a signal indicating a control result, etc.) according to a control command to the controller 200. In sequence SQ18, based on the reception of the response signal, server apparatus 100 transmits an end notification indicating that communication process G1 is to end to controller 200.

なお、図8では通信処理g11を含むシーケンスを説明し、図9では通信処理g11に加えて通信処理g12を含むシーケンスを例に挙げて説明した。しかしながら、被制御装置とコントローラとサーバ装置との間の通信の態様はこれらに限定されるものではない。さらに、通信処理g11,g12以外に、他の一連の通信処理(たとえば図示しない通信処理g13,g14,…)を含む構成であってもよい。   FIG. 8 illustrates a sequence including the communication process g11, and FIG. 9 illustrates a sequence including the communication process g12 in addition to the communication process g11. However, the mode of communication among the controlled device, the controller, and the server device is not limited to these. Further, in addition to the communication processes g11 and g12, another series of communication processes (for example, communication processes g13, g14,... Not shown) may be included.

図10は、図9における通信処理G1’の一例の詳細を説明するためのシーケンスチャートである。詳しくは、図10は、通信処理G1’の典型例である通信処理G41を説明するための図である。   FIG. 10 is a sequence chart for explaining details of an example of the communication process G1 'in FIG. Specifically, FIG. 10 is a diagram for explaining a communication process G41 which is a typical example of the communication process G1 '.

図10を参照して、シーケンスSQ404において、コントローラ200は、サーバ装置100のCPU151に対してポーリングを行なう。シーケンスSQ404の後は、ステップS2において、CPU151は、第1の判断処理を実行する。なお、第1の判断処理の詳細については、後述する(図13)。ステップS2の後、シーケンスSQ406において、CPU151は、コントローラ200に対して、属性情報を要求するための制御指令(属性要求信号)を送信するための処理を実行する。   Referring to FIG. 10, in sequence SQ404, controller 200 polls CPU 151 of server device 100. After sequence SQ404, in step S2, CPU 151 executes a first determination process. Details of the first determination process will be described later (FIG. 13). After step S2, in sequence SQ406, CPU 151 executes processing for transmitting a control command (attribute request signal) for requesting attribute information to controller 200.

シーケンスSQ408において、コントローラ200は、CPU151に対して、制御命令に応じた応答信号(属性情報を表す信号)を送信する。シーケンスSQ408の後、ステップS4において、CPU151は、第2の判断処理を実行する。なお、第2の判断処理の詳細については、後述する(図14)。ステップS4の後、CPU151は、コントローラ200から受信した属性情報をHDD154に格納する。   In sequence SQ408, controller 200 transmits a response signal (a signal indicating attribute information) according to the control command to CPU 151. After sequence SQ408, in step S4, CPU 151 executes a second determination process. Details of the second determination process will be described later (FIG. 14). After step S4, the CPU 151 stores the attribute information received from the controller 200 in the HDD 154.

属性情報とは、被制御装置に関する情報であって、変更されない情報である。具体的には、本実施の形態の場合、属性情報には、ECHONET Liteのプロパティに含まれる、メーカ名、商品名、制御可能プロパティ、状態取得可能プロパティの一部等が含まれる。なお、「制御可能プロパティ」とは、制御可能な項目を表した情報である。「状態取得可能プロパティ」とは、複数の状態を表す項目のうち、取得可能な項目を表した情報である。   The attribute information is information about the controlled device and is information that is not changed. Specifically, in the case of the present embodiment, the attribute information includes a manufacturer name, a product name, a controllable property, a part of a state obtainable property, and the like included in the properties of the ECHONET Lite. The “controllable property” is information representing an item that can be controlled. The “state obtainable property” is information representing an obtainable item among items representing a plurality of states.

シーケンスSQ412において、CPU151は、エアーコンディショナ401の状態の送信を要求する制御命令(状態要求信号)を、コントローラ200に送信する。シーケンスSQ412の後、ステップS6において、CPU151は、再度、第2の判断処理を実行する。ステップS6の後、CPU151は、コントローラ200から受信した状態情報をHDD154に格納する。シーケンスSQ418において、CPU151は、シーケンスSQ414において応答信号を受信したことに基づき、コントローラ200に対して、通信処理G41を終了することを表す終了通知を送信する。   In sequence SQ412, the CPU 151 transmits a control command (state request signal) for requesting transmission of the state of the air conditioner 401 to the controller 200. After sequence SQ412, in step S6, CPU 151 executes the second determination process again. After step S6, the CPU 151 stores the state information received from the controller 200 in the HDD 154. In sequence SQ418, CPU 151 transmits an end notification indicating that communication process G41 is to end to controller 200 based on the reception of the response signal in sequence SQ414.

なお、状態情報とは、被制御装置の動作状態を表す情報である。詳細には、上記状態取得プロパティに沿って取得する被制御装置の状態を表した情報である。本実施の形態では、状態情報とは、上記状態取得可能プロパティのうち、属性情報に関する情報を除いた情報である。   The state information is information that represents the operating state of the controlled device. Specifically, the information represents the state of the controlled device acquired along the state acquisition property. In the present embodiment, the state information is information obtained by excluding information related to attribute information from the above-described state obtainable properties.

図11は、図8における通信処理G1の一例の詳細を説明するためのシーケンスチャートである。詳しくは、図11は、通信処理G1の典型例である通信処理G31を説明するための図である。さらには、図11は、図7に示した通信処理G31の詳細を表した図である。   FIG. 11 is a sequence chart for explaining details of an example of the communication process G1 in FIG. Specifically, FIG. 11 is a diagram for explaining a communication process G31 that is a typical example of the communication process G1. Further, FIG. 11 is a diagram showing details of the communication process G31 shown in FIG.

図11を参照して、シーケンスSQ208において、コントローラ200は、サーバ装置100のCPU151に対してポーリングを行なう。シーケンスSQ208の後、CPU151は、ステップS12において、第1の判断処理を実行する。   Referring to FIG. 11, in sequence SQ208, controller 200 polls CPU 151 of server device 100. After sequence SQ208, CPU 151 executes a first determination process in step S12.

ステップS12の後、シーケンスSQ252において、CPU151は、制御指令(機器制御指令)をHDD154から読み出す。つまり、CPU151は、スマートフォン500から事前に受信し、かつHDD154に格納しておいた機器制御命令を読み出す。シーケンスSQ210において、サーバ装置100は、スマートフォン500から受信した制御指令(機器制御指令)をコントローラ200に送信する。つまり、サーバ装置100は、エアーコンディショナ401の動作を機器制御指令に基づいて制御するように要求する制御要求信号を、コントローラ200に送信する。   After step S12, in sequence SQ252, CPU 151 reads a control command (device control command) from HDD 154. That is, the CPU 151 reads a device control command received in advance from the smartphone 500 and stored in the HDD 154. In sequence SQ210, server device 100 transmits a control command (device control command) received from smartphone 500 to controller 200. That is, the server apparatus 100 transmits a control request signal for requesting to control the operation of the air conditioner 401 based on the device control command to the controller 200.

シーケンスSQ212において、コントローラ200は、エアーコンディショナ401の動作を制御したことを表す応答信号をCPU151に送信する。シーケンスSQ212の後、ステップS14において、CPU151は第2の判断処理を実行する。ステップS14の後、シーケンスSQ214において、CPU151は、コントローラ200に対して終了通知を送信する。   In sequence SQ212, the controller 200 transmits to the CPU 151 a response signal indicating that the operation of the air conditioner 401 has been controlled. After sequence SQ212, in step S14, CPU 151 executes a second determination process. After step S14, in sequence SQ214, CPU 151 transmits an end notification to controller 200.

図12は、図8における通信処理G1の他の例の詳細を説明するためのシーケンスチャートである。詳しくは、図12は、通信処理G1の他の典型例である通信処理G22を説明するための図である。さらには、図12は、図7に示した通信処理G22の詳細を表した図である。   FIG. 12 is a sequence chart for explaining details of another example of the communication process G1 in FIG. Specifically, FIG. 12 is a diagram for explaining a communication process G22 which is another typical example of the communication process G1. Further, FIG. 12 is a diagram showing details of the communication process G22 shown in FIG.

図12を参照して、シーケンスSQ218において、コントローラ200は、サーバ装置100のCPU151に対してポーリングを行なう。シーケンスSQ218の後、ステップS22において、CPU151は、第1の判断処理を実行する。ステップS22の後、シーケンスSQ220において、CPU151は、制御指令として状態更新指令をコントローラ200に送信する。つまり、CPU151は、エアーコンディショナ401がどのような状態であるのかを通知するよう要求する状態要求信号を、コントローラ200に送信する。   Referring to FIG. 12, in sequence SQ218, controller 200 polls CPU 151 of server device 100. After sequence SQ218, in step S22, CPU 151 executes a first determination process. After step S22, in sequence SQ220, CPU 151 transmits a state update command to controller 200 as a control command. That is, the CPU 151 transmits a state request signal for requesting notification of what state the air conditioner 401 is to the controller 200.

シーケンスSQ222において、コントローラ200は、エアーコンディショナ401の状態を表した応答信号(状態情報)をサーバ装置100に送信する。シーケンスSQ222の後、ステップS24において、CPU151は、第2の判断処理を実行する。ステップS24の後、シーケンスSQ262において、CPU151は、コントローラ200から受信した状態情報をHDD154に格納する。シーケンスSQ224において、CPU151は、コントローラ200に対して終了通知を送信する。   In sequence SQ222, the controller 200 transmits a response signal (state information) indicating the state of the air conditioner 401 to the server apparatus 100. After sequence SQ222, in step S24, CPU 151 executes a second determination process. After step S24, in sequence SQ262, CPU 151 stores the status information received from controller 200 in HDD 154. In sequence SQ224, CPU 151 transmits an end notification to controller 200.

図13は、図10〜図12における第1の判断処理の詳細を説明するためのフローチャートである。図13を参照して、ステップS102において、サーバ装置100のCPU151は、HDD154に機器制御指令が格納されているか否かを判断する。CPU151は、機器制御指令が格納されていると判断された場合(ステップS102においてYES)、ステップS108において制御要求信号を送信対象とし、第1の判断処理を終了する。CPU151は、機器制御指令が格納されていないと判断された場合(ステップS102においてNO)、ステップS104において、エアーコンディショナ401の属性情報を取得済みであるか否かを判断する。具体的には、CPU151は、HDD154に属性情報が既に格納されているか否かを判断する。   FIG. 13 is a flowchart for explaining details of the first determination processing in FIGS. 10 to 12. Referring to FIG. 13, in step S <b> 102, CPU 151 of server device 100 determines whether or not a device control command is stored in HDD 154. When CPU 151 determines that the device control command is stored (YES in step S102), CPU 151 sets the control request signal as a transmission target in step S108, and ends the first determination process. When it is determined that the device control command is not stored (NO in step S102), the CPU 151 determines whether or not the attribute information of the air conditioner 401 has been acquired in step S104. Specifically, the CPU 151 determines whether or not attribute information is already stored in the HDD 154.

CPU151は、属性情報を取得済みであると判断した場合(ステップS104においてYES)、ステップS110において状態要求信号を送信対象とし、第1の判断処理を終了する。CPU151は、属性情報を未だ取得していないと判断した場合(ステップS104においてNO)、ステップS106において属性要求信号を送信対象とし、第1の判断処理を終了する。   When CPU 151 determines that the attribute information has been acquired (YES in step S104), it sets the status request signal as a transmission target in step S110, and ends the first determination process. When CPU 151 determines that the attribute information has not yet been acquired (NO in step S104), CPU 151 sets the attribute request signal as a transmission target in step S106, and ends the first determination process.

図14は、図10〜図12における第2の判断処理の詳細を説明するためのフローチャートである。図14を参照して、ステップS202において、CPU151は、属性情報を受信したか否かを判断する。CPU151は、属性情報を受信したと判断した場合(ステップS202においてYES)、ステップS208において当該受信した属性情報をHDD154に格納する。ステップS208の後は、ステップS210において、CPU151は、状態要求信号を送信対象とし、第2の判断処理を終了する。   FIG. 14 is a flowchart for explaining details of the second determination processing in FIGS. 10 to 12. Referring to FIG. 14, in step S202, CPU 151 determines whether or not attribute information has been received. When CPU 151 determines that the attribute information has been received (YES in step S202), CPU 151 stores the received attribute information in HDD 154 in step S208. After step S208, in step S210, the CPU 151 sets the state request signal as a transmission target and ends the second determination process.

CPU151は、属性情報を受信しなかったと判断した場合(ステップS202においてNO)、ステップS204において状態情報を受信したか否かを判断する。CPU151は、属性情報を受信したと判断した場合(ステップS204においてYES),ステップS212において当該受信した状態情報をHDD154に格納する。ステップS212の後は、ステップS214において、CPU151は、終了通知を送信対象として、第2の判断処理を終了する。CPU151は、状態情報を受信しなかったと判断した場合(ステップS204においてNO)、ステップS206において終了通知を送信対象とし、第2の判断処理を終了する。   When CPU 151 determines that attribute information has not been received (NO in step S202), CPU 151 determines whether or not status information has been received in step S204. When CPU 151 determines that the attribute information has been received (YES in step S204), CPU 151 stores the received status information in HDD 154 in step S212. After step S212, in step S214, the CPU 151 ends the second determination process with the end notification as a transmission target. When CPU 151 determines that the status information has not been received (NO in step S204), CPU 151 sets the end notification as a transmission target in step S206, and ends the second determination process.

<E.機能的構成>
図15は、サーバ装置100の機能的構成を説明するための図である。図15を参照して、サーバ装置100は、受信部111と、記憶部112と、送信部113と、受付部1114とを備える。
<E. Functional configuration>
FIG. 15 is a diagram for explaining a functional configuration of the server apparatus 100. Referring to FIG. 15, server apparatus 100 includes a reception unit 111, a storage unit 112, a transmission unit 113, and a reception unit 1114.

(1)上述したように、コントローラ200は、被制御装置を制御するための制御指令がサーバ装置100に存在するか否かを、指定されたタイミングでサーバ装置100に問い合わせる。つまり、コントローラ200は、指定されたタイミングでポーリングを行なう。   (1) As described above, the controller 200 inquires of the server apparatus 100 at a designated timing whether or not the server apparatus 100 has a control command for controlling the controlled apparatus. That is, the controller 200 performs polling at a designated timing.

サーバ装置100の受信部111は、制御指令をスマートフォン500から受信する。詳しくは、受信部111は、制御指令として、機器制御指令、状態更新指令を受信する。記憶部112は、スマートフォン500から受信した制御指令を記憶する。   The receiving unit 111 of the server device 100 receives a control command from the smartphone 500. Specifically, the receiving unit 111 receives a device control command and a state update command as a control command. The storage unit 112 stores the control command received from the smartphone 500.

送信部113は、受信部111によって制御指令が受信された場合、当該制御指令をコントローラ200に送信するために、ポーリング(問い合わせ)をコントローラ200に実行させる指令(つまりポーリング要求指令)をコントローラ200に対して送信する。   When the receiving unit 111 receives a control command, the transmitting unit 113 sends a command (that is, a polling request command) for causing the controller 200 to execute polling (inquiry) to the controller 200 in order to transmit the control command to the controller 200. Send to.

この場合、コントローラ200は、ポーリング要求指令を受信したことに基づき、指定されたタイミングよりも早いタイミングでポーリングを行なう。具体的には、ポーリング要求指令を受信した後、速やかにポーリングを開始する。   In this case, the controller 200 performs polling at a timing earlier than the designated timing based on the reception of the polling request command. Specifically, polling is started immediately after receiving a polling request command.

送信部113は、ポーリングに対して、制御指令をコントローラ200に送信する。つまり、送信部113は、受付部114がポーリングをコントローラ200から受け付けたことに基づき、スマートフォンから事前に受け付けていた制御命令をコントローラ200に送信する。   The transmission unit 113 transmits a control command to the controller 200 in response to polling. That is, based on the reception unit 114 receiving polling from the controller 200, the transmission unit 113 transmits the control command received in advance from the smartphone to the controller 200.

したがって、通信システム1では、ポーリングを用いた通信処理を利用しつつも、従来のタイミングでポーリングを行なう場合よりも制御指令を早期にコントローラ200および被制御装置に送信可能となる。   Therefore, in the communication system 1, the control command can be transmitted to the controller 200 and the controlled device earlier than when polling is performed at the conventional timing while using communication processing using polling.

(2)詳しくは、送信部113は、ポーリング要求指令を、コントローラ200との常時接続によるデータ通信によってコントローラ200に送信する。具体的には、送信部113は、ウェブソケットによりポーリング要求指令をコントローラ200に送信する。したがって、サーバ装置100は、制御指令をリアルタイムにコントローラ200に送信可能となる。   (2) Specifically, the transmission unit 113 transmits a polling request command to the controller 200 by data communication through constant connection with the controller 200. Specifically, the transmission unit 113 transmits a polling request command to the controller 200 through a web socket. Therefore, the server apparatus 100 can transmit a control command to the controller 200 in real time.

(3)送信部113は、制御指令が第1の種別の指令(たとえば、状態更新指令)である場合には、コントローラ200に対してポーリング要求指令を1回送信する。また、送信部113は、制御指令が第2の種別の指令(たとえば、機器制御指令)である場合には、コントローラ200に対してポーリング要求指令を複数回送信する。したがって、サーバ装置100は、制御指令の種別を判断することにより、ポーリング要求指令の送信回数を判断できる。   (3) When the control command is a first type command (for example, a state update command), the transmission unit 113 transmits a polling request command to the controller 200 once. Further, when the control command is a second type command (for example, a device control command), the transmission unit 113 transmits a polling request command to the controller 200 a plurality of times. Therefore, the server apparatus 100 can determine the number of transmissions of the polling request command by determining the type of the control command.

(4)ある局面において、送信部113は、制御指令が上記第2の種別である場合には、コントローラ200に対してポーリング要求指令を2回送信する。送信部113は、1回目のポーリング要求指令に基づくポーリングに応じた制御指令の送信が終了した後に、2回目のポーリング要求指令をコントローラ200に対して送信する。   (4) In a certain situation, when the control command is the second type, the transmission unit 113 transmits a polling request command to the controller 200 twice. The transmission unit 113 transmits the second polling request command to the controller 200 after the transmission of the control command corresponding to the polling based on the first polling request command is completed.

より詳しくは、送信部113は、1回目のポーリング要求指令に基づくポーリングに関する一連の通信処理が終了した後に、2回目のポーリング要求指令をコントローラ200に対して送信する。この点について図7に基づいて説明すれば、送信部113は、シーケンスSQ204におけるポーリング要求指令に基づくポーリングに関する通信処理G31が終了した後に、シーケンスSQ216において、次のポーリング要求指令をコントローラ200に対して送信する。   More specifically, the transmission unit 113 transmits a second polling request command to the controller 200 after a series of communication processes related to polling based on the first polling request command is completed. This will be described with reference to FIG. 7. After the communication process G31 related to polling based on the polling request command in sequence SQ204 is completed, the transmission unit 113 sends the next polling request command to the controller 200 in sequence SQ216. Send.

したがって、サーバ装置100は、1回目のポーリングに基づいた制御指令の送信が終了した後に、速やかに次の制御指令をコントローラ200に送信可能となる。
[実施の形態2]
図16は、本実施の形態に係る通信システム1Aの概略構成を表した図である。図16を参照して、通信システム1Aは、サーバ装置100と、複数のコントローラ300と、家庭用電気器具群400と、端末装置としてのスマートフォン500と、ルータ600とを備える。通信システム1Aは、コントローラ200の代わりに複数のコントローラ300を備える点において、実施の形態1の通信システム1とは異なる。
Therefore, the server device 100 can immediately transmit the next control command to the controller 200 after the transmission of the control command based on the first polling is completed.
[Embodiment 2]
FIG. 16 is a diagram showing a schematic configuration of communication system 1A according to the present embodiment. Referring to FIG. 16, communication system 1 </ b> A includes server device 100, a plurality of controllers 300, a household appliance group 400, a smartphone 500 as a terminal device, and a router 600. The communication system 1A is different from the communication system 1 of the first embodiment in that it includes a plurality of controllers 300 instead of the controller 200.

サーバ装置100は、ルータ600を介して、各コントローラ300と通信可能に接続されている。具体的には、サーバ装置100は、ポーリングを利用した双方向通信と、常時接続を利用した双方向通信とを選択的に利用して、ルータ600を介して各コントローラ300と通信する。各コントローラ300は、ルータ600を介して、サーバ装置100および対応する1つの家庭用電気器具と通信可能に接続されている。   The server device 100 is connected to each controller 300 via the router 600 so as to be communicable. Specifically, the server apparatus 100 communicates with each controller 300 via the router 600 by selectively using bidirectional communication using polling and bidirectional communication using always-on connection. Each controller 300 is connected to the server apparatus 100 and one corresponding household appliance via the router 600 so as to be able to communicate with each other.

各コントローラは、宅内に設置されている。各コントローラ300は、コントローラに接続された家庭用電気器具の動作を制御する。つまり、各コントローラ300は、対応する家庭用電気器具を制御する装置として機能する。各コントローラ300は、実施の形態1のコントローラ200と同様、サーバ装置100に対してポーリングを行なう。詳しくは、各コントローラ300は、コントローラ200について説明したのと同様のポーリング処理を行なう。それゆえ、各コントローラ300のポーリングに関する説明は、ここでは繰り返さない。   Each controller is installed in the house. Each controller 300 controls the operation of household appliances connected to the controller. That is, each controller 300 functions as a device that controls a corresponding household appliance. Each controller 300 polls the server apparatus 100 in the same manner as the controller 200 of the first embodiment. Specifically, each controller 300 performs a polling process similar to that described for controller 200. Therefore, the description regarding the polling of each controller 300 is not repeated here.

なお、各コントローラ300は、対応する家庭用電気器具と離れた位置に設置されていてもよいし、あるいは当該家庭用電気器具に据え付けられていてもよい。また、各コントローラ300は、対応する家庭用電気器具の内部に備え付けられていてもよい。   In addition, each controller 300 may be installed in the position away from the corresponding household electrical appliance, or may be installed in the household electrical appliance. Each controller 300 may be provided inside a corresponding home appliance.

通信システム1Aにおいては、サーバ装置100は、XML等のマークアップ言語を用いた通信仕様、あるいはJSON等の非マークアップ言を用いた通信仕様に基づき、各コントローラ300と通信する。なお、通信に用いるデータの形式は、特に限定されるものではない。   In the communication system 1A, the server device 100 communicates with each controller 300 based on a communication specification using a markup language such as XML or a communication specification using non-markup language such as JSON. The format of data used for communication is not particularly limited.

図17は、コントローラ300のハードウェア構成の典型例を表した図である。図17を参照して、コントローラ300は、主たる構成要素として、プログラムを実行するCPU351と、フラッシュROM等のデータを不揮発的に格納するROM352と、CPU351によるプログラムの実行により生成されたデータ、又は入力装置(図示せず)を介して入力されたデータを揮発的に格納するRAM353と、スイッチ356と、通信IF357と、電源回路358とを含む。各構成要素は、相互にデータバスによって接続されている。   FIG. 17 is a diagram illustrating a typical example of the hardware configuration of the controller 300. Referring to FIG. 17, the controller 300 includes, as main components, a CPU 351 that executes a program, a ROM 352 that stores data such as a flash ROM in a nonvolatile manner, and data generated by execution of the program by the CPU 351 or input. It includes a RAM 353 that volatilely stores data input via a device (not shown), a switch 356, a communication IF 357, and a power supply circuit 358. 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 controller 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は、そのプログラムを実行する。   Processing in the controller 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 constituting the controller 300 shown in the figure is a general one. 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 controller 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.

本実施の形態においても、実施の形態1における通信システム1で得られる効果(利点)と同様の効果を得ることができる。
[実施の形態3]
図18は、本実施の形態に係る通信システム1Bの概略構成を表した図である。図18を参照して、通信システム1Bは、サーバ装置100と、コントローラ200と、コントローラ300と、家庭用電気器具群400と、端末装置としてのスマートフォン500と、ルータ600とを備える。通信システム1Cは、コントローラ300をさらに備える点において、実施の形態1の通信システム1とは異なる。
Also in the present embodiment, the same effect as the effect (advantage) obtained by the communication system 1 in the first embodiment can be obtained.
[Embodiment 3]
FIG. 18 is a diagram showing a schematic configuration of communication system 1B according to the present embodiment. Referring to FIG. 18, the communication system 1B includes a server device 100, a controller 200, a controller 300, a household appliance group 400, a smartphone 500 as a terminal device, and a router 600. The communication system 1C is different from the communication system 1 of the first embodiment in that it further includes a controller 300.

サーバ装置100は、コントローラ200(ホームサーバ)およびコントローラ300(通信機器)と通信可能に接続されている。コントローラ200は、サーバ装置100および各家庭用電気器具401〜403と通信可能に接続されている。コントローラ300は、サーバ装置100およびエアーコンディショナ401と通信可能に接続されている。このように、通信システム1Cでは、サーバ装置100は、コントローラ200を介してエアーコンディショナ401と通信可能に接続されているとともに、コントローラ300を介してエアーコンディショナ401と通信可能に接続されている。   The server device 100 is communicably connected to the controller 200 (home server) and the controller 300 (communication device). The controller 200 is communicably connected to the server device 100 and each household appliance 401-403. The controller 300 is communicably connected to the server device 100 and the air conditioner 401. As described above, in the communication system 1 </ b> C, the server device 100 is communicably connected to the air conditioner 401 via the controller 200 and is communicably connected to the air conditioner 401 via the controller 300. .

サーバ装置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 has one of the controller 200 and the controller 300 as a main body that controls the air conditioner 401 based on a predetermined rule. Select. In this case, the device (the controller 200 or the controller 300) selected by the server device 100 controls the air conditioner 401 based on the received control command. For example, when the controller 300 is selected, the controller 300 interprets a control command using a markup language and controls the air conditioner 401. Further, when the controller 200 is selected, the home appliance is controlled by transmitting the data extracted from the control command to the air conditioner 401 that is the control target in the same manner as described above.

このように、コントローラ200は、各家庭用電気器具401〜403を制御するための制御装置として機能する。また、コントローラ300は、エアーコンディショナ401の動作を制御するための制御装置として機能する。つまり、通信システム1Cでは、2つの制御装置(コントローラ200およびコントローラ300)によって、1つの被制御装置であるエアーコンディショナ401の制御が可能である。   Thus, the controller 200 functions as a control device for controlling each of the household electric appliances 401 to 403. Further, the controller 300 functions as a control device for controlling the operation of the air conditioner 401. That is, in the communication system 1C, it is possible to control the air conditioner 401, which is one controlled device, by two control devices (the controller 200 and the controller 300).

コントローラ300は、実施の形態2で説明したとおり、実施の形態1のコントローラ200と同様、サーバ装置100に対してポーリングを行なう。詳しくは、コントローラ300は、コントローラ200について説明したのと同様のポーリング処理を行なう。それゆえ、コントローラ300のポーリングに関する説明は、ここでは繰り返さない。   As described in the second embodiment, the controller 300 polls the server apparatus 100 as in the controller 200 of the first embodiment. Specifically, the controller 300 performs a polling process similar to that described for the controller 200. Therefore, the description regarding the polling of the controller 300 will not be repeated here.

本実施の形態においても、実施の形態1における通信システム1で得られる効果(利点)と同様の効果を得ることができる。
[実施の形態4]
実施の形態1では、一台のコントローラ200によって複数の家庭用電気器具401〜403を制御する構成を説明した。本実施の形態に係る通信システムでは、複数台のコントローラ(具体的には、ホームサーバ)によって、各家庭用電気器具401〜403を制御する。一例を挙げれば、コントローラ200とは別のコントローラが、複数の家庭用電気器具401〜403のうちの少なくとも1つを制御する。このように、複数台のホームサーバによって家庭用電気器具を個別に制御する構成にも、実施の形態1で説明した処理を適用できる。
[実施の形態5]
本実施の形態に係る通信システムは、サーバ装置100とは別に、データベースサーバ装置を備える。サーバ装置100は、コントローラ200を介して取得した属性情報および状態情報、並びにスマートフォン500から受信した各種の制御指令を、当該データベースサーバ装置に格納する。つまり、サーバ装置100は、HDD154の代わりに、データベースサーバ装置を利用する。このようなシステム構成であっても、実施の形態1で述べた効果と同様の効果を得ることができる。
Also in the present embodiment, the same effect as the effect (advantage) obtained by the communication system 1 in the first embodiment can be obtained.
[Embodiment 4]
In Embodiment 1, the structure which controls the several household appliances 401-403 by the one controller 200 was demonstrated. In the communication system according to the present embodiment, home appliances 401 to 403 are controlled by a plurality of controllers (specifically, home servers). As an example, a controller different from the controller 200 controls at least one of the plurality of household appliances 401 to 403. As described above, the processing described in the first embodiment can be applied to a configuration in which home appliances are individually controlled by a plurality of home servers.
[Embodiment 5]
The communication system according to the present embodiment includes a database server device separately from the server device 100. The server apparatus 100 stores the attribute information and state information acquired via the controller 200 and various control commands received from the smartphone 500 in the database server apparatus. That is, the server apparatus 100 uses a database server apparatus instead of the HDD 154. Even with such a system configuration, the same effects as those described in the first embodiment can be obtained.

<まとめ>
(1)通信システム1は、サーバ装置100と、被制御装置(家庭用電気器具401〜403)を制御する制御装置(コントローラ200)とを備える。
<Summary>
(1) The communication system 1 includes the server device 100 and a control device (controller 200) that controls the controlled devices (home appliances 401 to 403).

前記制御装置は、前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かを、指定されたタイミングで前記サーバ装置に問い合わせる。   The control device inquires of the server device at a designated timing whether or not the first command for controlling the controlled device exists in the server device.

前記サーバ装置は、前記第1の指令を電子機器(スマートフォン500)から受信する受信部111と、前記問い合わせ(ポーリング)に対して、前記第1の指令を前記制御装置に送信する送信部113とを含む。送信部113は、受信部111によって前記第1の指令が受信された場合、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信する。   The server device includes a receiving unit 111 that receives the first command from the electronic device (smart phone 500), and a transmission unit 113 that transmits the first command to the control device in response to the inquiry (polling). including. When the first command is received by the receiving unit 111, the transmission unit 113 transmits a second command that causes the control device to execute the inquiry to transmit the first command to the control device. Sent to the control device.

前記制御装置は、前記第2の指令を受信したことに基づき、前記指定されたタイミングよりも早いタイミングで前記問い合わせを行なう。   The control device makes the inquiry at a timing earlier than the designated timing based on the reception of the second command.

したがって、通信システム1では、ポーリングを用いた通信処理を利用しつつも、従来のタイミングでポーリングを行なう場合よりも制御指令を早期に制御装置および被制御装置に送信可能となる。   Therefore, in the communication system 1, the control command can be transmitted to the control device and the controlled device earlier than the case where the polling is performed at the conventional timing while using the communication processing using polling.

(2)送信部113は、前記第2の指令を、前記制御装置との常時接続によるデータ通信によって前記制御装置に送信する。したがって、サーバ装置100は、制御指令をリアルタイムに制御装置に送信可能となる。   (2) The transmission unit 113 transmits the second command to the control device through data communication based on a constant connection with the control device. Therefore, the server device 100 can transmit the control command to the control device in real time.

(3)送信部113は、前記第1の指令が第1の種別の指令である場合には、前記制御装置に対して前記第2の指令を1回送信する。送信部113は、前記第1の指令が第2の種別の指令である場合には、前記制御装置に対して前記第2の指令を複数回送信する。したがって、サーバ装置100は、制御指令の種別を判断することにより、ポーリング要求指令の送信回数を判断できる。   (3) When the first command is a first type command, the transmission unit 113 transmits the second command once to the control device. When the first command is a second type command, the transmission unit 113 transmits the second command to the control device a plurality of times. Therefore, the server apparatus 100 can determine the number of transmissions of the polling request command by determining the type of the control command.

(4)送信部113は、前記第1の指令が前記第2の種別である場合には、前記制御装置に対して前記第2の指令を2回送信する。送信部113は、1回目の前記第2の指令に基づく前記問い合わせに応じた前記第1の指令の送信が終了した後に、2回目の前記第2の指令を前記制御装置に対して送信する。したがって、サーバ装置100は、1回目のポーリングに基づいた制御指令の送信が終了した後に、速やかに次の制御指令を制御装置に送信可能となる。   (4) When the first command is the second type, the transmission unit 113 transmits the second command to the control device twice. The transmission unit 113 transmits the second command for the second time to the control device after transmission of the first command in response to the inquiry based on the second command for the first time is completed. Therefore, the server device 100 can immediately transmit the next control command to the control device after the transmission of the control command based on the first polling is completed.

(5)前記問い合せのタイミングは、前記サーバ装置によって指定される。この場合、制御装置においては、問い合わせのタイミングを予め設定しておく必要がなくなる。   (5) The inquiry timing is specified by the server device. In this case, the control device does not need to set the inquiry timing in advance.

今回開示された実施の形態は例示であって、上記内容のみに制限されるものではない。本発明の範囲は特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   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 通信システム、100 サーバ装置、111 受信部、112 記憶部、113 送信部、114 受付部、151,251,351 CPU、152,252,352 ROM、153,253,353 RAM、154,254 HDD、200,300 コントローラ、400 家庭用電気器具群、401 エアーコンディショナ、402 照明装置、403 テレビ、500 スマートフォン、600 ルータ、157,257,357 通信IF。   1, 1A, 1B, 1C Communication system, 100 server device, 111 reception unit, 112 storage unit, 113 transmission unit, 114 reception unit, 151, 251, 351 CPU, 152, 252, 352 ROM, 153, 253, 353 RAM 154,254 HDD, 200,300 controller, 400 household appliance group, 401 air conditioner, 402 lighting device, 403 television, 500 smartphone, 600 router, 157,257,357 communication IF.

Claims (9)

サーバ装置と、被制御装置を制御する制御装置とを備える通信システムであって、
前記制御装置は、前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かを、指定されたタイミングで前記サーバ装置に問い合わせ、
前記サーバ装置は、
前記第1の指令を電子機器から受信する受信手段と、
前記問い合わせに対して、前記第1の指令を前記制御装置に送信する送信手段とを含み、
前記送信手段は、前記受信手段によって前記第1の指令が受信された場合、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信し、
前記制御装置は、前記第2の指令を受信したことに基づき、前記指定されたタイミングよりも早いタイミングで前記問い合わせを行なう、通信システム。
A communication system comprising a server device and a control device for controlling a controlled device,
The control device inquires the server device at a designated timing as to whether or not a first command for controlling the controlled device exists in the server device,
The server device
Receiving means for receiving the first command from the electronic device;
A transmission means for transmitting the first command to the control device in response to the inquiry;
The transmitting means, when the first instruction is received by the receiving means, sends a second instruction that causes the control apparatus to execute the inquiry in order to transmit the first instruction to the control apparatus. Sent to the control unit,
The communication system, wherein the control device makes the inquiry at a timing earlier than the designated timing based on the reception of the second command.
前記送信手段は、前記第2の指令を、前記制御装置との常時接続によるデータ通信によって前記制御装置に送信する、請求項1に記載の通信システム。   The communication system according to claim 1, wherein the transmission unit transmits the second command to the control device by data communication based on a constant connection with the control device. 前記送信手段は、
前記第1の指令が第1の種別の指令である場合には、前記制御装置に対して前記第2の指令を1回送信し、
前記第1の指令が第2の種別の指令である場合には、前記制御装置に対して前記第2の指令を複数回送信する、請求項1または2に記載の通信システム。
The transmission means includes
When the first command is a first type command, the second command is transmitted once to the control device;
The communication system according to claim 1 or 2, wherein when the first command is a second type command, the second command is transmitted to the control device a plurality of times.
前記送信手段は、
前記第1の指令が前記第2の種別である場合には、前記制御装置に対して前記第2の指令を2回送信し、
1回目の前記第2の指令に基づく前記問い合わせに応じた前記第1の指令の送信が終了した後に、2回目の前記第2の指令を前記制御装置に対して送信する、請求項3に記載の通信システム。
The transmission means includes
When the first command is the second type, the second command is transmitted twice to the control device,
The second command is transmitted to the control device for the second time after the transmission of the first command in response to the inquiry based on the first command is completed for the first time. Communication system.
前記問い合せのタイミングは、前記サーバ装置によって指定される、請求項1〜4のいずれか1項に記載の通信システム。   The communication system according to claim 1, wherein the inquiry timing is specified by the server device. 電子機器と、被制御装置を制御する制御装置と通信するサーバ装置であって、
前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かが、指定されたタイミングで前記制御装置から前記サーバ装置に問い合わされ、
前記サーバ装置は、
前記第1の指令を前記電子機器から受信する受信手段と、
前記問い合わせに対して、前記第1の指令を前記制御装置に送信する送信手段とを備え、
前記送信手段は、前記受信手段によって前記第1の指令が受信された場合、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信する、サーバ装置。
A server device that communicates with an electronic device and a control device that controls the controlled device,
Whether or not a first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing,
The server device
Receiving means for receiving the first command from the electronic device;
A transmission means for transmitting the first command to the control device in response to the inquiry;
The transmitting means, when the first instruction is received by the receiving means, sends a second instruction that causes the control apparatus to execute the inquiry in order to transmit the first instruction to the control apparatus. A server device that transmits to the control device.
サーバ装置と、被制御装置を制御する制御装置とを備える通信システムにおける制御方法であって、
前記制御装置が、前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かを、指定されたタイミングで前記サーバ装置に問い合わせるステップと、
前記サーバ装置が、前記第1の指令を電子機器から受信するステップと、
前記第1の指令が受信された場合、前記サーバ装置が、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信するステップと、
前記制御装置が、前記第2の指令を受信したことに基づき、前記指定されたタイミングよりも早いタイミングで前記問い合わせを行なうステップとを備える、制御方法。
A control method in a communication system comprising a server device and a control device for controlling a controlled device,
The control device inquires of the server device at a designated timing whether or not the server device has a first command for controlling the controlled device; and
The server device receiving the first command from an electronic device;
When the first command is received, the server device issues a second command to the control device to cause the control device to execute the inquiry in order to transmit the first command to the control device. Sending and
And a step of making the inquiry at a timing earlier than the designated timing based on the control device receiving the second command.
電子機器と、被制御装置を制御する制御装置と通信するサーバ装置における制御方法であって、
前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かが、指定されたタイミングで前記制御装置から前記サーバ装置に問い合わされ、
前記制御方法は、
前記第1の指令を前記電子機器から受信するステップと、
前記第1の指令が受信された場合、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信するステップとを備える、制御方法。
A control method in a server device that communicates with an electronic device and a control device that controls a controlled device,
Whether or not a first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing,
The control method is:
Receiving the first command from the electronic device;
Transmitting a second command to the control device to cause the control device to execute the inquiry to transmit the first command to the control device when the first command is received; A control method comprising:
電子機器と、被制御装置を制御する制御装置と通信するサーバ装置を制御するプログラムであって、
前記被制御装置を制御するための第1の指令が前記サーバ装置に存在するか否かが、指定されたタイミングで前記制御装置から前記サーバ装置に問い合わされ、
前記プログラムは、
前記第1の指令を前記電子機器から受信するステップと、
前記第1の指令が受信された場合、前記第1の指令を前記制御装置に送信するために、前記問い合わせを前記制御装置に実行させる第2の指令を前記制御装置に対して送信するステップとを、前記サーバ装置のプロセッサに実行させる、プログラム。
A program for controlling a server device that communicates with an electronic device and a control device that controls a controlled device,
Whether or not a first command for controlling the controlled device exists in the server device is inquired from the control device to the server device at a designated timing,
The program is
Receiving the first command from the electronic device;
Transmitting a second command to the control device to cause the control device to execute the inquiry to transmit the first command to the control device when the first command is received; Is executed by the processor of the server device.
JP2013162244A 2013-08-05 2013-08-05 COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM Expired - Fee Related JP5689156B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013162244A JP5689156B2 (en) 2013-08-05 2013-08-05 COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013162244A JP5689156B2 (en) 2013-08-05 2013-08-05 COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2015033034A true JP2015033034A (en) 2015-02-16
JP5689156B2 JP5689156B2 (en) 2015-03-25

Family

ID=52518005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013162244A Expired - Fee Related JP5689156B2 (en) 2013-08-05 2013-08-05 COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5689156B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009123204A1 (en) * 2008-03-31 2009-10-08 パナソニック電工株式会社 Monitoring system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009123204A1 (en) * 2008-03-31 2009-10-08 パナソニック電工株式会社 Monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769895A (en) * 2020-12-18 2021-05-07 杭州涂鸦信息技术有限公司 Group or scene control method and related device
CN112769895B (en) * 2020-12-18 2023-10-13 杭州涂鸦信息技术有限公司 Group or scene control method and related device

Also Published As

Publication number Publication date
JP5689156B2 (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN105580313B (en) Method and apparatus for controlling device for smart home service
CN105471686B (en) Terminal control method, device and system
CN103973748A (en) Intelligent household system and monitoring method thereof
EP2840741B1 (en) Method and apparatus for using service of home network device based on remote access
EP2461523B1 (en) Systems and methods for operating an appliance control device for an appliance
JP2005109746A (en) Household appliance remote control system, service providing server, home server, household apparatus, household appliance remote control support method of service providing server and household appliance service providing and support method of service providing server
US9002927B2 (en) Apparatus and method for managing remote user interface and system for the same
US9560167B2 (en) Network system, communication method, server, and terminal
JP6181486B2 (en) Communication system, server device, portable terminal device, and information processing method
JP4754432B2 (en) Remote operation system, communication terminal, server device, and computer program
JP5689156B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM
WO2015020154A1 (en) Communication device, appliance operating system, communication method, and program
JP5868476B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
US9923769B2 (en) Methods and systems for verifying installation of a device
JP5714067B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, CONTROL METHOD, AND PROGRAM
JP6425372B2 (en) Communication apparatus and communication method
WO2016084234A1 (en) Communication device, communication adaptor, communication system, communication parameter response method, and program
US20170094035A1 (en) Management method and management device
JP2015041985A (en) Information processing apparatus, information providing method, program and control system
KR20120092912A (en) Method for providing home appliance firmware of mobile communication terminal by using near field communication and firmware providing system comprising the terminal
JP5528603B1 (en) Communication adapter, control system, communication adapter control method, and program
KR102001886B1 (en) Repeating apparatus for remote control, and control method thereof
JP5965362B2 (en) Access control system, control server, controller, access control method, control program, and access control program
JP2015142315A (en) Remote control apparatus, remote control system and remote control method
JP6234523B2 (en) Server, information terminal, control system, information providing method, and program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150106

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150127

R150 Certificate of patent or registration of utility model

Ref document number: 5689156

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees