JP6419250B2 - Control device, communication system, communication method, and program - Google Patents

Control device, communication system, communication method, and program Download PDF

Info

Publication number
JP6419250B2
JP6419250B2 JP2017078818A JP2017078818A JP6419250B2 JP 6419250 B2 JP6419250 B2 JP 6419250B2 JP 2017078818 A JP2017078818 A JP 2017078818A JP 2017078818 A JP2017078818 A JP 2017078818A JP 6419250 B2 JP6419250 B2 JP 6419250B2
Authority
JP
Japan
Prior art keywords
communication
control device
communication device
control unit
determined
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.)
Active
Application number
JP2017078818A
Other languages
Japanese (ja)
Other versions
JP2017130972A (en
Inventor
聡司 峯澤
聡司 峯澤
矢部 正明
正明 矢部
直之 樋原
直之 樋原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2017078818A priority Critical patent/JP6419250B2/en
Publication of JP2017130972A publication Critical patent/JP2017130972A/en
Application granted granted Critical
Publication of JP6419250B2 publication Critical patent/JP6419250B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、制御装置、通信システム、通信方法、及び、プログラムに関する。   The present invention relates to a control device, a communication system, a communication method, and a program.

通信可能な電気機器を通信ネットワークに接続し、コントローラを用いて統合的に管理するHEMS(Home Energy Management System)と呼ばれるシステムがある。例えば、特許文献1には、宅内に設置される機器と宅内の部屋との対応付けと、宅内の部屋とユーザとの対応付けとに基づいて、ユーザの個別の事情に応じて適切に機器を制御するコントローラが開示されている。   There is a system called HEMS (Home Energy Management System) in which communicable electrical devices are connected to a communication network and integratedly managed using a controller. For example, in Patent Literature 1, an appropriate device is appropriately provided according to the individual circumstances of the user based on the association between the device installed in the house and the room in the home and the association between the room in the home and the user. A controller for controlling is disclosed.

特許第5538592号明細書Japanese Patent No. 5538592

ところで、電気機器は様々なメーカによって製造されており、電気機器の性能や、通信仕様、特性等はそれぞれ異なることが多い。また、例え同じメーカであったとしても、設置された場所によって通信環境が変化することがある。そのため、単純に一つの通信仕様をすべての電気機器との通信に適用するだけでは、通信の効率が悪くなってしまうことがあった。そして、電気機器の性能や通信環境等に違いがあっても、効率良く通信できることが望まれている。   Incidentally, electrical devices are manufactured by various manufacturers, and the performance, communication specifications, characteristics, and the like of the electrical devices are often different. Also, even if the manufacturer is the same, the communication environment may change depending on the place where it is installed. For this reason, simply applying one communication specification to communication with all electrical devices may result in poor communication efficiency. And even if there is a difference in performance or communication environment of electrical equipment, it is desired to be able to communicate efficiently.

本発明は、上記の事情のもとになされたもので、様々な性能を有する通信相手との通信に効率良く対応できるようにする制御装置、通信システム、通信方法、及び、プログラムを提供することを目的とする。   The present invention has been made under the above circumstances, and provides a control device, a communication system, a communication method, and a program that can efficiently cope with communication with communication partners having various performances. With the goal.

上記目的を達成するため、本発明に係る制御装置は、
複数のパケットを、パケットのデータ量、及び、パケット間の送信間隔の少なくとも一方を変化させつつ複数の通信機器へ送信した結果により、前記複数の通信機器との通信に用いるそれぞれの通信パラメータを決定する決定部と、
前記決定されたそれぞれの通信パラメータを用いて前記複数の通信機器と通信する通信部と、を備え、
前記通信部は、前記決定された通信パラメータが予め決められた性能値を下まわる前記通信機器との通信を行わない。
In order to achieve the above object, a control device according to the present invention provides:
Each communication parameter used for communication with the plurality of communication devices is determined based on the result of transmitting the plurality of packets to the plurality of communication devices while changing at least one of the packet data amount and the transmission interval between the packets. A decision unit to
A communication unit that communicates with the plurality of communication devices using the determined communication parameters, and
The communication unit does not perform communication with the communication device in which the determined communication parameter falls below a predetermined performance value.

様々な性能を有する通信相手との通信に効率良く対応することが可能な制御装置、通信システム、通信方法、及び、プログラムを提供することができる。   It is possible to provide a control device, a communication system, a communication method, and a program that can efficiently cope with communication with a communication partner having various performances.

実施形態1の通信システムの構成を示す図である。1 is a diagram illustrating a configuration of a communication system according to a first embodiment. 管理画面の例を示す図である。It is a figure which shows the example of a management screen. サブ画面の例を示す図である。It is a figure which shows the example of a subscreen. 制御装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of a control apparatus. 通信システムの機能的な構成を示す図である。It is a figure which shows the functional structure of a communication system. パケットの構成を示す図である。It is a figure which shows the structure of a packet. パケットの送信のタイムチャートを示す図である。It is a figure which shows the time chart of transmission of a packet. 通信処理を説明するためのフローチャートである。It is a flowchart for demonstrating a communication process. パケットサイズ決定処理を説明するためのフローチャートである。It is a flowchart for demonstrating a packet size determination process. 送信間隔決定処理を説明するためのフローチャートである。It is a flowchart for demonstrating transmission interval determination processing. タイムアウト値決定処理を説明するためのフローチャートである。It is a flowchart for demonstrating a timeout value determination process. 実施形態2の通信パラメータ決定処理を説明するためのフローチャートである。10 is a flowchart for explaining communication parameter determination processing according to the second embodiment. 実施形態3の通信パラメータ決定処理を説明するためのフローチャートである。10 is a flowchart for explaining communication parameter determination processing according to the third embodiment. 実施形態4の通信処理を説明するためのフローチャートである。10 is a flowchart for explaining communication processing according to the fourth embodiment. 通信機器の識別情報と対応付けて通信パラメータを定義する定義データの例である。It is an example of the definition data which defines a communication parameter in association with identification information of a communication device. 実施形態5の通信処理を説明するためのフローチャートである。10 is a flowchart for explaining communication processing according to the fifth embodiment. 実施形態6の通信処理を説明するためのフローチャートである。14 is a flowchart for explaining communication processing according to the sixth embodiment. プロパティの最大数についてのグループ分けの例を示す図である。It is a figure which shows the example of grouping about the maximum number of properties. グループごとに設定されるプロパティの最大数の例を示す図である。It is a figure which shows the example of the maximum number of the properties set for every group. パケットの送信間隔についてのグループ分けの例を示す図である。It is a figure which shows the example of grouping about the transmission interval of a packet. グループごとに設定される送信間隔の例を示す図である。It is a figure which shows the example of the transmission interval set for every group. タイムアウト値についてのグループ分けの例を示す図である。It is a figure which shows the example of grouping about a timeout value. グループごとに設定されるタイムアウト値の例を示す図である。It is a figure which shows the example of the timeout value set for every group. プロパティの最大数とパケットの送信間隔とタイムアウト値を定義する定義データの例を示す図である。It is a figure which shows the example of the definition data which defines the maximum number of properties, the transmission interval of a packet, and a timeout value. 定義データの他の例を示す図である。It is a figure which shows the other example of definition data. 実施形態7の通信処理を説明するためのフローチャートである。18 is a flowchart for explaining communication processing according to the seventh embodiment. 実施形態8の通信処理を説明するためのフローチャートである。10 is a flowchart for explaining communication processing according to an eighth embodiment. 実施形態9の通信処理を説明するためのフローチャートである。18 is a flowchart for explaining communication processing according to the ninth embodiment. 実施形態10の通信パラメータ決定処理を説明するためのフローチャートである。18 is a flowchart for explaining communication parameter determination processing according to the tenth embodiment. 実施形態11のユーザに提示されるメッセージの表示例を示す図である。It is a figure which shows the example of a display of the message shown to the user of Embodiment 11. FIG. 実施形態12のユーザに提示されるメッセージの他の表示例を示す図である。FIG. 29 is a diagram illustrating another display example of a message presented to the user according to the twelfth embodiment. 通信状態等の表示例を示す図である。It is a figure which shows the example of a display of a communication state.

(実施形態1)
図1に、本実施形態に係る通信システム1の構成を示す。制御装置100は、宅内(需要家内)に設置される様々な通信機器120(図1では120A,120B,120Cの三つ)によって消費される電力量を監視し、また、各通信機器120の動作を制御する。通信システム1に含まれる通信機器120の数は本発明によって限定されず任意である。
(Embodiment 1)
FIG. 1 shows a configuration of a communication system 1 according to the present embodiment. The control device 100 monitors the amount of power consumed by various communication devices 120 (three in FIG. 1, 120A, 120B, and 120C) installed in the house (inside the customer), and the operation of each communication device 120. To control. The number of communication devices 120 included in the communication system 1 is not limited by the present invention and is arbitrary.

制御装置100は、図2に示すように、ユーザからの指示を受け付ける管理画面200を表示する。ユーザからの指示が入力されると、制御装置100は、入力された指示に対応するコマンドを通信機器120へ送信する。通信機器120は、制御装置100から送信されたコマンドを受信し、受信したコマンドに基づいて動作する。   As shown in FIG. 2, the control device 100 displays a management screen 200 that receives an instruction from the user. When an instruction from the user is input, control device 100 transmits a command corresponding to the input instruction to communication device 120. The communication device 120 receives a command transmitted from the control device 100 and operates based on the received command.

制御装置100は、インターネット等、外部の通信ネットワーク140に接続され、通信ネットワーク140上にある他のコンピュータと通信可能であってもよい。   The control device 100 may be connected to an external communication network 140 such as the Internet and be able to communicate with other computers on the communication network 140.

通信機器120は、宅外から供給される電力、もしくは、宅内に設置される発電システム又は蓄電システムから供給される電力により動作する。通信機器120とは、具体的には、制御装置100と通信可能な、空気調和機、換気システム、照明機器、給湯システム、床暖房システム、電気調理器、等である。   The communication device 120 operates with power supplied from outside the house or power supplied from a power generation system or a power storage system installed in the house. The communication device 120 is specifically an air conditioner, a ventilation system, a lighting device, a hot water supply system, a floor heating system, an electric cooker, or the like that can communicate with the control device 100.

通信機器120と制御装置100は、無線LAN(Local Area Network)、有線LAN、PLC(Power Line Communication)等により接続される。   The communication device 120 and the control device 100 are connected by a wireless LAN (Local Area Network), a wired LAN, a PLC (Power Line Communication), or the like.

例えば通信機器120が空気調和機である場合、通信機器120は、コマンドを制御装置100から受信し、受信したコマンドに基づいて、電源のオン又はオフ、目標温度の設定、風量の設定、動作時間の設定等を行う。   For example, when the communication device 120 is an air conditioner, the communication device 120 receives a command from the control device 100, and based on the received command, the power is turned on or off, the target temperature is set, the air volume is set, and the operation time is Set up.

コマンドには、大別して、操作コマンドと状態取得コマンドとの二種類がある。   There are roughly two types of commands: operation commands and status acquisition commands.

操作コマンドは、主としてユーザからの指示に基づいて制御装置100から通信機器120へ送信されるコマンドである。制御装置100は、管理画面200を介してユーザから通信機器120を動作させる指示が入力されると、入力された指示に対応する操作コマンドを通信機器120へ送信する。通信機器120は、操作コマンドを制御装置100から受信し、操作コマンドに従って動作する。ただし、制御装置100は、ユーザからの指示にかかわらず、予め決められたアルゴリズムに基づいて操作コマンドを自動的に通信機器120へ送信することがあってもよい。   The operation command is a command transmitted from the control device 100 to the communication device 120 mainly based on an instruction from the user. When an instruction for operating the communication device 120 is input from the user via the management screen 200, the control device 100 transmits an operation command corresponding to the input instruction to the communication device 120. The communication device 120 receives an operation command from the control device 100 and operates according to the operation command. However, the control device 100 may automatically transmit an operation command to the communication device 120 based on a predetermined algorithm regardless of an instruction from the user.

図2に、管理画面200の例を示す。管理画面200には、宅内に設置される通信機器120の一覧表250と間取り図260とが表示される。   FIG. 2 shows an example of the management screen 200. On the management screen 200, a list 250 of the communication devices 120 installed in the house and a floor plan 260 are displayed.

制御装置100は、一覧表250の中に、通信機器120に対応付けられるオブジェクト210(図2では210A,210B,210C,210Dの四つ)を配置する。オブジェクト210と対応付けて、通信機器120の名称と、通信機器120から取得した最新の動作状態とが表示される。オブジェクト210はソフトウェアボタンになっている。   The control device 100 arranges objects 210 (four in FIG. 2, 210A, 210B, 210C, and 210D) associated with the communication device 120 in the list 250. In association with the object 210, the name of the communication device 120 and the latest operation state acquired from the communication device 120 are displayed. The object 210 is a software button.

オブジェクト210がユーザによって操作されると(オブジェクト210がユーザによってタッチされると)、制御装置100は、図3に示すように、操作されたオブジェクト210に対応する通信機器120に指定可能な設定値の入力をユーザから受け付けるサブ画面300を管理画面200の上に重畳して表示する。   When the object 210 is operated by the user (when the object 210 is touched by the user), as shown in FIG. 3, the control device 100 can set a setting value that can be specified for the communication device 120 corresponding to the operated object 210. The sub screen 300 that accepts the input from the user is superimposed on the management screen 200 and displayed.

例えば、図3に示すサブ画面300は、“リビングのエアコン”に対応付けられているオブジェクト210Bがユーザによって操作されると表示される。サブ画面300には、動作を開始させる指示に対応付けられるボタン301、動作を停止させる指示に対応付けられるボタン302、目標温度の入力が可能なテキストボックス303、目標温度を予め決められた量(例えば1度)だけ増加又は減少させるボタン304が配置される。   For example, the sub screen 300 shown in FIG. 3 is displayed when the object 210B associated with “living air conditioner” is operated by the user. The sub screen 300 includes a button 301 associated with an instruction to start an operation, a button 302 associated with an instruction to stop the operation, a text box 303 in which a target temperature can be input, and a predetermined amount of target temperature ( A button 304 is provided that increases or decreases by (for example, once).

ボタン301がユーザによって操作されると、制御装置100は、通信機器120(この場合、空気調和機)の動作を開始させる開始コマンドを通信機器120へ送信する。ただし、通信機器120が既に動作中ならば、制御装置100は、ボタン301に対する操作を無効にするか、もしくはボタン301に対する操作を受け付けない。通信機器120は、開始コマンドを制御装置100から受信すると、動作(この場合、目標温度を23度に設定した暖房運転)を開始する。   When the button 301 is operated by the user, the control device 100 transmits a start command for starting the operation of the communication device 120 (in this case, the air conditioner) to the communication device 120. However, if the communication device 120 is already operating, the control device 100 invalidates the operation on the button 301 or does not accept the operation on the button 301. When communication device 120 receives a start command from control device 100, communication device 120 starts an operation (in this case, a heating operation in which the target temperature is set to 23 degrees).

ボタン302がユーザによって操作されると、制御装置100は、通信機器120の動作を停止させる停止コマンドを通信機器120へ送信する。ただし、通信機器120が既に停止中ならば、制御装置100は、ボタン302に対する操作を無効にするか、もしくはボタン302に対する操作を受け付けない。通信機器120は、停止コマンドを制御装置100から受信すると、動作(この場合、目標温度を23度に設定した暖房運転)を停止する。   When the button 302 is operated by the user, the control device 100 transmits a stop command for stopping the operation of the communication device 120 to the communication device 120. However, if the communication device 120 is already stopped, the control device 100 invalidates the operation on the button 302 or does not accept the operation on the button 302. When the communication device 120 receives a stop command from the control device 100, the communication device 120 stops the operation (in this case, the heating operation in which the target temperature is set to 23 degrees).

テキストボックス303に数値が入力されると、制御装置100は、入力された数値に目標温度を変更する変更コマンドを通信機器120へ送信する。数値ではない文字や記号等がテキストボックス303に入力されると、制御装置100は、入力された値を無効とする。もしくは、制御装置100は、テキストボックス303に数値ではない文字や記号等の入力を許可しない。通信機器120は、変更コマンドを制御装置100から受信すると、変更コマンドが示す値に目標温度を変更する。   When a numerical value is input to the text box 303, the control device 100 transmits a change command for changing the target temperature to the input numerical value to the communication device 120. When a character, symbol, or the like that is not a numerical value is input to the text box 303, the control device 100 invalidates the input value. Alternatively, the control device 100 does not permit the input of non-numeric characters or symbols in the text box 303. When receiving the change command from the control device 100, the communication device 120 changes the target temperature to the value indicated by the change command.

ボタン304がユーザによって操作されると、制御装置100は、テキストボックス303に表示されている値を予め決められた値(例えば1度)だけ増加又は減少させ、変化させた値に目標温度を設定する変更コマンドを通信機器120へ送信する。通信機器120は、変更コマンドを制御装置100から受信すると、変更コマンドが示す値に目標温度を変更する。   When the button 304 is operated by the user, the control device 100 increases or decreases the value displayed in the text box 303 by a predetermined value (for example, 1 degree), and sets the target temperature to the changed value. The change command to be transmitted is transmitted to the communication device 120. When receiving the change command from the control device 100, the communication device 120 changes the target temperature to the value indicated by the change command.

通信機器120の種類によって、サブ画面300に含まれるボタンやテキストボックス等のオブジェクト210の数、位置、形状、及び、オブジェクト210に対応付けられる指示内容は、それぞれ異なる。   Depending on the type of the communication device 120, the number, position, and shape of the objects 210 such as buttons and text boxes included in the sub screen 300, and the instruction content associated with the objects 210 are different.

また、図2において、制御装置100は、間取り図260のうち、通信機器120が設置される場所に対応する位置に、通信機器120を示すアイコン220(図2では220A,220B,220C,220D等)を配置する。アイコン220は、通信機器120の種別をユーザが容易に判別可能な画像であることが望ましい。アイコン220が配置される位置は、現実に通信機器120が設置される場所と正確に一致する必要はなく、少なくとも通信機器120が現実に設置される部屋とその部屋に対応する間取り図260内の位置とが合致していればよい。   In FIG. 2, the control device 100 has an icon 220 (220A, 220B, 220C, 220D, etc. in FIG. 2) indicating the communication device 120 at a position corresponding to the place where the communication device 120 is installed in the floor plan 260. ). The icon 220 is preferably an image that allows the user to easily determine the type of the communication device 120. The position where the icon 220 is arranged does not need to exactly match the place where the communication device 120 is actually installed, and at least the room where the communication device 120 is actually installed and the floor plan 260 corresponding to the room. It only needs to match the position.

一覧表250の中のオブジェクト210がユーザによって操作されると、制御装置100は、操作されたオブジェクト210に対応付けられるアイコン220を、色の変更や点滅等によって強調して表示する。そして、上述したように、制御装置100は、操作されたオブジェクト210に対応付けられる通信機器120に設定可能なパラメータの入力をユーザから受け付けるサブ画面300を管理画面200の上に重畳して表示する。   When the object 210 in the list 250 is operated by the user, the control device 100 displays the icon 220 associated with the operated object 210 with emphasis by changing the color or blinking. Then, as described above, the control device 100 superimposes and displays on the management screen 200 the sub screen 300 that accepts input of parameters that can be set in the communication device 120 associated with the operated object 210 from the user. .

間取り図260の中の通信機器120を示すアイコン220がユーザによって操作されると、制御装置100は、操作されたアイコン220に対応付けられるオブジェクト210を、色の変更や点滅等によって強調して表示し、また、サブ画面300を表示する。つまり、一覧表250の表示と間取り図260の表示は連動する。ユーザは、特定の通信機器120に動作を指示したければ、一覧表250の中から所望の通信機器120に対応付けられるオブジェクト210を選択してもよいし、間取り図260の中から所望の通信機器120に対応付けられるアイコン220を選択してもよい。   When the icon 220 indicating the communication device 120 in the floor plan 260 is operated by the user, the control device 100 displays the object 210 associated with the operated icon 220 in a highlighted manner by changing the color or blinking. In addition, the sub screen 300 is displayed. That is, the display of the list 250 and the display of the floor plan 260 are linked. The user may select the object 210 associated with the desired communication device 120 from the list 250 or direct the desired communication from the floor plan 260 if the user wants to instruct the specific communication device 120 to operate. The icon 220 associated with the device 120 may be selected.

状態取得コマンドは、制御装置100が通信機器120の現在の動作状態等の送信を要求するコマンドである。制御装置100は、予め決められた送信条件が満たされると、状態取得コマンドを通信機器120へ送信する。通信機器120は、状態取得コマンドを受信すると、通信機器120の現在の状態(例えば通信機器120が空気調和機ならば、設定されている目標温度、測定した温度と湿度等)を取得し、取得した情報を制御装置100へ送信する。なお、制御装置100は、ユーザからの指示に基づいて状態取得コマンドを通信機器120へ送信することがあってもよい。   The status acquisition command is a command for the control device 100 to request transmission of the current operation status of the communication device 120. The control device 100 transmits a state acquisition command to the communication device 120 when a predetermined transmission condition is satisfied. When the communication device 120 receives the state acquisition command, the communication device 120 acquires and acquires the current state of the communication device 120 (for example, if the communication device 120 is an air conditioner, the set target temperature, the measured temperature and humidity, etc.). The transmitted information is transmitted to the control device 100. Note that the control device 100 may transmit a status acquisition command to the communication device 120 based on an instruction from the user.

送信条件とは、予め決められた定期的なタイミングが到来することである。例えば、制御装置100は、最後に状態取得コマンドを通信機器120へ送信してから一定期間(1分、5分、等)が経過すると、再び状態取得コマンドを通信機器120へ送信する。制御装置100は、定期的に通信機器120の最新の状態を取得し、管理画面200の表示を更新する。   The transmission condition is that a predetermined periodic timing arrives. For example, the control device 100 transmits the status acquisition command to the communication device 120 again after a certain period (1 minute, 5 minutes, etc.) has elapsed since the last acquisition of the status acquisition command to the communication device 120. The control device 100 periodically acquires the latest state of the communication device 120 and updates the display of the management screen 200.

また、送信条件は、ユーザから最新の状態を表示させる旨の指示が入力されたことでもよい。制御装置100は、ユーザから最新の状態を管理画面200に表示させる旨の指示を受け付けると、状態取得コマンドを通信機器120へ送信する。制御装置100は、ユーザからの指示があると、通信機器120の最新の状態を取得し、表示する。   Further, the transmission condition may be that an instruction for displaying the latest state is input from the user. Upon receiving an instruction from the user to display the latest state on the management screen 200, the control device 100 transmits a state acquisition command to the communication device 120. When there is an instruction from the user, the control device 100 acquires and displays the latest state of the communication device 120.

次に、制御装置100のハードウェア構成について、図4を用いて説明する。   Next, the hardware configuration of the control device 100 will be described with reference to FIG.

通信部401は、NIC(Network Interface Card)を備え、通信機器120と通信する。本実施形態では、通信部401は、ECHONET Lite(登録商標)に準拠したプロトコルにて通信機器120と通信する。   The communication unit 401 includes a NIC (Network Interface Card) and communicates with the communication device 120. In the present embodiment, the communication unit 401 communicates with the communication device 120 using a protocol conforming to ECHONET Lite (registered trademark).

画像処理部402は、管理画面200やサブ画面300等をディスプレイ451に表示する。   The image processing unit 402 displays the management screen 200, the sub screen 300, and the like on the display 451.

音声処理部403は、記憶部405から音声データを取得して再生し、音声をスピーカ452から出力する。   The sound processing unit 403 acquires and reproduces sound data from the storage unit 405 and outputs sound from the speaker 452.

入力部404は、ボタンやタッチパネル等、ユーザからの入力を受け付ける入力デバイスを備える。本実施形態では、制御装置100は、ディスプレイ451の表示領域の上に重畳してタッチパネルが配置される、いわゆるタッチスクリーンを備える。   The input unit 404 includes an input device that receives input from the user, such as a button or a touch panel. In the present embodiment, the control device 100 includes a so-called touch screen in which a touch panel is disposed so as to be superimposed on a display area of the display 451.

記憶部405は、ハードディスク等の記憶装置を備え、制御装置100を制御する各種のプログラム、通信機器120から受信した動作状態を示すデータ、オペレーティングシステム(OS)、画像データ、音声データ、テキストデータ等を記憶する。   The storage unit 405 includes a storage device such as a hard disk, and includes various programs for controlling the control device 100, data indicating the operating state received from the communication device 120, an operating system (OS), image data, audio data, text data, and the like. Remember.

制御部406は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)を備え、制御装置100全体を制御する。   The control unit 406 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory), and controls the entire control device 100.

次に、通信システム1によって実行される通信処理の詳細について説明する。   Next, details of communication processing executed by the communication system 1 will be described.

図5に、通信システム1の機能的な構成を示す。図5には通信機器120が一つしか描かれていないが、制御装置100は複数の通信機器120と通信することができる。   FIG. 5 shows a functional configuration of the communication system 1. Although only one communication device 120 is illustrated in FIG. 5, the control device 100 can communicate with a plurality of communication devices 120.

制御装置100の制御部406は、新たな通信機器120からの接続要求を受信すると、その通信機器120の通信性能に合わせて、データの伝送単位であるパケットのサイズと、連続する二つのパケットの送信間隔ΔTと、通信が成功したか否かの判別基準となるタイムアウト値TOUTとを決定する。制御装置100の制御部406が、通信機器120との通信に用いる通信パラメータを通信機器120と通信することにより決定する決定部501として機能する。 Upon receiving a connection request from a new communication device 120, the control unit 406 of the control device 100 matches the communication performance of the communication device 120 with the size of a packet that is a data transmission unit and the two consecutive packets. A transmission interval ΔT and a timeout value T OUT serving as a criterion for determining whether or not the communication is successful are determined. The control unit 406 of the control device 100 functions as a determination unit 501 that determines communication parameters used for communication with the communication device 120 by communicating with the communication device 120.

新たな通信機器120とは、制御装置100がその通信機器120と通信する際の通信仕様を未だ決定していない状態の通信機器120のことであり、例えば、ユーザが新規に購入して設置し、制御装置100が初めて通信する通信機器120が該当する。   The new communication device 120 is a communication device 120 in a state in which the communication specification when the control device 100 communicates with the communication device 120 has not yet been determined. For example, the new communication device 120 is newly purchased and installed by the user. This corresponds to the communication device 120 with which the control device 100 communicates for the first time.

制御装置100の制御部406は、通信機器120からの応答を要求するコマンドを通信機器120へ送信し、コマンドを送信した時刻からタイムアウト値TOUTが示す時間が経過するまでの間に、その通信機器120から応答を受信しないと、その通信機器120との通信に失敗したと判別する。 The control unit 406 of the control device 100 transmits a command requesting a response from the communication device 120 to the communication device 120, and the communication between the time when the command is transmitted and the time indicated by the timeout value TOUT elapses. If no response is received from the device 120, it is determined that communication with the communication device 120 has failed.

あるいは、制御装置100の制御部406は、コマンドを送信した時刻からタイムアウト値TOUTが示す時間が経過するまでの間に、その通信機器120から応答を受信しないと、再びコマンドを通信機器120へ送信して通信をリトライしてもよい。リトライの回数は任意である。 Alternatively, if the control unit 406 of the control device 100 does not receive a response from the communication device 120 between the time when the command is transmitted and the time indicated by the timeout value T OUT elapses, the control unit 406 transmits the command to the communication device 120 again. Transmission may be retried. The number of retries is arbitrary.

図6に、パケットの構成を示す。パケットは、宛先アドレスとコマンド識別子とを含む固定ビット長のヘッダ部と、可変ビット長のデータ部(ペイロードとも呼ばれる)とから構成される。データ部のビット長は、コマンドの種類等によって、もしくは、パケットに含まれるプロパティの数Nによって、変化する。   FIG. 6 shows a packet configuration. The packet includes a header portion having a fixed bit length including a destination address and a command identifier, and a data portion having a variable bit length (also referred to as a payload). The bit length of the data portion changes depending on the type of command or the like or the number N of properties included in the packet.

プロパティには、例えば、稼働中(オン)か非稼働(オフ)かを示すプロパティ、通信機器120の設置場所を示すプロパティ、規格のバ−ジョンを示すプロパティ、通信機器120を識別する識別情報を示すプロパティ等がある。一般には、コマンドの種類によって、あるいはコマンドに対して応答すべき情報の内容によって、プロパティの数Nは異なる。   The properties include, for example, a property indicating whether the communication device 120 is operating (on) or non-operation (off), a property indicating the installation location of the communication device 120, a property indicating the version of the standard, and identification information for identifying the communication device 120. There are properties to show. In general, the number N of properties varies depending on the type of command or the content of information to be responded to the command.

図7に、制御装置100から通信機器120へのパケット送信のタイムチャートを示す。制御装置100の制御部406は、時刻T1に第1のパケットの発出を開始し、第1のパケットの発出が終わった時刻T2から時間ΔTが経過する時刻T3までの間は待機し、時刻T3に第2のパケットの発出を開始し、第2のパケットの発出が終わった時刻T4から時間ΔTが経過する時刻T5までの間は待機し、時刻T5に第3のパケットの発出を開始し、時刻T6に第3のパケットの発出を終了する。   FIG. 7 shows a time chart of packet transmission from the control device 100 to the communication device 120. The control unit 406 of the control device 100 starts issuing the first packet at time T1, waits until time T3 when time ΔT elapses from time T2 when the first packet has ended, and time T3. At the time T5 from the time T4 at which the second packet has been issued to the time T5 when the time ΔT has elapsed, and at the time T5, the third packet is started to be issued. At time T6, the third packet is ended.

制御装置100の制御部406は、新たな通信機器120を検知すると、その通信機器120との間の通信を試み、一つのパケットに含めることができるプロパティの最大数NMAXと、パケットの送信間隔ΔTと、タイムアウト値TOUTを決定する。一つのパケットに含めることができるプロパティの最大数NMAXが決まれば、一つのパケットに格納可能なデータ量の最大値が決まる。 When the control unit 406 of the control device 100 detects a new communication device 120, the control unit 406 tries communication with the communication device 120, and the maximum number N MAX of properties that can be included in one packet, and a packet transmission interval. ΔT and timeout value T OUT are determined. If the maximum number N MAX of properties that can be included in one packet is determined, the maximum value of the amount of data that can be stored in one packet is determined.

図8に、通信仕様を決定する通信処理の流れを示す。   FIG. 8 shows the flow of communication processing for determining communication specifications.

まず、制御装置100の制御部406は、新たな通信機器120を検知したか否かを判別する(ステップS801)。   First, the control unit 406 of the control device 100 determines whether a new communication device 120 has been detected (step S801).

具体的には、通信機器120は、自身の通信相手となる制御装置100が決定されていないと、送信先を特定しないブロードキャストにて接続要求を送信する。接続要求を受信した制御装置100の制御部406は、この接続要求を送信した通信機器120を新たな通信機器120と判別する。   Specifically, the communication device 120 transmits a connection request by broadcast that does not specify a transmission destination unless the control device 100 as its communication partner is determined. The control unit 406 of the control device 100 that has received the connection request determines that the communication device 120 that has transmitted the connection request is a new communication device 120.

新たな通信機器120を検知しない場合(ステップS801;NO)、制御装置100はステップS801の処理を繰り返す。新たな通信機器120を検知した場合(ステップS801;YES)、制御装置100の制御部406は、パケットサイズ決定処理(ステップS802)、送信間隔決定処理(ステップS803)、タイムアウト値決定処理(ステップS804)を実行する。   When a new communication device 120 is not detected (step S801; NO), the control device 100 repeats the process of step S801. When a new communication device 120 is detected (step S801; YES), the control unit 406 of the control device 100 performs packet size determination processing (step S802), transmission interval determination processing (step S803), and timeout value determination processing (step S804). ).

なお、制御装置100の制御部406は、パケットサイズ決定処理と送信間隔決定処理とタイムアウト値決定処理とを実行する順序を任意に変更してもよい。また、制御装置100の制御部406は、パケットサイズ決定処理と送信間隔決定処理とタイムアウト値決定処理とを同時に並行して実行してもよい。   Note that the control unit 406 of the control device 100 may arbitrarily change the order of executing the packet size determination process, the transmission interval determination process, and the timeout value determination process. Further, the control unit 406 of the control device 100 may execute the packet size determination process, the transmission interval determination process, and the timeout value determination process simultaneously in parallel.

そして、制御装置100の制御部406は、通信部401を制御して、パケットサイズ決定処理により決定されたプロパティの最大数NMAXと、送信間隔決定処理によって決定されたパケットの送信間隔ΔTと、タイムアウト値決定処理によって決定されたタイムアウト値TOUTとを含む通信パラメータを用いて通信機器120と通信する。制御装置100の制御部406と通信部401が協働して、通信部502として機能する。 Then, the control unit 406 of the control device 100 controls the communication unit 401 to determine the maximum number of properties N MAX determined by the packet size determination process, the packet transmission interval ΔT determined by the transmission interval determination process, Communication is performed with the communication device 120 using communication parameters including the timeout value T OUT determined by the timeout value determination process. The control unit 406 and the communication unit 401 of the control device 100 cooperate to function as the communication unit 502.

制御装置100の制御部406は、通信機器120と通信すると、通信の履歴(以下、「通信ログ」という。)を記憶部405に保存する。通信ログには、例えば、パケットが制御装置100又は通信機器120から送信された日時、パケットが制御装置100又は通信機器120によって受信された日時、正常に通信されたかエラーが発生したかを示す情報等が含まれる。制御装置100の制御部406と記憶部405が協働して、通信機器120との通信の履歴を記録する記録部503として機能する。   When communicating with the communication device 120, the control unit 406 of the control device 100 stores a communication history (hereinafter referred to as “communication log”) in the storage unit 405. The communication log includes, for example, the date and time when the packet was transmitted from the control device 100 or the communication device 120, the date and time when the packet was received by the control device 100 or the communication device 120, and information indicating whether the communication was successful or an error occurred. Etc. are included. The control unit 406 and the storage unit 405 of the control apparatus 100 cooperate to function as a recording unit 503 that records a history of communication with the communication device 120.

なお、制御装置100の制御部406は、管理画面200とサブ画面300をディスプレイ451に表示することによってユーザに提示するほか、決定した通信パラメータに基づいて、通信機器120へ送信したコマンドに対する応答が得られるまでにかかる時間の目安となる情報をユーザに提示したり、決定した通信パラメータを含む情報をユーザに提示したりしてもよい。制御装置100の制御部406と画像処理部402が協働して、提示部504として機能する。   Note that the control unit 406 of the control device 100 presents the management screen 200 and the sub screen 300 to the user by displaying them on the display 451, and receives a response to the command transmitted to the communication device 120 based on the determined communication parameters. Information that is a measure of the time it takes to obtain the information may be presented to the user, or information that includes the determined communication parameter may be presented to the user. The control unit 406 and the image processing unit 402 of the control device 100 cooperate to function as the presentation unit 504.

次に、パケットサイズ決定処理の詳細について、図9のフローチャートを用いて説明する。   Next, details of the packet size determination processing will be described using the flowchart of FIG.

まず、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXを既定値に設定する(ステップS901)。制御装置100の制御部406は、NMAX個のプロパティを格納したコマンドを含むパケットを生成し、通信機器120へ送信する。既定値は、パケットサイズ決定処理により決定される前の暫定的な値である。 First, the control unit 406 of the control device 100 sets the maximum number of properties N MAX that can be included in one packet to a default value (step S901). The control unit 406 of the control device 100 generates a packet including a command storing N MAX properties and transmits the packet to the communication device 120. The default value is a provisional value before being determined by the packet size determination process.

ここで通信機器120へ送信されるコマンドは、例えば通信機器120の現在の動作状態の送信を要求する状態取得コマンド等、受信した通信機器120が何らかの応答を制御装置100へ返す必要があるコマンドとする。   Here, the command transmitted to the communication device 120 is a command that the received communication device 120 needs to return some response to the control device 100, such as a status acquisition command for requesting transmission of the current operation state of the communication device 120, for example. To do.

制御装置100の制御部406は、ステップS901にて設定したNMAX個のプロパティを含むパケットによる通信が成功したか否かを判別する(ステップS902)。 The control unit 406 of the control device 100 determines whether or not the communication using the packet including the N MAX properties set in step S901 has been successful (step S902).

例えば、制御装置100の制御部406は、送信したコマンドに対する応答データを受信すれば、通信が成功したと判別し、送信したコマンドに対する応答データを受信しなければ、通信が失敗したと判別する。   For example, the control unit 406 of the control device 100 determines that the communication has been successful if the response data for the transmitted command is received, and determines that the communication has failed if the response data for the transmitted command is not received.

あるいは、制御装置100の制御部406は、NMAX個のプロパティに対するすべての応答を含む応答データを受信すれば、通信が成功したと判別し、NMAX個のプロパティに対するすべての応答のうち少なくとも一つの応答が含まれない応答データを受信すれば、通信が失敗したと判別する。つまり、NMAXの問い合わせに対する回答が一つでも欠けていれば、通信が失敗したと判別する。 Alternatively, if control unit 406 of control device 100 receives response data including all responses to N MAX properties, control unit 406 determines that communication has been successful, and at least one of all responses to N MAX properties. If response data not including one response is received, it is determined that communication has failed. That is, if even one response to the N MAX inquiry is missing, it is determined that communication has failed.

ステップS902において通信が成功したと判別した場合(ステップS902;YES)、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXを、予め決められた数(例えば1個)だけ増加させ(ステップS903)、NMAX個のプロパティ(前回より1個多いプロパティ)を格納したコマンドを含むパケットを生成し、通信機器120へ送信する。 When it is determined in step S902 that the communication is successful (step S902; YES), the control unit 406 of the control device 100 sets the maximum number of properties N MAX that can be included in one packet to a predetermined number (for example, 1 packet) (step S903), a packet including a command storing N MAX properties (one more property than the previous time) is generated and transmitted to the communication device 120.

制御装置100の制御部406は、ステップS903にて設定したNMAX個のプロパティを含むパケットによる通信が成功したか否かを判別する(ステップS904)。 The control unit 406 of the control device 100 determines whether or not the communication using the packet including the N MAX properties set in step S903 is successful (step S904).

ステップS904において通信が成功したと判別した場合(ステップS904;YES)、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXを、予め決められた数(例えば1個)だけ更に増加させ(ステップS903)、NMAX個のプロパティ(前回より更に1個多いプロパティ)を格納したコマンドを含むパケットを生成し、通信機器120へ送信する。 If it is determined in step S904 that the communication is successful (step S904; YES), the control unit 406 of the control device 100 sets the maximum number of properties N MAX that can be included in one packet to a predetermined number (for example, (1) is further increased (step S903), and a packet including a command storing N MAX properties (one more property than the previous one) is generated and transmitted to the communication device 120.

ステップS904において通信が失敗したと判別した場合(ステップS904;NO)、制御装置100の制御部406は、通信機器120との通信において一つのパケットに含めることができるプロパティの最大数NMAXを、最後に通信に成功したときのプロパティの数に設定する(ステップS907)。 When it is determined in step S904 that the communication has failed (step S904; NO), the control unit 406 of the control device 100 determines the maximum number N MAX of properties that can be included in one packet in communication with the communication device 120. Finally, the number of properties when communication is successful is set (step S907).

つまり、制御装置100の制御部406は、通信に失敗したと判別するまで、一つのパケットに含めることができるプロパティの最大数NMAXを増加させていき、通信に失敗したと判別すると、直前に通信に成功したと判別したときの最大数NMAXに戻す。このようにすれば、制御装置100と通信機器120との間の通信に使用できるパケットサイズの最大値、言い換えれば、制御装置100と通信機器120との間で正常に一度に送受信できるパケットサイズの最大値が分かる。 That is, the control unit 406 of the control device 100 increases the maximum number N MAX of properties that can be included in one packet until it is determined that communication has failed. The maximum number N MAX when it is determined that the communication is successful is returned. In this way, the maximum packet size that can be used for communication between the control device 100 and the communication device 120, in other words, the packet size that can be normally transmitted and received between the control device 100 and the communication device 120 at a time. The maximum value is known.

一方、ステップS902において通信が失敗したと判別した場合(ステップS902;NO)、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXを、予め決められた数(例えば1個)だけ減少させ(ステップS905)、NMAX個のプロパティ(前回より1個少ないプロパティ)を格納したコマンドを含むパケットを生成し、通信機器120へ送信する。 On the other hand, when it is determined in step S902 that the communication has failed (step S902; NO), the control unit 406 of the control device 100 determines the maximum number N MAX of properties that can be included in one packet as a predetermined number. The packet is reduced by (for example, 1) (step S905), and a packet including a command storing N MAX properties (one less than the previous property) is generated and transmitted to the communication device 120.

制御装置100の制御部406は、ステップS905にて設定したNMAX個のプロパティを含むパケットによる通信が成功したか否かを判別する(ステップS906)。 The control unit 406 of the control device 100 determines whether or not the communication using the packet including the N MAX properties set in step S905 is successful (step S906).

ステップS906において通信が成功したと判別した場合(ステップS906;YES)、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXを、その通信に成功したと判別したときのプロパティの数に設定する(ステップS907)。 When it is determined in step S906 that the communication is successful (step S906; YES), the control unit 406 of the control device 100 determines that the maximum number of properties N MAX that can be included in one packet is successful in the communication. It is set to the number of properties at the time (step S907).

ステップS906において通信が失敗したと判別した場合(ステップS906;NO)、制御装置100の制御部406は、通信機器120との通信において一つのパケットに含めることができるプロパティの最大数NMAXを、予め決められた数(例えば1個)だけ更に減少させ(ステップS905)、NMAX個のプロパティ(前回より更に1個少ないプロパティ)を格納したコマンドを含むパケットを生成し、通信機器120へ送信する。 If it is determined in step S906 that the communication has failed (step S906; NO), the control unit 406 of the control device 100 determines the maximum number N MAX of properties that can be included in one packet in communication with the communication device 120. The packet is further reduced by a predetermined number (for example, 1) (step S905), and a packet including a command storing N MAX properties (one property less than the previous time) is generated and transmitted to the communication device 120. .

つまり、制御装置100の制御部406は、通信に成功したと判別するまで、一つのパケットに含めることができるプロパティの最大数NMAXを減少させていく。通信に成功したと判別すると、通信に成功したときの最大数NMAXを、通信機器120との間の通信に用いる。このようにすれば、制御装置100と通信機器120との間の通信に使用できるパケットサイズの最大値、言い換えれば、制御装置100と通信機器120との間で一度に送受信できるパケットサイズの最大値が分かる。なお、プロパティの概念がない通信方式の場合は、パケット内のデータ量を増加又は減少させることにより、パケットによって一度に送受信できるデータのサイズを調整してもよい。また、本実施形態にて各通信パラメータを決定するフローは、あくまで一例であり、例えば、二分木探索等によって通信パラメータを決定してもよい。 In other words, the control unit 406 of the control device 100 decreases the maximum number N MAX of properties that can be included in one packet until it is determined that the communication is successful. When it is determined that the communication is successful, the maximum number N MAX when the communication is successful is used for communication with the communication device 120. In this way, the maximum packet size that can be used for communication between the control device 100 and the communication device 120, in other words, the maximum packet size that can be transmitted and received between the control device 100 and the communication device 120 at one time. I understand. Note that in the case of a communication method that does not have a property concept, the size of data that can be transmitted and received at one time by a packet may be adjusted by increasing or decreasing the amount of data in the packet. The flow for determining each communication parameter in the present embodiment is merely an example, and the communication parameter may be determined by, for example, binary tree search.

次に、送信間隔決定処理の詳細について、図10のフローチャートを用いて説明する。   Next, details of the transmission interval determination process will be described using the flowchart of FIG.

まず、制御装置100の制御部406は、新たな通信機器120との通信にてパケットを送信する際のパケットの送信間隔を既定値に設定する(ステップS1001)。制御装置100の制御部406は、既定値の送信間隔にて、少なくとも二つのパケットからなるコマンドを通信機器120へ送信する。既定値は、送信間隔決定処理により決定される前の暫定的な値である。   First, the control unit 406 of the control device 100 sets a packet transmission interval when transmitting packets in communication with the new communication device 120 to a default value (step S1001). The control unit 406 of the control device 100 transmits a command including at least two packets to the communication device 120 at a predetermined transmission interval. The default value is a provisional value before being determined by the transmission interval determination process.

ここで通信機器120へ送信されるコマンドは、例えば通信機器120の現在の動作状態の送信を要求する状態取得コマンド等、受信した通信機器120が何らかの応答を制御装置100へ返す必要があるコマンドとする。   Here, the command transmitted to the communication device 120 is a command that the received communication device 120 needs to return some response to the control device 100, such as a status acquisition command for requesting transmission of the current operation state of the communication device 120, for example. To do.

制御装置100の制御部406は、ステップS1001にて設定した送信間隔による通信が成功したか否かを判別する(ステップS1002)。   The control unit 406 of the control device 100 determines whether or not the communication using the transmission interval set in step S1001 has succeeded (step S1002).

ステップS1002において通信が成功したと判別した場合(ステップS1002;YES)、制御装置100の制御部406は、パケットの送信間隔を、予め決められた長さ(例えば1ミリ秒)だけ短くし(ステップS1003)、短くした送信間隔で少なくとも二つのパケットを通信機器120へ送信する。   When it is determined in step S1002 that the communication is successful (step S1002; YES), the control unit 406 of the control device 100 shortens the packet transmission interval by a predetermined length (for example, 1 millisecond) (step S1002). In step S1003, at least two packets are transmitted to the communication device 120 at a shortened transmission interval.

制御装置100の制御部406は、ステップS1003にて設定した送信間隔による通信が成功したか否かを判別する(ステップS1004)。   The control unit 406 of the control device 100 determines whether or not the communication using the transmission interval set in step S1003 has succeeded (step S1004).

ステップS1004において通信が成功したと判別した場合(ステップS1004;YES)、制御装置100の制御部406は、送信間隔を、予め決められた長さ(例えば1ミリ秒)だけ更に短くし(ステップS1003)、短くした送信間隔で少なくとも二つのパケットを通信機器120へ送信する。   When it is determined in step S1004 that the communication is successful (step S1004; YES), the control unit 406 of the control device 100 further shortens the transmission interval by a predetermined length (for example, 1 millisecond) (step S1003). ), At least two packets are transmitted to the communication device 120 at a shortened transmission interval.

ステップS1004において通信が失敗したと判別した場合(ステップS1004;NO)、制御装置100の制御部406は、通信機器120との通信における送信間隔ΔTを、最後に通信に成功したときの送信間隔に設定する(ステップS1007)。   When it is determined in step S1004 that communication has failed (step S1004; NO), the control unit 406 of the control device 100 sets the transmission interval ΔT in communication with the communication device 120 to the transmission interval when communication was last successful. Setting is performed (step S1007).

つまり、制御装置100の制御部406は、通信に失敗したと判別するまで、送信間隔を短くしていき、通信に失敗したと判別すると、直前に通信に成功したと判別したときの送信間隔に戻す。このようにすれば、制御装置100と通信機器120との間の通信に使用できる送信間隔の最小値、言い換えれば、最も効率良く通信できる送信間隔が分かる。   That is, the control unit 406 of the control device 100 shortens the transmission interval until it determines that communication has failed, and if it determines that communication has failed, it determines the transmission interval when it has been determined that communication was successful immediately before. return. In this way, the minimum value of the transmission interval that can be used for communication between the control device 100 and the communication device 120, in other words, the transmission interval at which communication can be performed most efficiently is known.

一方、ステップS1002において通信が失敗したと判別した場合(ステップS1002;NO)、制御装置100の制御部406は、送信間隔を、予め決められた長さ(例えば1ミリ秒)だけ長くし(ステップS1005)、長くした送信間隔で少なくとも二つのパケットを通信機器120へ送信する。   On the other hand, if it is determined in step S1002 that communication has failed (step S1002; NO), the control unit 406 of the control device 100 increases the transmission interval by a predetermined length (for example, 1 millisecond) (step S1002). In step S1005, at least two packets are transmitted to the communication device 120 at a longer transmission interval.

制御装置100の制御部406は、ステップS1005にて設定した送信間隔による通信が成功したか否かを判別する(ステップS1006)。   The control unit 406 of the control device 100 determines whether or not the communication using the transmission interval set in step S1005 is successful (step S1006).

ステップS1006において通信が成功したと判別した場合(ステップS1006;YES)、制御装置100の制御部406は、通信機器120との通信におけるパケットの送信間隔ΔTを、その通信に成功したと判別したときの送信間隔に設定する(ステップS1007)。   When it is determined in step S1006 that the communication is successful (step S1006; YES), the control unit 406 of the control device 100 determines that the packet transmission interval ΔT in the communication with the communication device 120 is successful in the communication. (Step S1007).

ステップS1006において通信が失敗したと判別した場合(ステップS1006;NO)、制御装置100の制御部406は、送信間隔を、予め決められた長さ(例えば1ミリ秒)だけ更に長くし(ステップS1005)、長く設定した送信間隔で少なくとも二つのパケットを通信機器120へ送信する。   If it is determined in step S1006 that the communication has failed (step S1006; NO), the control unit 406 of the control device 100 further increases the transmission interval by a predetermined length (for example, 1 millisecond) (step S1005). ) At least two packets are transmitted to the communication device 120 at a long transmission interval.

つまり、制御装置100の制御部406は、通信に成功したと判別するまで、パケットの送信間隔を増加させていく。通信に成功したと判別すると、その通信に成功したときの送信間隔を、通信機器120との間の通信に用いる。このようにすれば、制御装置100と通信機器120との間の通信に使用できる送信間隔の最小値、言い換えれば、最も効率良く通信できる送信間隔が分かる。   That is, the control unit 406 of the control device 100 increases the packet transmission interval until it is determined that the communication is successful. When it is determined that the communication is successful, the transmission interval when the communication is successful is used for communication with the communication device 120. In this way, the minimum value of the transmission interval that can be used for communication between the control device 100 and the communication device 120, in other words, the transmission interval at which communication can be performed most efficiently is known.

次に、タイムアウト値決定処理の詳細について、図11のフローチャートを用いて説明する。   Next, details of the timeout value determination process will be described with reference to the flowchart of FIG.

ここで、コマンドの種類について説明する。制御装置100から通信機器120へ送信されるコマンドには、上述したように、操作コマンド(第1のコマンド)と、状態取得コマンド(第2のコマンド)とがある。   Here, the types of commands will be described. As described above, the commands transmitted from the control device 100 to the communication device 120 include the operation command (first command) and the state acquisition command (second command).

操作コマンドは、主にユーザからの要求に基づいて送信される。制御装置100の制御部406は、ユーザから通信機器120への動作の指示が入力されると、ユーザからの入力に基づいて、操作コマンドを通信機器120へ送信する。   The operation command is transmitted mainly based on a request from the user. When an operation instruction to the communication device 120 is input from the user, the control unit 406 of the control device 100 transmits an operation command to the communication device 120 based on the input from the user.

一方、状態取得コマンドは、ユーザからの要求にかかわらず、制御装置100から通信機器120へ送信される。制御装置100の制御部406は、予め決められた送信条件が満たされると、状態取得コマンドを通信機器120へ送信する。   On the other hand, the status acquisition command is transmitted from the control device 100 to the communication device 120 regardless of a request from the user. The control unit 406 of the control device 100 transmits a state acquisition command to the communication device 120 when a predetermined transmission condition is satisfied.

例えば、通信機器120が空気調和機である場合には、操作コマンドと状態取得コマンドは次に示すように分類される。   For example, when the communication device 120 is an air conditioner, operation commands and status acquisition commands are classified as follows.

(a)操作コマンド(第1のコマンド)
・冷房、暖房、除湿、送風等の動作を開始させるコマンド
・冷房、暖房、除湿、送風等の動作を終了させるコマンド
・目標温度を設定するコマンド
・送風量を設定するコマンド
・動作モード(冷房、暖房、除湿、送風の各モードのいずれか)を設定するコマンド
(A) Operation command (first command)
・ Command to start operations such as cooling, heating, dehumidification, and airflow ・ Command to end operations such as cooling, heating, dehumidification, and airflow ・ Command to set target temperature ・ Command to set airflow ・ Operation mode (cooling, Command to set heating, dehumidification, or air blowing mode

(b)状態取得コマンド(第2のコマンド)
・現在設定されている動作モードを問い合わせるコマンド
・通信機器120によって測定された温度と湿度の送信を要求するコマンド
・以上のほか、ユーザからの明示的な指示に基づかないコマンド
(B) Status acquisition command (second command)
-Command that inquires about the currently set operation mode-Command that requests transmission of temperature and humidity measured by the communication device 120-Other than the above, commands that are not based on explicit instructions from the user

通信機器120は、操作コマンドを制御装置100から受信すると、操作コマンドに基づいて動作する。通信機器120は、操作コマンドを受信したことを示す信号(ACK)を返してもよい。一方、状態取得コマンドを制御装置100から受信すると、通信機器120は、要求された動作状態等を示す情報を含む応答データを返す。   When receiving the operation command from the control device 100, the communication device 120 operates based on the operation command. The communication device 120 may return a signal (ACK) indicating that the operation command has been received. On the other hand, when the state acquisition command is received from the control device 100, the communication device 120 returns response data including information indicating the requested operation state and the like.

図11のタイムアウト値決定処理では、制御装置100は、制御装置100から通信機器120へ状態取得コマンドを送信してから、送信した状態取得コマンドに対する応答データを受信するまでにかかる時間を計測する。   In the timeout value determination process of FIG. 11, the control device 100 measures the time taken from receiving the status acquisition command from the control device 100 to the communication device 120 until receiving response data for the transmitted status acquisition command.

まず、制御装置100の制御部406は、状態取得コマンドを通信機器120へ送信する(ステップS1101)。制御装置100が状態取得コマンドを通信機器120へ送信したときのシステム時刻をTAとする。   First, the control unit 406 of the control device 100 transmits a state acquisition command to the communication device 120 (step S1101). Let TA be the system time when the control device 100 transmits a status acquisition command to the communication device 120.

通信機器120は、状態取得コマンドに対する応答データを制御装置100へ送信する。制御装置100の制御部406は、応答データを受信する(ステップS1102)。制御装置100が状態取得コマンドに対する応答データを通信機器120から受信したときのシステム時刻をTBとする。   The communication device 120 transmits response data for the status acquisition command to the control device 100. The control unit 406 of the control device 100 receives the response data (step S1102). Let TB be the system time when control device 100 receives response data for the status acquisition command from communication device 120.

制御装置100の制御部406は、状態取得コマンドを通信機器120へ送信したシステム時刻TAから、応答データを通信機器120から受信したシステム時刻TBまでの経過時間を計算する(ステップS1103)。   The control unit 406 of the control device 100 calculates the elapsed time from the system time TA at which the status acquisition command is transmitted to the communication device 120 to the system time TB at which the response data is received from the communication device 120 (step S1103).

制御装置100の制御部406は、計算して得た経過時間に予め決められた値を加算した値を、通信に成功したか否かを判別するためのタイムアウト値TOUTに決定する(ステップS1104)。この予め決められた値だけ余裕が与えられる。 The control unit 406 of the control device 100 determines a value obtained by adding a predetermined value to the calculated elapsed time as the timeout value T OUT for determining whether or not the communication is successful (step S1104). ). A margin is given by this predetermined value.

制御装置100の制御部406は、ステップS1101からステップS1103までを複数回繰り返して実行し、制御装置100から通信機器120へ状態取得コマンドを送信してから、送信した状態取得コマンドに対する応答データを受信するまでにかかった経過時間をそれぞれ計測し、得られた経過時間のそれぞれに基づいて、タイムアウト値TOUTを決定してもよい。 The control unit 406 of the control device 100 repeatedly executes steps S1101 to S1103 a plurality of times, transmits a status acquisition command from the control device 100 to the communication device 120, and then receives response data for the transmitted status acquisition command. It is also possible to measure the elapsed time taken until the time is reached and determine the timeout value T OUT based on the obtained elapsed time.

例えば、制御装置100の制御部406は、複数回の経過時間の最大値、もしくは最大値に予め決められた値を加算した値を、タイムアウト値TOUTに決定してもよい。最大値の代わりに、平均値、最頻値、中央値等を用いてもよい。 For example, the control unit 406 of the control device 100 may determine the maximum value of a plurality of elapsed times, or a value obtained by adding a predetermined value to the maximum value as the timeout value T OUT . Instead of the maximum value, an average value, a mode value, a median value, or the like may be used.

本実施形態によれば、制御装置100は、通信機器120の性能に合わせて最適な通信パラメータを決定することができる。一般に、通信機器120によって、通信機器120が有するメモリのサイズやプロセッサの処理速度等が異なるが、本実施形態の制御装置100によれば、通信機器120ごとに最適な通信パラメータを都度決定することができる。   According to the present embodiment, the control device 100 can determine optimal communication parameters in accordance with the performance of the communication device 120. In general, the size of the memory included in the communication device 120, the processing speed of the processor, and the like vary depending on the communication device 120. However, according to the control device 100 of the present embodiment, optimal communication parameters are determined for each communication device 120 each time. Can do.

また、制御装置100が通信機器120と通信して得られた実測値に基づいて、一つのパケットに含めることができるプロパティの最大数NMAXとパケットの送信間隔ΔTとタイムアウト値TOUTが決められるので、信頼性が高く、どのような通信性能の通信機器120であっても対応可能である。 Further, the maximum number N MAX of properties that can be included in one packet, the packet transmission interval ΔT, and the timeout value T OUT are determined based on the actual measurement value obtained by the control device 100 communicating with the communication device 120. Therefore, the communication device 120 with high reliability and any communication performance can be handled.

(実施形態2)
次に、実施形態2について、図12を用いて説明する。本実施形態では、制御装置100は、通信機器120との通信に用いる通信パラメータを示す情報を通信機器120から取得する。
(Embodiment 2)
Next, Embodiment 2 will be described with reference to FIG. In the present embodiment, the control device 100 acquires information indicating communication parameters used for communication with the communication device 120 from the communication device 120.

まず、制御装置100の制御部406は、一つのパケットに含めることができるプロパティの最大数NMAXとパケットの送信間隔ΔTとタイムアウト値TOUTとを含む性能情報の送信を要求するコマンドを通信機器120へ送信する(ステップS1201)。 First, the control unit 406 of the control device 100 transmits a command requesting transmission of performance information including the maximum number N MAX of properties that can be included in one packet, a packet transmission interval ΔT, and a timeout value T OUT to the communication device. It transmits to 120 (step S1201).

通信機器120は、予めメモリに記憶している性能情報を制御装置100へ送信する。制御装置100の制御部406は、性能情報を通信機器120から受信する(ステップS1202)。なお、通信機器120が有するメモリには、出荷時に、性能情報が書き込まれている。   The communication device 120 transmits the performance information stored in advance in the memory to the control device 100. The control unit 406 of the control device 100 receives performance information from the communication device 120 (step S1202). Note that performance information is written in the memory of the communication device 120 at the time of shipment.

そして、制御装置100の制御部406は、受信した性能情報に基づいて、一つのパケットに含めることができるプロパティの最大数NMAXとパケットの送信間隔ΔTとタイムアウト値TOUTとを決定する(ステップS1203)。 Based on the received performance information, the control unit 406 of the control device 100 determines the maximum number N MAX of properties that can be included in one packet, the packet transmission interval ΔT, and the timeout value T OUT (step S1203).

本実施形態によれば、制御装置100は、通信機器120の性能に合わせて最適な通信パラメータを決定することができる。通信パラメータは通信機器120から直接得られるので、信頼性が高い。   According to the present embodiment, the control device 100 can determine optimal communication parameters in accordance with the performance of the communication device 120. Since the communication parameters are obtained directly from the communication device 120, the reliability is high.

(実施形態3)
次に、実施形態3について、図13を用いて説明する。本実施形態では、制御装置100は、通信機器120との通信に用いる通信パラメータを示す情報を、予め用意されたデータベース等から取得する。
(Embodiment 3)
Next, Embodiment 3 will be described with reference to FIG. In the present embodiment, the control device 100 acquires information indicating communication parameters used for communication with the communication device 120 from a database or the like prepared in advance.

まず、制御装置100の制御部406は、通信機器120の種類を識別可能な機器情報の送信を要求するコマンドを通信機器120へ送信する(ステップS1301)。   First, the control unit 406 of the control device 100 transmits a command requesting transmission of device information that can identify the type of the communication device 120 to the communication device 120 (step S1301).

機器情報には、例えば、空気調和機や照明機器等といった通信機器120の種類、通信機器120の製造会社、通信機器120の型番、通信機器120の製造年月日、通信機器120の製造ロット番号、等が含まれる。   The device information includes, for example, the type of the communication device 120 such as an air conditioner or lighting device, the manufacturer of the communication device 120, the model number of the communication device 120, the date of manufacture of the communication device 120, and the production lot number of the communication device 120. , Etc. are included.

通信機器120は、予めメモリに記憶している機器情報を制御装置100へ送信する。制御装置100の制御部406は、機器情報を通信機器120から受信する(ステップS1302)。なお、通信機器120が有するメモリには、出荷時に、機器情報が書き込まれている。   The communication device 120 transmits device information stored in advance in the memory to the control device 100. The control unit 406 of the control device 100 receives device information from the communication device 120 (step S1302). Note that device information is written in the memory of the communication device 120 at the time of shipment.

制御装置100の制御部406は、受信した機器情報に対応付けられる性能情報を取得する(ステップS1303)。例えば、制御装置100の記憶部405には、様々な機器情報と対応付けて性能情報が予め記憶されており、制御部406は、記憶部405から性能情報を読み出す。   The control unit 406 of the control device 100 acquires performance information associated with the received device information (step S1303). For example, performance information is stored in advance in the storage unit 405 of the control device 100 in association with various device information, and the control unit 406 reads the performance information from the storage unit 405.

あるいは、制御装置100の制御部406は、通信ネットワーク140上に設置されている、機器情報と性能情報とを対応付けて記憶したデータベースを有するサーバ(図示せず)に接続し、そのサーバからステップS1302で受信した機器情報に対応する性能情報を受信する。   Alternatively, the control unit 406 of the control device 100 connects to a server (not shown) that is installed on the communication network 140 and has a database that stores the device information and the performance information in association with each other. The performance information corresponding to the device information received in S1302 is received.

そして、制御装置100の制御部406は、取得した性能情報に基づいて、一つのパケットに含めることができるプロパティの最大数NMAXとパケットの送信間隔ΔTとタイムアウト値TOUTとを決定する(ステップS1304)。 Then, based on the acquired performance information, the control unit 406 of the control device 100 determines the maximum number N MAX of properties that can be included in one packet, the packet transmission interval ΔT, and the timeout value T OUT (step). S1304).

本実施形態によれば、制御装置100は、通信機器120の性能に合わせて最適な通信パラメータを決定することができる。通信パラメータは制御装置100と通信機器120に予め記憶されている必要はない。   According to the present embodiment, the control device 100 can determine optimal communication parameters in accordance with the performance of the communication device 120. The communication parameters do not need to be stored in the control device 100 and the communication device 120 in advance.

(実施形態4)
次に、実施形態4について、図14と図15を用いて説明する。本実施形態では、制御装置100は、複数の通信機器120と通信する。制御装置100は、通信相手ごとに通信パラメータを使い分ける。
(Embodiment 4)
Next, Embodiment 4 will be described with reference to FIGS. 14 and 15. In the present embodiment, the control device 100 communicates with a plurality of communication devices 120. The control device 100 uses different communication parameters for each communication partner.

まず、制御装置100の制御部406は、複数の通信機器120のそれぞれについて、上述した実施形態1、2、3のいずれかに示した手順により、通信パラメータを決定する(ステップS1401)。   First, the control unit 406 of the control device 100 determines communication parameters for each of the plurality of communication devices 120 according to the procedure described in any of Embodiments 1, 2, and 3 described above (step S1401).

制御装置100の制御部406は、決定した通信パラメータを、通信機器120を識別可能な識別情報と対応付けて、記憶部405に記憶する(ステップS1402)。   The control unit 406 of the control device 100 stores the determined communication parameter in the storage unit 405 in association with identification information that can identify the communication device 120 (step S1402).

図15に、記憶部405に記憶される、通信機器120の識別情報と対応付けて通信パラメータを定義する定義データの例を示す。記憶部405には、複数の通信機器120の識別情報のそれぞれと対応付けて、一つのパケットに格納できるプロパティの最大数NMAXと、パケットの送信間隔ΔTと、タイムアウト値TOUTとが記憶される。 FIG. 15 shows an example of definition data that is stored in the storage unit 405 and defines communication parameters in association with the identification information of the communication device 120. The storage unit 405 stores a maximum number of properties N MAX that can be stored in one packet, a packet transmission interval ΔT, and a timeout value T OUT in association with each piece of identification information of the plurality of communication devices 120. The

制御装置100の制御部406は、新たな通信機器120を検知してその通信機器120との通信に用いる通信パラメータを決定すると、図15に示す定義データに、決定した通信パラメータを含むレコードを追加していく。   When the control unit 406 of the control device 100 detects a new communication device 120 and determines a communication parameter to be used for communication with the communication device 120, the control unit 406 adds a record including the determined communication parameter to the definition data illustrated in FIG. I will do it.

制御装置100の制御部406は、いずれかの通信機器120との間の通信を開始するか否かを判別する(ステップS1403)。   The control unit 406 of the control device 100 determines whether to start communication with any one of the communication devices 120 (step S1403).

通信を開始しない場合(ステップS1403;NO)、通信処理を終了する。通信を開始する場合(ステップS1403;YES)、制御装置100の制御部406は、通信を開始する相手である通信機器120を示す識別情報に対応付けて記憶されている通信パラメータを記憶部405から読み出し(ステップS1404)、読み出した通信パラメータを用いて通信する(ステップS1405)。   If communication is not started (step S1403; NO), the communication process is terminated. When communication is started (step S1403; YES), the control unit 406 of the control device 100 uses the storage unit 405 to store communication parameters stored in association with identification information indicating the communication device 120 that is a communication start partner. Reading (step S1404), communication is performed using the read communication parameter (step S1405).

本実施形態によれば、制御装置100は、複数の通信機器120のそれぞれと、最適な通信方式を用いて通信することができる。なお、制御装置100の制御部406は、図15に示す情報を、上述した実施形態1、2、3に示した手順のいずれに従って決定してもよい。例えば、第1の通信機器については、実施形態1に示したように実測値に基づいて通信パラメータを決定し、第2の通信機器については、実施形態2に示したように通信機器120から取得した性能情報に基づいて通信パラメータを決定する、といったように、通信機器120ごとに通信パラメータの決定手順が異なっていてもよい。   According to the present embodiment, the control device 100 can communicate with each of the plurality of communication devices 120 using an optimal communication method. Note that the control unit 406 of the control device 100 may determine the information shown in FIG. 15 according to any of the procedures shown in the first, second, and third embodiments. For example, for the first communication device, communication parameters are determined based on the actual measurement values as shown in the first embodiment, and for the second communication device, acquired from the communication device 120 as shown in the second embodiment. The communication parameter determination procedure may be different for each communication device 120, such as determining communication parameters based on the performance information.

(実施形態5)
次に、実施形態5について、図16を用いて説明する。本実施形態では、制御装置100は、複数の通信機器120と通信する。制御装置100は、最も性能が低いと推定される通信機器120との間の通信について決定した通信パラメータを、すべての通信機器120との間の通信に利用する。
(Embodiment 5)
Next, Embodiment 5 will be described with reference to FIG. In the present embodiment, the control device 100 communicates with a plurality of communication devices 120. The control device 100 uses the communication parameters determined for communication with the communication device 120 estimated to have the lowest performance for communication with all the communication devices 120.

まず、制御装置100の制御部406は、複数の通信機器120のそれぞれについて、上述した実施形態1、2、3のいずれかに示した手順により、通信パラメータを決定する(ステップS1601)。   First, the control unit 406 of the control device 100 determines communication parameters for each of the plurality of communication devices 120 according to the procedure described in any of the first, second, and third embodiments (step S1601).

制御装置100の制御部406は、決定した通信パラメータを、通信機器120を識別可能な識別情報と対応付けて、例えば図15に示すように、記憶部405に記憶する(ステップS1602)。   The control unit 406 of the control device 100 stores the determined communication parameter in the storage unit 405, for example, as illustrated in FIG. 15 in association with identification information that can identify the communication device 120 (step S1602).

制御装置100の制御部406は、記憶部405に記憶されている識別情報と通信パラメータとの対応付けを示すデータの中から、一つのパケットに格納できるプロパティの最大数NMAXのうち最も小さい値を取得し、パケットの送信間隔ΔTのうち最も長い値を取得し、タイムアウト値TOUTのうち最も長い値を取得し、すべての通信機器120との間の通信に用いると決定する(ステップS1603)。 The control unit 406 of the control device 100 has the smallest value among the maximum number N MAX of properties that can be stored in one packet from the data indicating the correspondence between the identification information and the communication parameters stored in the storage unit 405. Is acquired, the longest value of the packet transmission intervals ΔT is acquired, the longest value of the timeout value T OUT is acquired, and it is determined to use for communication with all the communication devices 120 (step S1603). .

すなわち、制御装置100は、通信可能な通信機器120のうち、最も性能が低い通信機器120に通信パラメータを合わせる。これにより、一組のプロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTが、すべての通信機器120との通信に用いられるので、通信処理が簡略化し、メモリの消費量をより少なく抑えることができる。 That is, the control device 100 matches the communication parameter with the communication device 120 having the lowest performance among the communication devices 120 capable of communication. As a result, the maximum number N MAX of the set of properties, the transmission interval ΔT, and the timeout value T OUT are used for communication with all the communication devices 120, thereby simplifying the communication processing and reducing the memory consumption. be able to.

制御装置100の制御部406は、いずれかの通信機器120との間の通信を開始するか否かを判別する(ステップS1604)。   The control unit 406 of the control device 100 determines whether to start communication with any of the communication devices 120 (step S1604).

通信を開始しない場合(ステップS1604;NO)、通信処理を終了する。通信を開始する場合(ステップS1604;YES)、制御装置100の制御部406は、ステップS1601で決定した通信パラメータを用いて通信する(ステップS1605)。   If communication is not started (step S1604; NO), the communication process is terminated. When communication is started (step S1604; YES), the control unit 406 of the control device 100 performs communication using the communication parameter determined in step S1601 (step S1605).

本実施形態によれば、制御装置100は、複数の通信機器120のそれぞれと、共通した通信パラメータを用いて通信することができ、通信処理の簡略化が可能となる。   According to the present embodiment, the control device 100 can communicate with each of the plurality of communication devices 120 using common communication parameters, and communication processing can be simplified.

なお、制御装置100の制御部406は、プロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTのうちいずれか一つ又は二つをすべての通信機器120に共通して用い、残りの一つ又は二つを通信機器120ごとに使い分けるようにしてもよい。例えば、制御装置100の制御部406は、一つのタイムアウト値TOUTをすべての通信機器120について共通して用い、プロパティの最大数NMAXと送信間隔ΔTを通信機器120ごとに個別に設定して用いてもよい。 The control unit 406 of the control device 100 uses any one or two of the maximum number of properties N MAX , the transmission interval ΔT, and the timeout value T OUT in common for all the communication devices 120, and the remaining one. One or two may be used for each communication device 120. For example, the control unit 406 of the control device 100 uses one timeout value T OUT in common for all the communication devices 120 and sets the maximum number of properties N MAX and the transmission interval ΔT for each communication device 120 individually. It may be used.

(実施形態6)
次に、実施形態6について、図17等を用いて説明する。本実施形態では、制御装置100は、複数の通信機器120と通信する。制御装置100は、通信機器120の性能に基づいて通信機器120をグループ化し、グループ単位で通信パラメータを使い分ける。
(Embodiment 6)
Next, Embodiment 6 will be described with reference to FIG. In the present embodiment, the control device 100 communicates with a plurality of communication devices 120. The control device 100 groups the communication devices 120 based on the performance of the communication device 120, and uses the communication parameters for each group.

まず、制御装置100の制御部406は、複数の通信機器120のそれぞれについて、上述した実施形態1、2、3のいずれかに示した手順により、通信パラメータを決定する(ステップS1701)。   First, the control unit 406 of the control device 100 determines communication parameters for each of the plurality of communication devices 120 according to the procedure described in any of Embodiments 1, 2, and 3 described above (step S1701).

制御装置100の制御部406は、決定した通信パラメータを、通信機器120を識別可能な識別情報と対応付けて、例えば図15に示すように、記憶部405に記憶する(ステップS1702)。   The control unit 406 of the control device 100 stores the determined communication parameter in the storage unit 405 in association with identification information that can identify the communication device 120, for example, as illustrated in FIG. 15 (step S1702).

制御装置100の制御部406は、複数の通信機器を、通信性能に基づいてグループ化する(ステップS1703)。   The control unit 406 of the control device 100 groups a plurality of communication devices based on communication performance (step S1703).

例えば、制御装置100の制御部406は、図18Aに示すように、複数の通信機器120を、一つのパケットに格納できるプロパティの最大数NMAXが、(a)第1の値から、第1の値より大きい第2の値までの第1グループと、(b)第2の値に1を加算した第3の値から、第3の値より大きい第4の値までの第2グループと、(c)第4の値に1を加算した第5の値よりも大きい第3グループと、の三つに分類する。 For example, as illustrated in FIG. 18A, the control unit 406 of the control device 100 determines that the maximum number N MAX of properties that can store a plurality of communication devices 120 in one packet is (a) the first value from the first value. A first group up to a second value greater than the value of (b), (b) a second group from a third value obtained by adding 1 to the second value to a fourth value greater than the third value; (C) The third group is classified into a third group larger than the fifth value obtained by adding 1 to the fourth value.

ただし、グループの数、グループを規定する値の範囲は、任意に変更可能である。   However, the number of groups and the range of values defining the groups can be arbitrarily changed.

また、制御装置100の制御部406は、図18Bに示すように、各グループについて、一つのパケットに格納できるプロパティの最大数NMAXを設定する。 In addition, as illustrated in FIG. 18B, the control unit 406 of the control device 100 sets the maximum number of properties N MAX that can be stored in one packet for each group.

例えば、制御装置100の制御部406は、グループ内におけるプロパティの最大数NMAXのうち最も小さい値を、そのグループに対応付けられるプロパティの最大数NMAXに設定する。ただし、最も小さい値の代わりに、平均値、中央値、最頻値等が用いられてもよい。 For example, the control unit 406 of the control device 100 sets the smallest value among the maximum number of properties N MAX in the group as the maximum number of properties N MAX associated with the group. However, an average value, a median value, a mode value, or the like may be used instead of the smallest value.

つまり、プロパティの最大数NMAXについて、通信機器120が属するグループが決まれば、制御装置100がその通信機器120と通信する際のプロパティの最大数NMAXが決まる。二つの通信機器120が属するグループが同じであれば、プロパティの最大数NMAXは両方とも同じになる。 In other words, the maximum number N MAX of properties, once the group communication apparatus 120 belongs, the maximum number N MAX of properties when the control apparatus 100 to communicate with the communication device 120 is determined. If the groups to which the two communication devices 120 belong are the same, the maximum number of properties N MAX is the same for both.

同様に、制御装置100の制御部406は、図19Aに示すように、複数の通信機器120を、パケットの送信間隔ΔTが、(a)第1の値から、第1の値より大きい第2の値までの第1グループと、(b)第2の値に最小単位(例えば1ミリ秒)を加算した第3の値から、第3の値より大きい第4の値までの第2グループと、(c)第4の値に最小単位(例えば1ミリ秒)を加算した第5の値よりも大きい第3グループと、の三つに分類する。   Similarly, as illustrated in FIG. 19A, the control unit 406 of the control device 100 allows the plurality of communication devices 120 to change the packet transmission interval ΔT from (a) the first value to the second greater than the first value. (B) a second group from a third value obtained by adding a minimum unit (for example, 1 millisecond) to a second value to a fourth value greater than the third value; And (c) a third group that is larger than a fifth value obtained by adding a minimum unit (for example, 1 millisecond) to the fourth value.

制御装置100の制御部406は、図19Bに示すように、各グループについて、パケットの送信間隔ΔTを設定する。   As shown in FIG. 19B, the control unit 406 of the control device 100 sets a packet transmission interval ΔT for each group.

例えば、制御装置100の制御部406は、グループ内におけるパケットの送信間隔ΔTのうち最も大きい値を、そのグループに対応付けられるパケットの送信間隔ΔTに設定する。ただし、最も大きい値の代わりに、平均値、中央値、最頻値等が用いられてもよい。   For example, the control unit 406 of the control device 100 sets the largest value among the packet transmission intervals ΔT in the group as the packet transmission interval ΔT associated with the group. However, an average value, a median value, a mode value, or the like may be used instead of the largest value.

つまり、パケットの送信間隔ΔTについて、通信機器120が属するグループが決まれば、制御装置100がその通信機器120と通信する際のパケットの送信間隔ΔTが決まる。二つの通信機器120が属するグループが同じであれば、パケットの送信間隔ΔTは同じになる。   That is, regarding the packet transmission interval ΔT, if the group to which the communication device 120 belongs is determined, the packet transmission interval ΔT when the control device 100 communicates with the communication device 120 is determined. If the groups to which the two communication devices 120 belong are the same, the packet transmission interval ΔT is the same.

ただし、グループの数、グループを規定する値の範囲は、任意に変更可能である。送信間隔ΔTについてグループ分けする場合の第1、第2、第3、第4、第5の各値は、プロパティの最大数NMAXについてグループ分けする場合の第1、第2、第3、第4、第5の各値とは異なる。 However, the number of groups and the range of values defining the groups can be arbitrarily changed. The first, second, third, fourth, and fifth values when grouping with respect to the transmission interval ΔT are the first, second, third, and third values when grouping with respect to the maximum number of properties N MAX . It differs from the 4th and 5th values.

同様に、制御装置100の制御部406は、図20Aに示すように、複数の通信機器120を、タイムアウト値TOUTが、(a)第1の値から、第1の値より大きい第2の値までの第1グループと、(b)第2の値に最小単位(例えば1ミリ秒)を加算した第3の値から、第3の値より大きい第4の値までの第2グループと、(c)第4の値に最小単位(例えば1ミリ秒)を加算した第5の値よりも大きい第3グループと、の三つに分類する。 Similarly, as illustrated in FIG. 20A, the control unit 406 of the control device 100 allows the plurality of communication devices 120 to output a second timeout value T OUT that is greater than the first value from (a) the first value. A first group up to a value, and (b) a second group from a third value obtained by adding a minimum unit (for example, 1 millisecond) to the second value to a fourth value greater than the third value; (C) The third group is classified into a third group that is larger than the fifth value obtained by adding a minimum unit (for example, 1 millisecond) to the fourth value.

制御装置100の制御部406は、図20Bに示すように、各グループについて、タイムアウト値TOUTを設定する。 As illustrated in FIG. 20B, the control unit 406 of the control device 100 sets a timeout value T OUT for each group.

例えば、制御装置100の制御部406は、グループ内におけるタイムアウト値TOUTのうち最も大きい値を、そのグループに対応付けられるタイムアウト値TOUTに設定する。ただし、最も大きい値の代わりに、平均値、中央値、最頻値等が用いられてもよい。 For example, the control unit 406 of the control device 100 sets the largest value among the timeout values T OUT in the group as the timeout value T OUT associated with the group. However, an average value, a median value, a mode value, or the like may be used instead of the largest value.

つまり、タイムアウト値TOUTについて、通信機器120が属するグループが決まれば、制御装置100がその通信機器120との間で通信する際のタイムアウト値TOUTが決まる。二つの通信機器120が属するグループが同じであれば、タイムアウト値は同じになる。 That is, regarding the timeout value T OUT , if the group to which the communication device 120 belongs is determined, the timeout value T OUT when the control device 100 communicates with the communication device 120 is determined. If the group to which the two communication devices 120 belong is the same, the timeout value is the same.

ただし、グループの数、グループを規定する値の範囲は、任意に変更可能である。タイムアウト値TOUTについてグループ分けする場合の第1、第2、第3、第4、第5の各値は、プロパティの最大数NMAXと送信間隔ΔTについてグループ分けする場合の第1、第2、第3、第4、第5の各値とは異なる。 However, the number of groups and the range of values defining the groups can be arbitrarily changed. The first, second, third, fourth, and fifth values when grouping for the timeout value T OUT are the first and second values when grouping for the maximum number of properties N MAX and the transmission interval ΔT. , Third, fourth and fifth values are different.

例えば、識別情報が“A001”の通信機器120は、プロパティの最大数NMAXについては第1グループに属し、パケットの送信間隔ΔTについては第3グループに属し、タイムアウト値TOUTについては第2グループに属する。制御装置100の制御部406は、この識別情報が“A001”の通信機器120と通信する際には、プロパティの最大数NMAXについては第1グループに対応付けられる値“10”が、送信間隔ΔTについては第3グループに対応付けられる値“1”が、タイムアウト値TOUTについては第2グループに対応付けられる値“1000”が、それぞれ用いられる。 For example, the communication device 120 with the identification information “A001” belongs to the first group for the maximum number N MAX of properties, belongs to the third group for the packet transmission interval ΔT, and the second group for the timeout value T OUT. Belonging to. When the control unit 406 of the control device 100 communicates with the communication device 120 whose identification information is “A001”, the value “10” associated with the first group is set to the transmission interval for the maximum number N MAX of properties. A value “1” associated with the third group is used for ΔT, and a value “1000” associated with the second group is used for the timeout value T OUT .

本実施形態では、プロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTとのそれぞれについて別途グループ化しているが、これら通信パラメータのうちいずれか二つあるいは三つを組み合わせてグループ化してもよい。例えば、制御装置100の制御部406は、図21に示すように、プロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTの三つを用いて通信機器120をグループ化し、グループごとにプロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTを設定してもよい。 In this embodiment, the maximum number of properties N MAX , the transmission interval ΔT, and the timeout value T OUT are separately grouped. However, even if any two or three of these communication parameters are combined and grouped. Good. For example, as shown in FIG. 21, the control unit 406 of the control apparatus 100 groups the communication devices 120 using the maximum number of properties N MAX , the transmission interval ΔT, and the timeout value T OUT , and sets the property for each group. The maximum number N MAX , the transmission interval ΔT, and the timeout value T OUT may be set.

次に、制御装置100の制御部406は、いずれかの通信機器120との間の通信を開始するか否かを判別する(ステップS1704)。   Next, the control unit 406 of the control device 100 determines whether or not to start communication with any of the communication devices 120 (step S1704).

通信を開始しない場合(ステップS1704;NO)、通信処理を終了する。通信を開始する場合(ステップS1704;YES)、制御装置100の制御部406は、通信を開始する相手となる通信機器120が属するグループに対応付けられる通信パラメータ(具体的にはプロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTのうち少なくともいずれか一つ)を記憶部405から読み出し(ステップS1705)、読み出した通信パラメータを用いて通信する(ステップS1706)。 If communication is not started (step S1704; NO), the communication process is terminated. When starting communication (step S1704; YES), the control unit 406 of the control device 100 causes the communication parameter (specifically, the maximum number N of properties) associated with the group to which the communication device 120 that is the communication start partner belongs. MAX at least read any one) from the storage unit 405 of the transmission interval ΔT and timeout value T oUT (step S1705), communication using the communication parameters read (step S1706).

本実施形態によれば、制御装置100は、複数の通信機器120のそれぞれと、グループ単位で共通した通信パラメータを用いて通信することができ、通信処理の簡略化が可能となる。   According to the present embodiment, the control device 100 can communicate with each of the plurality of communication devices 120 using a common communication parameter in units of groups, and communication processing can be simplified.

(実施形態7)
次に、実施形態7について、図22、図23を用いて説明する。本実施形態では、制御装置100は、通信可能なすべての通信機器120の中に、相対的に性能が大きく劣っている通信機器があれば、その通信機器120との通信を制限する。
(Embodiment 7)
Next, Embodiment 7 will be described with reference to FIGS. In the present embodiment, the control device 100 restricts communication with the communication device 120 if there is a communication device that is relatively poor in performance among all the communication devices 120 capable of communication.

制限とは、制御装置100が通信機器120との一切の通信を行わないことでもよいし、コマンドの種類によって通信したり通信しなかったりすることでもよい。   The restriction may be that the control device 100 does not perform any communication with the communication device 120 or may or may not communicate depending on the type of command.

図22に、上記実施形態1、2、3に示した手順にて決定して記憶部405に記憶した、通信機器120ごとの通信パラメータを定義する定義データの例を示す。   FIG. 22 shows an example of definition data defining communication parameters for each communication device 120 determined by the procedure shown in the first, second, and third embodiments and stored in the storage unit 405.

制御装置100の制御部406は、決定された通信パラメータの値のそれぞれについて、制御装置100が通信対象とするか否かの判別に用いるしきい値を設定する。そして、制御部406は、しきい値を用いて通信条件を定義し、通信パラメータが通信条件を満たせば、その通信パラメータが対応付けられる通信機器120と通信する。一方、通信パラメータが通信条件を満たさなければ、制御部406は、その通信パラメータが対応付けられる通信機器120と通信しない、と決定する。   The control unit 406 of the control device 100 sets a threshold value used for determining whether or not the control device 100 is a communication target for each of the determined communication parameter values. Then, the control unit 406 defines a communication condition using a threshold value, and communicates with the communication device 120 associated with the communication parameter if the communication parameter satisfies the communication condition. On the other hand, if the communication parameter does not satisfy the communication condition, the control unit 406 determines not to communicate with the communication device 120 associated with the communication parameter.

具体的には、通信条件は、“決定された一つのパケットに格納できるプロパティの最大数NMAXが第1のしきい値以上であること”である。制御装置100の制御部406は、一つのパケットに格納できるプロパティの最大数NMAXに第1のしきい値を設定し、決定されたプロパティの最大数NMAXが第1のしきい値より少なければ、その通信機器120との通信を制限する。つまり、プロパティの最大数NMAXが極端に少ないと、その通信機器120との通信の効率が悪くなり、通信システム1全体の通信に悪い影響を与えかねないため、その通信機器120との通信に制限を設けるのである。 Specifically, the communication condition is “the maximum number N MAX of properties that can be stored in one determined packet is equal to or greater than the first threshold value”. The control unit 406 of the control device 100 sets a first threshold value for the maximum number of properties N MAX that can be stored in one packet, and the determined maximum number of properties N MAX must be less than the first threshold value. For example, communication with the communication device 120 is restricted. That is, if the maximum number N MAX of properties is extremely small, the efficiency of communication with the communication device 120 is deteriorated, which may adversely affect the communication of the communication system 1 as a whole. Limits are set.

例えば、図22において、通信条件を“プロパティの最大数NMAXが10以上であること”と定義すると、制御装置100の制御部406は、この通信条件を満たさない識別情報が“A004”の通信機器120との通信を制限する。 For example, in FIG. 22, when the communication condition is defined as “the maximum number of properties N MAX is 10 or more”, the control unit 406 of the control device 100 performs communication with identification information “A004” that does not satisfy the communication condition. Restrict communication with the device 120.

また、通信条件は、“決定されたパケットの送信間隔ΔTが第2のしきい値以下であること”である。制御装置100の制御部406は、パケットの送信間隔ΔTに第2のしきい値を設定し、決定された送信間隔ΔTが第2のしきい値より長ければ、その通信機器120との通信を制限する。つまり、パケットの送信間隔が極端に長いと、その通信機器120との通信の効率が悪くなり、通信システム1全体の通信に悪い影響を与えかねないため、その通信機器120との通信に制限を設けるのである。   The communication condition is “the determined packet transmission interval ΔT is equal to or smaller than the second threshold value”. The control unit 406 of the control device 100 sets a second threshold value for the packet transmission interval ΔT, and if the determined transmission interval ΔT is longer than the second threshold value, performs communication with the communication device 120. Restrict. That is, if the packet transmission interval is extremely long, the efficiency of communication with the communication device 120 is deteriorated, and the communication of the communication system 1 as a whole may be adversely affected. It is provided.

例えば、図22において、通信条件を“送信間隔ΔTが20ミリ秒以下であること”と定義すると、制御装置100の制御部406は、この通信条件を満たさない識別情報が“A003”及び“A004”の通信機器120との通信を制限する。   For example, in FIG. 22, when the communication condition is defined as “transmission interval ΔT is 20 milliseconds or less”, the control unit 406 of the control device 100 indicates that the identification information that does not satisfy this communication condition is “A003” and “A004”. The communication with the communication device 120 is restricted.

また、通信条件は、“決定されたタイムアウト値TOUTが第3のしきい値以下であること”である。制御装置100の制御部406は、タイムアウト値TOUTに第3のしきい値を設定し、決定されたタイムアウト値TOUTが第3のしきい値より大きければ、その通信機器120との通信を制限する。つまり、タイムアウト値TOUTが極端に長いと、その通信機器120との通信の効率が悪くなり、通信システム1全体の通信に悪い影響を与えかねないため、その通信機器120との通信に制限を設けるのである。 The communication condition is “the determined timeout value T OUT is equal to or less than the third threshold value”. Control unit 406 of the control unit 100 sets the third threshold timeout value T OUT, if determined timeout value T OUT is greater than the third threshold value, the communication with the communication device 120 Restrict. That is, if the timeout value T OUT is extremely long, the efficiency of communication with the communication device 120 is deteriorated, which may adversely affect the communication of the communication system 1 as a whole. It is provided.

例えば、図22において、通信条件を“タイムアウト値TOUTが1000ミリ秒以下であること”と定義すると、制御装置100の制御部406は、この通信条件を満たさない識別情報が“A002”及び“A003”及び“A004”の通信機器120との通信を制限する。 For example, in FIG. 22, if the communication condition is defined as “the timeout value T OUT being 1000 milliseconds or less”, the control unit 406 of the control device 100 indicates that the identification information that does not satisfy this communication condition is “A002” and “ The communication with the communication device 120 of “A003” and “A004” is restricted.

制御装置100の制御部406は、プロパティの最大数NMAXと送信間隔ΔTとタイムアウト値TOUTのうち少なくともいずれか一つを含む通信条件を定義することができる。例えば、制御部406は、通信条件を、“決定された一つのパケットに格納できるプロパティの最大数NMAXが第1のしきい値以上であり、且つ、決定されたパケットの送信間隔ΔTが第2のしきい値以下であり、且つ、決定されたタイムアウト値TOUTが第3のしきい値以下であること”としてもよい。 The control unit 406 of the control device 100 can define a communication condition including at least one of the maximum number of properties N MAX , the transmission interval ΔT, and the timeout value T OUT . For example, the control unit 406 determines that the communication condition “the maximum number N MAX of properties that can be stored in one determined packet is equal to or greater than the first threshold value and the transmission interval ΔT of the determined packet is the first 2 or less and the determined timeout value T OUT may be less than or equal to the third threshold value ”.

制御装置100の制御部406は、通信条件を満たさない通信機器120との間のすべての通信を制限してもよいし、状況に応じて、例えばコマンドの種類に応じて、通信条件を満たすか否かを判別したり判別しなかったりしてもよい。   The control unit 406 of the control device 100 may restrict all communication with the communication device 120 that does not satisfy the communication condition, and according to the situation, for example, according to the type of command, may the communication condition be satisfied? It may be determined whether or not.

また、制御装置100の制御部406は、通信条件を満たさない場合には、図22に示す定義データにその通信機器120に対応するレコードを格納せずに通信対象から除外してもよい。   Further, if the communication condition is not satisfied, the control unit 406 of the control device 100 may exclude the communication data from the communication target without storing the record corresponding to the communication device 120 in the definition data illustrated in FIG.

次に、図23に、本実施形態における通信処理を説明するフローチャートを示す。ここでは、制御装置100は、コマンドの種類ごとに制限対象となり得るか否かを予め定義している。   Next, FIG. 23 shows a flowchart for explaining communication processing in the present embodiment. Here, the control device 100 defines in advance whether or not each type of command can be a restriction target.

まず、制御装置100の制御部406は、通信機器120に送信すべきコマンドが制限対象となり得るか否かを判別する(ステップS2301)。   First, the control unit 406 of the control device 100 determines whether a command to be transmitted to the communication device 120 can be a restriction target (step S2301).

通信機器120に送信すべきコマンドが制限対象となり得る場合(ステップS2301;YES)、制御装置100の制御部406は、送信先となる通信機器120に設定されている通信パラメータが通信条件を満たすか否かを判別する(ステップS2302)。   When a command to be transmitted to the communication device 120 can be a restriction target (step S2301; YES), the control unit 406 of the control device 100 determines whether the communication parameter set in the communication device 120 serving as a transmission condition satisfies the communication condition. It is determined whether or not (step S2302).

通信条件が満たされると判別した場合(ステップS2302;YES)、制御装置100の制御部406は、コマンドを通信機器120へ送信し(ステップS2303)、応答データを受信する(ステップS2304)。ただし、コマンドに対する応答データが必須でない場合には、ステップS2304は省略される。   When it is determined that the communication condition is satisfied (step S2302; YES), the control unit 406 of the control device 100 transmits a command to the communication device 120 (step S2303) and receives response data (step S2304). However, if response data for the command is not essential, step S2304 is omitted.

一方、通信条件が満たされないと判別した場合(ステップS2302;NO)、制御装置100の制御部406は、コマンドを通信機器120へ送信しない。   On the other hand, when it is determined that the communication condition is not satisfied (step S2302; NO), the control unit 406 of the control device 100 does not transmit the command to the communication device 120.

送信すべきコマンドが制限対象に含まれるとしても、通信条件が満たされるのであれば、そのコマンドは通信機器120へ送信される。しかし、通信条件が満たされないのであれば、そのコマンドは通信機器120へ送信されない。   Even if the command to be transmitted is included in the restriction target, the command is transmitted to the communication device 120 if the communication condition is satisfied. However, if the communication condition is not satisfied, the command is not transmitted to the communication device 120.

なお、ステップS2301においてコマンドが制限対象となり得ないと判別した場合には(ステップS2301;NO)、制御装置100の制御部406は、通信条件にかかわらず、コマンドを通信機器120へ送信する。   When it is determined in step S2301 that the command cannot be a restriction target (step S2301; NO), the control unit 406 of the control device 100 transmits the command to the communication device 120 regardless of the communication condition.

例えば、制御装置100が通信可能なすべての通信機器120の現在の動作状態を表示させる旨の指示がユーザから入力されると、制御装置100の制御部406は、すべての通信機器120に対応付けられる通信パラメータのそれぞれについて、通信条件が満たされるか否かを判別する。そして、制御部406は、通信条件が満たされる通信パラメータが対応付けられている通信機器120には状態取得コマンドを送信し、通信条件が満たされない通信パラメータが対応付けられている通信機器120には状態取得コマンドを送信しない。なお、通信条件が満たされない場合には、制御部406は、通信条件が満たされない旨、もしくは、通信を制限している旨を表示してユーザに報知することが望ましい。   For example, when the user inputs an instruction to display the current operation state of all communication devices 120 with which the control device 100 can communicate, the control unit 406 of the control device 100 associates with all the communication devices 120. It is determined whether or not the communication condition is satisfied for each of the communication parameters. Then, the control unit 406 transmits a status acquisition command to the communication device 120 associated with the communication parameter that satisfies the communication condition, and transmits to the communication device 120 associated with the communication parameter that does not satisfy the communication condition. Do not send status acquisition commands. When the communication condition is not satisfied, the control unit 406 desirably notifies the user by displaying that the communication condition is not satisfied or that communication is restricted.

本実施形態によれば、制御装置100は、状況に応じて通信を制限し、通信システム1全体の通信効率が悪くなることを防止することができる。また、制御装置100にかかる負荷を軽減することができる。   According to the present embodiment, the control device 100 can restrict communication according to the situation and prevent the communication efficiency of the entire communication system 1 from being deteriorated. Further, the load on the control device 100 can be reduced.

(実施形態8)
次に、実施形態8について、図24を用いて説明する。本実施形態では、コマンドの種類に応じて通信パラメータを使い分ける。
(Embodiment 8)
Next, Embodiment 8 will be described with reference to FIG. In this embodiment, communication parameters are used properly according to the type of command.

上述したように、制御装置100は、通信システム1に含まれる通信機器120と、操作コマンドと状態取得コマンドを用いて、通信する。ところで、通信機器120には様々な種類があるし、一般に処理速度や記憶容量といったハードウェア的な性能も様々である。また、制御装置100と通信機器120とで製造会社や通信仕様が異なる場合がある。更に、製造会社が同じであったとしても、通信機器120の型式が古かったり通信仕様が異なっていたりする可能性がある。そこで、本実施形態の制御装置100は、様々な通信機器120に対応できるように構成される。   As described above, the control device 100 communicates with the communication device 120 included in the communication system 1 using the operation command and the state acquisition command. By the way, there are various types of communication devices 120, and generally, there are various hardware performances such as processing speed and storage capacity. In addition, the manufacturer and communication specifications may differ between the control device 100 and the communication device 120. Furthermore, even if the manufacturing companies are the same, there is a possibility that the model of the communication device 120 is old or the communication specifications are different. Therefore, the control device 100 according to the present embodiment is configured to be compatible with various communication devices 120.

制御装置100の制御部406は、通信機器120に送信するコマンドが、操作コマンドに分類されるか状態取得コマンドに分類されるかを判別する(ステップS2401)。そして、制御装置100の制御部406は、操作コマンドに分類されるならば(ステップS2401;YES)、通信パラメータを第1の通信仕様に設定し(ステップS2402)、状態取得コマンドに分類されるのであれば(ステップS2401;NO)、通信パラメータを第2の通信仕様に設定する(ステップS2403)。   The control unit 406 of the control device 100 determines whether the command transmitted to the communication device 120 is classified as an operation command or a status acquisition command (step S2401). If the control unit 406 of the control device 100 is classified as an operation command (step S2401; YES), the communication parameter is set to the first communication specification (step S2402) and is classified as a status acquisition command. If there is (step S2401; NO), the communication parameter is set to the second communication specification (step S2403).

より詳細には、制御装置100の制御部406は、コマンドの種類に応じて、一つのパケットに格納できるプロパティの最大数NMAXと、パケットの送信間隔ΔTと、タイムアウト値TOUTとを決定する。 More specifically, the control unit 406 of the control apparatus 100 determines the maximum number N MAX of properties that can be stored in one packet, the packet transmission interval ΔT, and the timeout value T OUT according to the type of command. .

制御装置100の制御部406は、通信機器120へ送信するコマンドが操作コマンドであれば、一つのパケットに格納するプロパティの最大数NMAXを第1の値VAに設定し、通信機器120へ送信するコマンドが状態取得コマンドであれば、一つのパケットに格納するプロパティの最大数NMAXを第2の値VBに設定する。第1の値VAは第2の値VBよりも大きく設定される。 If the command to be transmitted to the communication device 120 is an operation command, the control unit 406 of the control device 100 sets the maximum number of properties N MAX stored in one packet to the first value VA, and transmits to the communication device 120. If the command to be executed is a status acquisition command, the maximum number N MAX of properties stored in one packet is set to the second value VB. The first value VA is set larger than the second value VB.

また、制御装置100の制御部406は、通信機器120へ送信するコマンドが操作コマンドであれば、パケットの送信間隔ΔTを第1の値VCに設定し、通信機器120へ送信するコマンドが状態取得コマンドであれば、パケットの送信間隔ΔTを第2の値VDに設定する。第1の値VCは第2の値VDよりも短く設定される。   Further, if the command to be transmitted to the communication device 120 is an operation command, the control unit 406 of the control device 100 sets the packet transmission interval ΔT to the first value VC, and the command to be transmitted to the communication device 120 acquires the status. If it is a command, the packet transmission interval ΔT is set to the second value VD. The first value VC is set shorter than the second value VD.

また、制御装置100の制御部406は、通信機器120へ送信するコマンドが操作コマンドであれば、タイムアウト値TOUTを第1の値VEに設定し、通信機器120へ送信するコマンドが状態取得コマンドであれば、タイムアウト値TOUTを第2の値VFに設定する。第1の値VEは第2の値VFよりも短く設定される。 Further, if the command to be transmitted to the communication device 120 is an operation command, the control unit 406 of the control device 100 sets the timeout value T OUT to the first value VE, and the command to be transmitted to the communication device 120 is a status acquisition command. If so, the timeout value T OUT is set to the second value VF. The first value VE is set shorter than the second value VF.

そして、制御装置100の制御部406は、設定した通信仕様にて通信機器120と通信する(ステップS2404)。   And the control part 406 of the control apparatus 100 communicates with the communication apparatus 120 by the set communication specification (step S2404).

操作コマンドは、主にユーザからの要求に基づいて送信されるため、その要求に対する応答が遅いと、ユーザにストレスを感じさせてしまうおそれがある。そこで、操作コマンドの送受信の際には、制御装置100は、一度に送受信するデータの最大量を相対的に大きくしたり、パケットの送信間隔ΔTを相対的に短くしたりすることにより、通信の高速化を図る。一方、状態取得コマンドは、主に制御装置100内部の処理のために送信することが多く、応答が遅くても、ユーザにストレスを感じさせにくい。そこで、状態取得コマンドの送受信の際には、制御装置100は、一度に送受信するデータの最大量を相対的に小さくしたり、パケットの送信間隔ΔTを相対的に長くしたりすることにより、制御装置100への負荷及び通信環境への負荷の低減を図る。   Since the operation command is transmitted mainly based on a request from the user, if the response to the request is slow, the user may feel stress. Therefore, when transmitting / receiving an operation command, the control device 100 relatively increases the maximum amount of data transmitted / received at one time or relatively shortens the packet transmission interval ΔT, thereby enabling communication of the communication. Increase speed. On the other hand, the status acquisition command is often transmitted mainly for processing inside the control device 100, and even if the response is slow, it is difficult for the user to feel stress. Therefore, when transmitting / receiving the status acquisition command, the control device 100 performs control by relatively reducing the maximum amount of data transmitted / received at one time or relatively increasing the packet transmission interval ΔT. The load on the apparatus 100 and the load on the communication environment are reduced.

本実施形態によれば、状況に応じて通信仕様を使い分けることができる。ユーザに結果を提示する必要があるコマンドであれば、比較的性能が高い仕様にて通信し、必ずしもユーザに結果を提示しなくてよいコマンドであれば、比較的性能が低い仕様にて通信することにより、制御装置100への負荷を軽減することができる。   According to the present embodiment, communication specifications can be used properly according to the situation. If the command needs to present the result to the user, it communicates with a specification with relatively high performance, and if it is a command that does not necessarily present the result to the user, communicate with a specification with relatively low performance. As a result, the load on the control device 100 can be reduced.

(実施形態9)
次に、実施形態9について、図25を用いて説明する。本実施形態では、制御装置100は、通信結果に基づいて通信パラメータを最適化していく。
(Embodiment 9)
Next, Embodiment 9 will be described with reference to FIG. In the present embodiment, the control device 100 optimizes communication parameters based on the communication result.

上記の各実施形態では、制御装置100の制御部406は、新たな通信機器120を検知すると、図9、図10、図11に示した通信パラメータ決定処理を実行して通信パラメータを決定する。一方、本実施形態では、通信パラメータを決定するタイミングは、新たな通信機器120を検知したときでなくてもよい。   In each of the embodiments described above, when the control unit 406 of the control device 100 detects a new communication device 120, the control unit 406 executes communication parameter determination processing illustrated in FIGS. 9, 10, and 11 to determine a communication parameter. On the other hand, in the present embodiment, the timing for determining the communication parameter may not be when a new communication device 120 is detected.

制御装置100の制御部406は、通信機器120と通信すると(ステップS2501;YES)、その通信の内容を含む通信ログを記録する(ステップS2502)。通信機器120と通信しない場合には(ステップS2501;NO)、制御装置100の制御部406は通信ログを記録しない。   When communicating with the communication device 120 (step S2501; YES), the control unit 406 of the control device 100 records a communication log including the content of the communication (step S2502). When not communicating with the communication device 120 (step S2501; NO), the control unit 406 of the control device 100 does not record a communication log.

制御装置100の制御部406は、通信機器120と通信する際に用いる通信パラメータを最適化するか否かを判別する(ステップS2503)。   The control unit 406 of the control device 100 determines whether or not to optimize communication parameters used when communicating with the communication device 120 (step S2503).

例えば、制御装置100の制御部406は、毎日の定時等、予め決められた日時になると、通信パラメータを最適化すると判別する。あるいは、制御装置100の制御部406は、前回通信パラメータの最適化を行ってから追記した通信ログの量が予め決められた量以上増加すると、通信パラメータを最適化すると判別する。通信パラメータを最適化するタイミングは任意である。   For example, the control unit 406 of the control device 100 determines that the communication parameter is to be optimized when a predetermined date and time such as a daily fixed time comes. Alternatively, the control unit 406 of the control device 100 determines that the communication parameter is optimized when the amount of the communication log added after the previous optimization of the communication parameter is increased by a predetermined amount or more. The timing for optimizing the communication parameters is arbitrary.

通信パラメータを最適化すると判別すると(ステップS2503;YES)、制御装置100の制御部406は、記憶部405に記録された通信ログに基づいて、通信パラメータを決定する(ステップS2504)。   If it is determined that the communication parameter is to be optimized (step S2503; YES), the control unit 406 of the control device 100 determines the communication parameter based on the communication log recorded in the storage unit 405 (step S2504).

具体的には、制御装置100の制御部406は、X個(Xは1以上の整数)のプロパティを含む一つ以上のパケットからなる状態取得コマンドを通信機器120へ送信した後、その状態取得コマンドに対する応答データを受信し、且つ、応答データの中にX個のプロパティが含まれており、且つ、X個のプロパティのすべてにエラー値がセットされていなければ、その状態取得コマンドの送受信に成功したと判別する。制御装置100の制御部406は、通信機器120との通信に成功したときにパケットに格納していたプロパティの数Xを判別する。   Specifically, the control unit 406 of the control device 100 transmits a state acquisition command including one or more packets including X properties (X is an integer of 1 or more) to the communication device 120, and then acquires the state. If the response data for the command is received, and X properties are included in the response data, and no error value is set for all X properties, the status acquisition command is sent and received. Determine that it was successful. The control unit 406 of the control device 100 determines the number X of properties stored in the packet when the communication with the communication device 120 is successful.

同じ通信機器120との間の通信を示す通信ログがあれば、制御装置100の制御部406は、同様に、その通信機器120との通信において一つのパケットに格納していたプロパティの数Y(Yは1以上の整数)を判別する。   If there is a communication log indicating communication with the same communication device 120, the control unit 406 of the control device 100 similarly has the number of properties Y (stored in one packet in communication with the communication device 120 ( Y is an integer equal to or greater than 1.

そして、制御装置100の制御部406は、その通信機器120との通信において一つのパケットに格納されたプロパティの数X,Yのうち、最も大きい数を、通信機器120との間の通信において一つのパケットに格納できるプロパティの最大数NMAXに決定する。 Then, the control unit 406 of the control device 100 determines the largest number among the property numbers X and Y stored in one packet in communication with the communication device 120 in communication with the communication device 120. The maximum number of properties N MAX that can be stored in one packet is determined.

一旦プロパティの最大数NMAXが決定された後にも、通信ログは追記されていく。追記された通信ログに基づいて判別された、通信に成功したときに一つのパケットに格納されていたプロパティの数が、以前に決定されたプロパティの最大数NMAXより大きければ、制御装置100の制御部406は、追記された通信ログに基づいて判別されたプロパティの数を、通信機器120との通信において一つのパケットに格納できるプロパティの最大数NMAXと決定する。つまり、通信が発生するたびに、プロパティの最大数NMAXが更新され得る。 Even after the maximum number of properties N MAX is determined, the communication log is added. If the number of properties stored in one packet, determined based on the added communication log, is greater than the previously determined maximum number N MAX of properties, the control device 100 The control unit 406 determines the number of properties determined based on the added communication log as the maximum number N MAX of properties that can be stored in one packet in communication with the communication device 120. That is, each time communication occurs, the maximum number of properties N MAX can be updated.

また、制御装置100の制御部406は、送信間隔ΔTがΔTAである二つ以上の連続したパケットからなる状態取得コマンドを通信機器120へ送信した後、その状態取得コマンドに対するエラーではない応答データを受信すれば、その状態取得コマンドの送受信に成功したと判別する。制御装置100の制御部406は、通信機器120との通信に成功したときのパケットの送信間隔ΔTAを判別する。   In addition, the control unit 406 of the control device 100 transmits a status acquisition command including two or more consecutive packets having a transmission interval ΔT of ΔTA to the communication device 120, and then transmits response data that is not an error with respect to the status acquisition command. If it is received, it is determined that the status acquisition command has been successfully transmitted and received. The control unit 406 of the control device 100 determines a packet transmission interval ΔTA when communication with the communication device 120 is successful.

パケットの送信間隔ΔTAは、隣り合う二つのパケットにおいて、第1のパケットの送信時刻と第2のパケットの送信時刻との差である。   The packet transmission interval ΔTA is the difference between the transmission time of the first packet and the transmission time of the second packet in two adjacent packets.

同じ通信機器120との間の通信を示す通信ログがあれば、制御装置100の制御部406は、同様に、その通信機器120との通信におけるパケットの送信間隔ΔTBを判別する。   If there is a communication log indicating communication with the same communication device 120, the control unit 406 of the control device 100 similarly determines a packet transmission interval ΔTB in communication with the communication device 120.

そして、制御装置100の制御部406は、その通信機器120との通信におけるパケットの送信間隔ΔTA,ΔTBのうち、最も小さい値を、通信機器120との通信におけるパケットの送信間隔ΔTに決定する。   Then, control unit 406 of control device 100 determines the smallest value of packet transmission intervals ΔTA and ΔTB in communication with communication device 120 as packet transmission interval ΔT in communication with communication device 120.

一旦送信間隔ΔTが決定された後にも、通信ログは追記されていく。追記された通信ログに基づいて判別された、通信に成功したときのパケットの送信間隔が、以前に決定された送信間隔ΔTより短ければ、制御装置100の制御部406は、追記された通信ログに基づいて判別された送信間隔を、通信機器120との間の通信におけるパケットの送信間隔ΔTと決定する。つまり、通信が発生するたびに、送信間隔ΔTが更新され得る。   Even after the transmission interval ΔT is once determined, the communication log is added. If the packet transmission interval when the communication is successful, determined based on the added communication log, is shorter than the previously determined transmission interval ΔT, the control unit 406 of the control device 100 may add the added communication log. Is determined as the packet transmission interval ΔT in the communication with the communication device 120. That is, every time communication occurs, the transmission interval ΔT can be updated.

また、制御装置100の制御部406は、状態取得コマンドを通信機器120へ送信した時刻TAと、その状態取得コマンドに対する応答データを受信した時刻TBとの差を計算する。   In addition, the control unit 406 of the control device 100 calculates a difference between the time TA at which the state acquisition command is transmitted to the communication device 120 and the time TB at which the response data for the state acquisition command is received.

同じ通信機器120との通信を示す他の通信ログがあれば、制御装置100の制御部406は、同様に、その通信機器120との通信における、状態取得コマンドを送信した時刻TCと応答データを受信した時刻TDとの差を計算する。   If there is another communication log indicating communication with the same communication device 120, similarly, the control unit 406 of the control device 100 obtains the time TC at which the state acquisition command is transmitted and the response data in communication with the communication device 120. The difference from the received time TD is calculated.

そして、制御装置100の制御部406は、時刻TAと時刻TBとの差と、時刻TCと時刻TDとの差のうち、最も短い値を、通信機器120との間の通信におけるタイムアウト値TOUTに決定する。 Then, the control unit 406 of the control device 100 sets the shortest value among the difference between the time TA and the time TB and the difference between the time TC and the time TD to the timeout value T OUT in the communication with the communication device 120. To decide.

一旦タイムアウト値TOUTが決定された後にも、通信ログは追記されていく。追記された通信ログに基づいて判別されたタイムアウト値が、以前に決定されたタイムアウト値TOUTより短ければ、制御装置100の制御部406は、追記された通信ログに基づいて判別されたタイムアウト値を、通信機器120との間の通信におけるタイムアウト値TOUTと決定する。つまり、通信が発生するたびに、タイムアウト値TOUTが更新され得る。 Even after the timeout value T OUT is once determined, the communication log is added. If the timeout value determined based on the added communication log is shorter than the previously determined timeout value T OUT , the control unit 406 of the control device 100 determines the timeout value determined based on the added communication log. Is determined as the timeout value T OUT in the communication with the communication device 120. That is, the timeout value T OUT can be updated each time communication occurs.

なお、ステップS2503において最適化しないと判別した場合には(ステップS2503;NO)、制御装置100の制御部406は、通信パラメータを再計算しない。   When it is determined in step S2503 that the optimization is not performed (step S2503; NO), the control unit 406 of the control device 100 does not recalculate the communication parameters.

本実施形態によれば、制御装置100は、通信機器120との通信の結果から相応しい通信パラメータを学習し、適宜最適化することができる。また、制御装置100は、新たな通信機器120を検知したときに必ずしも通信パラメータ決定処理を実行しなくてよい。勿論、制御装置100は、新たな通信機器120を検知したときに上述したように通信パラメータ決定処理を実行し、且つ、適切なタイミングで通信パラメータを最適化するようにしてもよい。   According to the present embodiment, the control device 100 can learn appropriate communication parameters from the result of communication with the communication device 120 and can optimize them appropriately. Further, the control device 100 does not necessarily execute the communication parameter determination process when detecting a new communication device 120. Of course, the control device 100 may execute the communication parameter determination process as described above when a new communication device 120 is detected, and may optimize the communication parameter at an appropriate timing.

(実施形態10)
次に、実施形態10について、図26を用いて説明する。本実施形態では、制御装置100は、予め決められた開始条件が満たされると、通信パラメータ決定処理を実行する。
(Embodiment 10)
Next, Embodiment 10 will be described with reference to FIG. In the present embodiment, the control device 100 executes a communication parameter determination process when a predetermined start condition is satisfied.

開始条件は、例えば、制御装置100が再起動されたことである。再起動とは、実行中の処理を終了してオペレーティングシステムを非稼働にした後にオペレーティングシステムを立ち上げ直すことである。例えば、通信システム1のメンテナンス時に、制御装置100が再起動される。   The start condition is, for example, that the control device 100 is restarted. Rebooting means restarting the operating system after terminating the processing being executed and disabling the operating system. For example, the control device 100 is restarted during maintenance of the communication system 1.

開始条件は、予めスケジュールによって決められた日時が到来することでもよい。例えば、1ヶ月に一回、1年に一回といったように、通信パラメータ決定処理を定期的に実行するようにスケジュールが設定される。   The start condition may be that a date and time determined in advance by a schedule arrives. For example, the schedule is set so as to periodically execute the communication parameter determination process, such as once a month or once a year.

開始条件は、ユーザからの明示的な指示が入力されたことでもよい。制御装置100の制御部406は、通信パラメータを再計算する旨の指示がユーザから入力されると、開始条件が満たされたと判別する。   The start condition may be an input of an explicit instruction from the user. The control unit 406 of the control device 100 determines that the start condition is satisfied when an instruction to recalculate the communication parameters is input from the user.

開始条件は、記憶部405に記憶された通信ログが予め決められた件数以上に達することでもよい。制御装置100の制御部406は、通信の回数が増えると、通信パラメータを最適化してもよい。   The start condition may be that the communication logs stored in the storage unit 405 reach a predetermined number or more. The control unit 406 of the control device 100 may optimize communication parameters as the number of communication increases.

制御装置100の制御部406は、開始条件を任意に設定することができる。開始条件を、新たな通信機器120を検知したことと定義すれば、本実施形態の通信処理は、図8に示した通信処理と同一となる。   The control unit 406 of the control device 100 can arbitrarily set a start condition. If the start condition is defined as detecting a new communication device 120, the communication process of the present embodiment is the same as the communication process shown in FIG.

制御装置100の制御部406は、開始条件が満たされたか否かを判別する(ステップS2601)。   The control unit 406 of the control device 100 determines whether the start condition is satisfied (step S2601).

開始条件が満たされないと判別した場合(ステップS2601;NO)、制御装置100の制御部406はステップS2601の処理を繰り返す。開始条件が満たされたと判別した場合(ステップS2601;YES)、制御装置100の制御部406は、図9に示すパケットサイズ決定処理(ステップS2602)、図10に示す送信間隔決定処理(ステップS2603)、図11に示すタイムアウト値決定処理(ステップS2604)を実行する。   When it is determined that the start condition is not satisfied (step S2601; NO), the control unit 406 of the control device 100 repeats the process of step S2601. When it is determined that the start condition is satisfied (step S2601; YES), the control unit 406 of the control device 100 determines the packet size determination process (step S2602) illustrated in FIG. 9 and the transmission interval determination process (step S2603) illustrated in FIG. , The timeout value determination process (step S2604) shown in FIG. 11 is executed.

なお、制御装置100の制御部406は、パケットサイズ決定処理と送信間隔決定処理とタイムアウト値決定処理を実行する順序を任意に変更してもよい。また、制御装置100の制御部406は、パケットサイズ決定処理と送信間隔決定処理とタイムアウト値決定処理を同時に並行して実行してもよい。   Note that the control unit 406 of the control device 100 may arbitrarily change the order of executing the packet size determination process, the transmission interval determination process, and the timeout value determination process. Further, the control unit 406 of the control device 100 may execute the packet size determination process, the transmission interval determination process, and the timeout value determination process simultaneously in parallel.

本実施形態によれば、制御装置100は、任意のタイミングで通信パラメータを決定することができる。   According to the present embodiment, the control device 100 can determine a communication parameter at an arbitrary timing.

(実施形態11)
次に、実施形態11について、図27と図28を用いて説明する。本実施形態では、制御装置100は、決定した通信パラメータ等に基づいて、通信機器120からの応答を得るまでにかかる時間やアドバイス等をユーザに報知する。
(Embodiment 11)
Next, Embodiment 11 will be described with reference to FIGS. 27 and 28. FIG. In the present embodiment, the control device 100 notifies the user of the time required for obtaining a response from the communication device 120, advice, and the like based on the determined communication parameter and the like.

上述したように、制御装置100の制御部406は、通信パラメータを決定して記憶部405に記憶し、通信機器120と通信する際には記憶部405に記憶された通信パラメータを用いて通信機器120と通信する。通信パラメータは、通信機器120ごとに異なる可能性がある。従って、応答に時間がかかる可能性がある通信機器120への操作をユーザが指示すると、ユーザが比較的長い時間待たされることになるかもしれない。そこで、制御装置100は、通信機器120ごとに、応答を得るまでにかかる時間等をユーザに報知し、ユーザにストレスを感じさせないようにする。   As described above, the control unit 406 of the control device 100 determines the communication parameter and stores it in the storage unit 405. When communicating with the communication device 120, the communication device uses the communication parameter stored in the storage unit 405. Communicate with 120. The communication parameter may be different for each communication device 120. Accordingly, when the user instructs an operation to the communication device 120 that may take a long time to respond, the user may wait for a relatively long time. Therefore, the control device 100 notifies the user of the time required to obtain a response for each communication device 120 so that the user does not feel stress.

具体的には、制御装置100の制御部406は、ユーザからの指示に基づく操作コマンドを、比較的通信性能が低い通信機器120へ送信すると、図27に示すように、応答が遅い旨のメッセージ2700をディスプレイ451に表示する。   Specifically, when the control unit 406 of the control device 100 transmits an operation command based on an instruction from the user to the communication device 120 having relatively low communication performance, a message indicating that the response is slow as illustrated in FIG. 2700 is displayed on the display 451.

そして、その通信機器120からの応答データを受信すると、制御装置100の制御部406は、管理画面200を更新し、メッセージ2700を消去する。   When the response data from the communication device 120 is received, the control unit 406 of the control device 100 updates the management screen 200 and deletes the message 2700.

例えば、図27に示す管理画面において、一覧表250に含まれるすべてのオブジェクト210に対応するすべての通信機器120の動作状態、もしくは、間取り図260に含まれるすべてのアイコン220に対応するすべての通信機器120の動作状態を最新の値に更新する旨のユーザからの指示が入力されると、制御装置100の制御部406は、すべての通信機器120に状態取得コマンドを送信する。   For example, in the management screen shown in FIG. 27, the operating state of all the communication devices 120 corresponding to all the objects 210 included in the list 250 or all the communication corresponding to all the icons 220 included in the floor plan 260. When an instruction from the user to update the operation state of the device 120 to the latest value is input, the control unit 406 of the control device 100 transmits a state acquisition command to all the communication devices 120.

状態取得コマンドの送信先に、プロパティの最大数NMAXが予め決められた数より少ない通信機器120、又は、送信間隔ΔTが予め決められた値よりも長い通信機器120、又は、タイムアウト値TOUTが予め決められた値より長い通信機器120が含まれていると、言い換えれば、状態取得コマンドの送信先に比較的通信性能が低い通信機器120が含まれていると、制御装置100の制御部406は、状態取得コマンドの送信後、通信機器120からの応答が遅い旨のメッセージ2700を表示する。 As a transmission destination of the status acquisition command, the communication device 120 having the maximum number N MAX of properties smaller than a predetermined number, or the communication device 120 having a transmission interval ΔT longer than a predetermined value, or a timeout value T OUT If the communication device 120 is longer than a predetermined value, in other words, if the communication device 120 having relatively low communication performance is included in the transmission destination of the status acquisition command, the control unit of the control device 100 406 displays a message 2700 indicating that the response from the communication device 120 is slow after the transmission of the status acquisition command.

制御装置100の制御部406は、状態取得コマンドに対する応答データを受信すると、管理画面200の表示を直ちに更新する。すべての状態取得コマンドに対する応答データを受信すれば、応答が遅い旨のメッセージ2700を消去する。   The control unit 406 of the control device 100 immediately updates the display of the management screen 200 when receiving response data for the status acquisition command. If response data for all status acquisition commands is received, message 2700 indicating that the response is slow is deleted.

そして、制御装置100の制御部406は、すべての状態取得コマンドに対する応答データを受信し、図28に示すように、管理画面200の更新を完了した旨のメッセージ2800をディスプレイ451に表示する。   Then, the control unit 406 of the control device 100 receives response data for all the status acquisition commands, and displays a message 2800 indicating that the management screen 200 has been updated on the display 451 as shown in FIG.

本実施形態によれば、制御装置100は、決定した通信仕様の違いによって応答に時間がかかることを予めユーザに報知することにより、ユーザにストレスをなるべく感じさせないようにすることができる。   According to the present embodiment, the control device 100 can prevent the user from feeling as much stress as possible by notifying the user in advance that the response takes time due to the determined communication specification difference.

なお、制御装置100の制御部406は、状態取得コマンドの送信先に比較的通信性能が低い通信機器120が含まれていないならば、メッセージ2700を表示することなく、状態取得コマンドに対する応答データを受信すると直ちに管理画面200の表示を更新する。   The control unit 406 of the control device 100 displays response data for the state acquisition command without displaying the message 2700 if the communication device 120 having relatively low communication performance is not included in the transmission destination of the state acquisition command. As soon as it is received, the display on the management screen 200 is updated.

(実施形態12)
次に、実施形態12について、図29を用いて説明する。本実施形態の制御装置100は、通信機器120ごとの通信状態や決定された通信パラメータ等をディスプレイ451に表示する。
Embodiment 12
Next, Embodiment 12 will be described with reference to FIG. The control device 100 according to the present embodiment displays a communication state for each communication device 120, a determined communication parameter, and the like on the display 451.

制御装置100の制御部406は、図29に示すように、制御装置100が通信可能な通信機器120のそれぞれについて、通信機器120の現在の通信状態(正常に通信が行われているか、通信に異常が発生しているか等)と、通信機器120との通信における応答の速さ、制御装置100が定期的に通信する時間間隔の設定値、等の情報を表示する。   As shown in FIG. 29, the control unit 406 of the control device 100 sets the current communication state of the communication device 120 (whether the communication is normally performed or whether communication is performed) for each communication device 120 with which the control device 100 can communicate. Information such as whether or not an abnormality has occurred), the response speed in communication with the communication device 120, the set value of the time interval at which the control device 100 periodically communicates, and the like are displayed.

制御装置100の制御部406は、図29に示す情報に加えて、もしくは、図29に示す情報の代わりに、上記各実施形態に示すように計算した通信パラメータをディスプレイ451に表示するようにしてもよい。   In addition to the information shown in FIG. 29 or instead of the information shown in FIG. 29, the control unit 406 of the control device 100 displays the communication parameters calculated as shown in the above embodiments on the display 451. Also good.

制御装置100の制御部406は、現在の通信状態等に基づいて、通信の効率をより良くするためのユーザへのアドバイスを提示してもよい。   The control unit 406 of the control device 100 may present advice to the user for improving the communication efficiency based on the current communication state or the like.

ユーザは、ディスプレイ451に表示された各通信機器120の通信性能に関する情報を見て、制御装置100に通信パラメータを再計算させたり、通信機器120に故障が発生していないかを点検したりすればよい。   The user sees information on the communication performance of each communication device 120 displayed on the display 451, and causes the control device 100 to recalculate communication parameters or check whether a failure has occurred in the communication device 120. That's fine.

本実施形態によれば、制御装置100は、通信機器120との間の通信の状態や、決定した通信仕様をユーザに提示し、ユーザにアドバイスを提示することができる。   According to the present embodiment, the control device 100 can present the state of communication with the communication device 120 and the determined communication specifications to the user, and can provide advice to the user.

本発明は、上述した実施形態に限定されず、種々の変形及び応用が可能である。また、上述した実施形態の各構成要素を自由に組み合わせることも可能である。   The present invention is not limited to the above-described embodiments, and various modifications and applications are possible. Moreover, it is also possible to freely combine the constituent elements of the above-described embodiments.

上記各実施形態では、管理画面200やサブ画面300等を制御装置100が表示している。しかし、制御装置100が、制御装置100と通信可能に接続された端末装置(図示せず)に管理画面200やサブ画面300を構成するデータを送信し、この端末装置が、管理画面200やサブ画面300等を表示装置に表示してもよい。図5に示す提示部504は、制御装置100の制御部406と画像処理部402が協働して機能することにより実現される代わりに、制御装置100と通信可能に接続された端末装置が有する制御部と画像処理部が協働して機能することにより実現されてもよい。   In each of the above embodiments, the control device 100 displays the management screen 200, the sub screen 300, and the like. However, the control device 100 transmits data constituting the management screen 200 and the sub screen 300 to a terminal device (not shown) connected to the control device 100 so as to be communicable. The screen 300 or the like may be displayed on the display device. The presentation unit 504 illustrated in FIG. 5 is included in a terminal device that is communicably connected to the control device 100, instead of being realized by the function of the control unit 406 and the image processing unit 402 of the control device 100 working together. The control unit and the image processing unit may function in cooperation.

なお、端末装置は、オブジェクト210とアイコン220を表す画像データ等、固定されたデータを予め記憶しておき、通信機器120の動作状態等、変化する可能性がある情報のみを制御装置100から受信し、管理画面200やサブ画面300を生成して表示してもよい。   Note that the terminal device stores in advance fixed data such as image data representing the object 210 and the icon 220, and receives only information that may change, such as the operating state of the communication device 120, from the control device 100. The management screen 200 and the sub screen 300 may be generated and displayed.

通信機器120は、通信機能を持たない電気機器に後から追加することによってその電気機器に通信機能を持たせるようにする機器、いわゆる通信アダプタでもよい。この場合、通信機器120は、制御装置100と電気機器との間の通信を中継する役割を果たし、空気調和機における空調機能や照明機器における照明機能等を備えなくてよい。また、制御装置100は、通信機器120の動作を統括的に管理するのではなく、通信機器120が繋がれた電気機器の動作を統括的に管理することとなる。   The communication device 120 may be a device that adds a communication function to an electric device that does not have a communication function later, that is, a so-called communication adapter. In this case, the communication device 120 plays a role of relaying communication between the control device 100 and the electric device, and does not need to have an air conditioning function in the air conditioner, a lighting function in the lighting device, or the like. In addition, the control device 100 does not collectively manage the operation of the communication device 120 but comprehensively manages the operation of the electrical device to which the communication device 120 is connected.

上記各実施形態の制御装置100と通信機器120は、ECHONET Lite(登録商標)に準拠したプロトコルにて通信するが、プロトコルはこれに限定されず任意である。   Although the control apparatus 100 and the communication apparatus 120 of each said embodiment communicate by the protocol based on ECHONET Lite (trademark), a protocol is not limited to this but is arbitrary.

上記の制御装置100の全部又は一部としてコンピュータを動作させるためのプログラムを、メモリカード、CD−ROM(Compact Disc-ROM)、DVD(Digital Versatile Disk)、MO(Magneto Optical disk)などのコンピュータが読み取り可能な記録媒体に格納して配布し、これを別のコンピュータにインストールし、上述の手段として動作させ、あるいは、上述の工程を実行させてもよい。   A computer such as a memory card, a CD-ROM (Compact Disc-ROM), a DVD (Digital Versatile Disk), or an MO (Magneto Optical disk) is stored in a program for operating the computer as all or part of the control device 100 described above. It may be stored in a readable recording medium and distributed, installed in another computer and operated as the above-mentioned means, or the above-described steps may be executed.

更に、インターネット上のサーバ装置が有するディスク装置等にプログラムを格納しておき、例えば、搬送波に重畳させて、コンピュータにダウンロード等するものとしてもよい。   Furthermore, the program may be stored in a disk device or the like included in a server device on the Internet, and may be downloaded onto a computer by being superimposed on a carrier wave, for example.

本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能とされるものである。また、上述した実施形態は、この発明を説明するためのものであり、本発明の範囲を限定するものではない。すなわち、本発明の範囲は、実施形態ではなく、請求の範囲によって示される。そして、請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、この発明の範囲内とみなされる。   Various embodiments and modifications can be made to the present invention without departing from the broad spirit and scope of the present invention. The above-described embodiments are for explaining the present invention and do not limit the scope of the present invention. In other words, the scope of the present invention is shown not by the embodiments but by the claims. Various modifications made within the scope of the claims and within the scope of the equivalent invention are considered to be within the scope of the present invention.

以上のように、上記各実施形態によれば、様々な性能を有する通信相手との通信に効率良く対応できるようにする制御装置、通信システム、通信方法、及び、プログラムを提供することができる。   As described above, according to each of the above embodiments, it is possible to provide a control device, a communication system, a communication method, and a program that can efficiently cope with communication with communication partners having various performances.

1 通信システム、100 制御装置、120 通信機器、140 通信ネットワーク、200 管理画面、210 オブジェクト、220 アイコン、250 一覧表、260 間取り図、300 サブ画面、401 通信部、402 画像処理部、403 音声処理部、404 入力部、405 記憶部、406 制御部、451 ディスプレイ、452 スピーカ、501 決定部、502 通信部、503 記録部、504 提示部、2700,2800 メッセージ 1 communication system, 100 control device, 120 communication device, 140 communication network, 200 management screen, 210 object, 220 icon, 250 list, 260 floor plan, 300 sub-screen, 401 communication unit, 402 image processing unit, 403 audio processing , 404 input unit, 405 storage unit, 406 control unit, 451 display, 452 speaker, 501 determination unit, 502 communication unit, 503 recording unit, 504 presentation unit, 2700, 2800 message

Claims (4)

複数のパケットを、パケットのデータ量、及び、パケット間の送信間隔の少なくとも一方を変化させつつ複数の通信機器へ送信した結果により、前記複数の通信機器との通信に用いるそれぞれの通信パラメータを決定する決定部と、
前記決定されたそれぞれの通信パラメータを用いて前記複数の通信機器と通信する通信部と、を備え、
前記通信部は、前記決定された通信パラメータが予め決められた性能値を下まわる前記通信機器との通信を行わない、
制御装置。
Each communication parameter used for communication with the plurality of communication devices is determined based on the result of transmitting the plurality of packets to the plurality of communication devices while changing at least one of the packet data amount and the transmission interval between the packets. A decision unit to
A communication unit that communicates with the plurality of communication devices using the determined communication parameters, and
The communication unit does not perform communication with the communication device in which the determined communication parameter is lower than a predetermined performance value;
Control device.
制御装置と複数の通信機器とを有する通信システムであって、
前記制御装置は、
複数のパケットを、パケットのデータ量、及び、パケット間の送信間隔の少なくとも一方を変化させつつ前記複数の通信機器へ送信した結果により、前記複数の通信機器との通信に用いるそれぞれの通信パラメータを決定する決定部と、
前記決定されたそれぞれの通信パラメータを用いて前記複数の通信機器と通信する通信部と、を備え、
前記通信部は、前記決定された通信パラメータが予め決められた性能値を下まわる前記通信機器との通信を行わない、
通信システム。
A communication system having a control device and a plurality of communication devices,
The control device includes:
As a result of transmitting a plurality of packets to the plurality of communication devices while changing at least one of the packet data amount and the transmission interval between the packets, respective communication parameters used for communication with the plurality of communication devices are determined. A decision part to decide;
A communication unit that communicates with the plurality of communication devices using the determined communication parameters, and
The communication unit does not perform communication with the communication device in which the determined communication parameter is lower than a predetermined performance value;
Communications system.
複数のパケットを、パケットのデータ量、及び、パケット間の送信間隔の少なくとも一方を変化させつつ複数の通信機器へ送信した結果により、前記複数の通信機器との通信に用いるそれぞれの通信パラメータを決定する決定ステップと、
前記決定されたそれぞれの通信パラメータを用いて前記複数の通信機器と通信する通信ステップと、を備え、
前記通信ステップでは、前記決定された通信パラメータが予め決められた性能値を下まわる前記通信機器との通信を行わない、
通信方法。
Each communication parameter used for communication with the plurality of communication devices is determined based on the result of transmitting the plurality of packets to the plurality of communication devices while changing at least one of the packet data amount and the transmission interval between the packets. A decision step to
A communication step of communicating with the plurality of communication devices using the determined communication parameters,
In the communication step, communication with the communication device in which the determined communication parameter falls below a predetermined performance value is not performed.
Communication method.
コンピュータを、
複数のパケットを、パケットのデータ量、及び、パケット間の送信間隔の少なくとも一方を変化させつつ複数の通信機器へ送信した結果により、前記複数の通信機器との通信に用いるそれぞれの通信パラメータを決定する決定部、
前記決定されたそれぞれの通信パラメータを用いて前記複数の通信機器と通信する通信部、として機能させ、
前記通信部は、前記決定された通信パラメータが予め決められた性能値を下まわる前記通信機器との通信を行わない、
プログラム。
Computer
Each communication parameter used for communication with the plurality of communication devices is determined based on the result of transmitting the plurality of packets to the plurality of communication devices while changing at least one of the packet data amount and the transmission interval between the packets. Decision part,
Function as a communication unit that communicates with the plurality of communication devices using the determined communication parameters,
The communication unit does not perform communication with the communication device in which the determined communication parameter is lower than a predetermined performance value;
program.
JP2017078818A 2017-04-12 2017-04-12 Control device, communication system, communication method, and program Active JP6419250B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017078818A JP6419250B2 (en) 2017-04-12 2017-04-12 Control device, communication system, communication method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017078818A JP6419250B2 (en) 2017-04-12 2017-04-12 Control device, communication system, communication method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016543106A Division JP6130077B2 (en) 2014-11-28 2014-11-28 Control device, communication system, communication method, and program

Publications (2)

Publication Number Publication Date
JP2017130972A JP2017130972A (en) 2017-07-27
JP6419250B2 true JP6419250B2 (en) 2018-11-07

Family

ID=59395094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017078818A Active JP6419250B2 (en) 2017-04-12 2017-04-12 Control device, communication system, communication method, and program

Country Status (1)

Country Link
JP (1) JP6419250B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7421641B2 (en) 2019-11-01 2024-01-24 マース インコーポレーテッド Method and apparatus for probing access points

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3679933B2 (en) * 1998-09-21 2005-08-03 株式会社東芝 Communication terminal device and communication speed switching method thereof
JP2001168871A (en) * 1999-12-06 2001-06-22 Nippon Telegr & Teleph Corp <Ntt> Data transfer system
JP2003169090A (en) * 2001-11-30 2003-06-13 Fujitsu Ltd Transmission system
JP3667322B2 (en) * 2002-03-13 2005-07-06 松下電器産業株式会社 Data communication method
JP4473504B2 (en) * 2002-12-19 2010-06-02 パナソニックシステムネットワークス株式会社 Management device for controlling appliances by power line communication and control method thereof
JP3736554B2 (en) * 2003-02-19 2006-01-18 株式会社 インテック・ネットコア Router apparatus and packet transfer control method
JP2005072658A (en) * 2003-08-25 2005-03-17 Ntt Docomo Inc Packet transmission control apparatus and packet transmission control method
JP4417222B2 (en) * 2004-10-19 2010-02-17 エヌ・ティ・ティ・コムウェア株式会社 Voice quality control system and method, bandwidth control apparatus, and computer program
JP4994889B2 (en) * 2007-02-28 2012-08-08 三菱重工業株式会社 Air conditioning communication system, communication system and program
JP2010199751A (en) * 2009-02-23 2010-09-09 Sony Corp Communication system, communication apparatus, and packet length control method
JP2013115719A (en) * 2011-11-30 2013-06-10 Ricoh Co Ltd Apparatus management device and program
JP6006580B2 (en) * 2012-08-07 2016-10-12 株式会社 日立産業制御ソリューションズ Data acquisition time calculation device, data acquisition time calculation method and program thereof

Also Published As

Publication number Publication date
JP2017130972A (en) 2017-07-27

Similar Documents

Publication Publication Date Title
US11409514B2 (en) Building management system with plug and play device registration and configuration
US11927947B2 (en) Building management system and method with timeseries sample feedback control
CN1848839B (en) Method and system for prioritizing tasks made available by devices in a network
US11368534B2 (en) Building management system with device cloud registration and data adaptor
JP5117625B1 (en) DR countermeasure proposal device and method thereof
US20190109725A1 (en) Building management system with adapting iot hub
US20190107832A1 (en) Building management system with automatic binding of equipment data
US20190107831A1 (en) Building management system with gateway device status messaging and display
US20040034638A1 (en) Method for analyzing and characterizing the usage pattern of a device
JP6715283B2 (en) Network system and information processing method
CN103441910A (en) Device in home network and method for executing commands in home network
WO2019071238A2 (en) Building management system with cloud-based data platform
JP2005073029A (en) Device and method for service retrieval
CN105573128B (en) User device, driving method thereof, service providing apparatus, and driving method thereof
JP6419250B2 (en) Control device, communication system, communication method, and program
JP6130077B2 (en) Control device, communication system, communication method, and program
JP2008059578A (en) Method and apparatus for managing service provided by device in home network
WO2017119163A1 (en) Information processing apparatus, electronic device, method, and program
US9934680B2 (en) Managing the control of an electrical device controllable by infrared control signals
KR102075381B1 (en) System and Method Things Co-operation Service and the Modeling Tool thereof
JP5404943B2 (en) Data collection device, data collection program, and data collection system
JP2007235559A (en) Remote control system of digital device and server device thereof, and remote control method
CN113986349A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
KR20190059419A (en) METHOD AND APPARATUS FOR CONTROLLING IoT DEVICES
KR101208148B1 (en) Method for providing information of home appliance using open api and home server thereof

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180529

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180726

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: 20180911

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181009

R150 Certificate of patent or registration of utility model

Ref document number: 6419250

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250