JP2023088763A - Control device, device - Google Patents
Control device, device Download PDFInfo
- Publication number
- JP2023088763A JP2023088763A JP2021203693A JP2021203693A JP2023088763A JP 2023088763 A JP2023088763 A JP 2023088763A JP 2021203693 A JP2021203693 A JP 2021203693A JP 2021203693 A JP2021203693 A JP 2021203693A JP 2023088763 A JP2023088763 A JP 2023088763A
- Authority
- JP
- Japan
- Prior art keywords
- message
- communication unit
- control
- control device
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 claims abstract description 115
- 230000004044 response Effects 0.000 claims abstract description 33
- 238000000034 method Methods 0.000 claims abstract description 18
- 230000005540 biological transmission Effects 0.000 claims description 32
- 230000008859 change Effects 0.000 description 39
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 2
- 238000001816 cooling Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
本開示は、制御技術に関し、特に機器を登録する制御装置、機器に関する。 TECHNICAL FIELD The present disclosure relates to control technology, and more particularly to control devices and devices that register devices.
ホームネットワークにおいてHEMS(Home Energy Management System)コントローラがエアコンディショナ、照明などの機器を制御するための通信規格の1つがECHONET Lite(登録商標)である。この通信規格においてHEMSコントローラ(制御装置)と機器とを通信させるために、制御装置に機器を登録する必要がある。制御装置に機器を登録する手順では、制御装置がマルチキャスト通信を使用して登録候補となる機器を探索する(例えば、非特許文献1参照)。 ECHONET Lite (registered trademark) is one of the communication standards for a HEMS (Home Energy Management System) controller to control devices such as air conditioners and lighting in a home network. In this communication standard, it is necessary to register the device in the control device in order to allow the device to communicate with the HEMS controller (control device). In the procedure for registering devices in the control device, the control device searches for devices that are registration candidates using multicast communication (see, for example, Non-Patent Document 1).
マルチキャストのグループ管理を実行するためのプロトコルとして例えばIGMP(Internet Group Management Protocol)が使用される。しかしながら、機器、ルータにおけるIGMP機能実装の違いが存在すると、マルチキャストパケットが転送されなくなる。その結果、制御装置が機器を発見できなくなり、制御装置に機器を登録できなくなる。 For example, IGMP (Internet Group Management Protocol) is used as a protocol for performing multicast group management. However, if there is a difference in IGMP function implementation between devices and routers, multicast packets will not be transferred. As a result, the control device cannot find the device and cannot register the device with the control device.
本開示はこうした状況に鑑みなされたものであり、その目的は、マルチキャスト通信の失敗が発生しても、制御装置における機器の登録を可能にする技術を提供することにある。 The present disclosure has been made in view of such circumstances, and an object thereof is to provide a technology that enables device registration in a control device even if multicast communication fails.
上記課題を解決するために、本開示のある態様の制御装置は、登録候補となる機器を探索するための第1メッセージをマルチキャスト送信してから、第1メッセージに対する応答である第2メッセージを機器からユニキャスト受信可能であるとともに、第1メッセージと同一の内容の第3メッセージをブロードキャスト送信してから、第3メッセージに対する応答である第4メッセージを機器からユニキャスト受信可能である通信部と、通信部が第2メッセージと第4メッセージとのうちの少なくとも1つをユニキャスト受信した場合、機器を登録するための情報を通信部に取得させる制御部と、を備える。 In order to solve the above problems, a control device according to one aspect of the present disclosure multicasts a first message for searching for devices that are candidates for registration, and then sends a second message, which is a response to the first message, to the device. a communication unit capable of unicast reception from the device and capable of unicast receiving a fourth message, which is a response to the third message, from the device after broadcasting a third message having the same content as the first message; a control unit that causes the communication unit to acquire information for registering the device when the communication unit receives at least one of the second message and the fourth message by unicast.
本開示の別の態様は、機器である。この機器は、制御装置に登録された機器であって、機器における情報の存在を知らせるための第1メッセージをマルチキャスト送信するとともに、第1メッセージと同一の内容の第2メッセージをブロードキャスト送信する通信部と、通信部からマルチキャスト送信した第1メッセージと、通信部からブロードキャスト送信した第2メッセージのうちの少なくとも1つを制御装置が受信した場合、機器における情報を通信部から制御装置に提供させる制御部と、を備える。 Another aspect of the disclosure is an apparatus. This device is registered in the control device, and multicasts a first message for notifying the existence of information in the device, and also broadcasts a second message having the same content as the first message. and, when the control device receives at least one of the first message multicast-transmitted from the communication unit and the second message broadcast-transmitted from the communication unit, the control unit causes the communication unit to provide information in the device to the control device. And prepare.
なお、以上の構成要素の任意の組合せ、本開示の表現を方法、装置、システム、コンピュータプログラム、またはコンピュータプログラムを記録した記録媒体などの間で変換したものもまた、本開示の態様として有効である。 It should be noted that any combination of the above-described components and expressions of the present disclosure converted between methods, devices, systems, computer programs, recording media recording computer programs, etc. are also effective as aspects of the present disclosure. be.
本開示によれば、マルチキャスト通信の失敗が発生しても、制御装置における機器の登録を可能にできる。 According to the present disclosure, it is possible to register a device in a control device even if multicast communication fails.
本開示の実施例を具体的に説明する前に、本実施例の概要を説明する。実施例は、戸建て住宅、マンション、アパート等の施設において、照明装置、エアーコンディショナの動作を制御する制御システムに関する。制御システムは、施設において消費される電力も管理可能である。制御システムでは、照明装置、エアーコンディショナ等の機器がネットワークを介して制御装置と接続されており、制御装置と機器との通信により制御装置が機器を制御する。制御システムの一例はHEMSであり、HEMSにおける通信にはECHONET Lite(登録商標)が使用される。 Before specifically describing the embodiments of the present disclosure, an outline of the present embodiments will be described. The embodiment relates to a control system for controlling the operation of lighting devices and air conditioners in facilities such as detached houses, condominiums, and apartments. The control system can also manage the power consumed at the facility. In a control system, devices such as a lighting device and an air conditioner are connected to a control device via a network, and the control device controls the devices through communication between the control device and the devices. An example of a control system is HEMS, and ECHONET Lite (registered trademark) is used for communication in HEMS.
制御システムでは、制御装置に機器が登録されると、制御装置と機器との通信が可能になる。ここで、登録とは、(i)IP(Internet Protocol)アドレスなどの機器の情報を制御装置の内部に保存すること、または(ii)(i)に加えて、制御装置に表示する名称を設定し保存することを示す。制御装置に機器を登録するために、制御装置がマルチキャスト通信により機器を探索する。マルチキャスト通信では、すべての機器に信号が送信されるのではなく、特定の機器に信号が送信される。マルチキャスト通信における送信先は、ルータで管理される。しかしながら、ルータ、または機器におけるIGMPの実装不備(不具合)により、マルチキャスト通信が失敗する状況が発生する。その場合、制御装置は、機器を探索により発見できないので、機器を登録できない。その結果、制御装置と機器との通信が不可能になる。マルチキャスト通信の失敗が発生しても、制御装置における機器の登録を可能するために、本実施例に係る制御装置は、マルチキャスト通信により機器を探索するとともに、ブロードキャスト通信によっても機器を探索する。 In the control system, when a device is registered with the control device, communication between the control device and the device becomes possible. Here, registration means (i) storing device information such as an IP (Internet Protocol) address inside the control device, or (ii) setting a name to be displayed on the control device in addition to (i). to indicate that the In order to register a device with the control device, the control device searches for the device through multicast communication. In multicast communication, signals are sent to specific devices instead of being sent to all devices. Destinations in multicast communication are managed by routers. However, a situation occurs in which multicast communication fails due to an implementation defect (malfunction) of IGMP in a router or device. In that case, the control device cannot find the device by searching, and cannot register the device. As a result, communication between the controller and the equipment becomes impossible. In order to enable device registration in the control device even if multicast communication fails, the control device according to the present embodiment searches for devices using multicast communication and also searches for devices using broadcast communication.
図1は、制御システム1000の構成を示す。制御システム1000は、制御装置100、機器200、ルータ300、ネットワーク400を含む。制御システム1000に含まれる機器200の数は「1」に限定されない。制御システム1000は施設内に設置される。施設は、制御システム1000による制御の対象となる建物であり、例えば戸建て住宅である。施設は戸建て住宅に限定されず、集合住宅の住戸でもよいし、オフィスビル、商業施設などでもよい。制御装置100、機器200、ルータ300は、ネットワーク400に接続され、制御装置100と機器200は、ルータ300の制御によってネットワーク400を介して通信可能である。ネットワーク400は、例えば、ECHONET Lite(登録商標)のような標準プロトコルに対応する。
FIG. 1 shows the configuration of a
制御装置100は、例えば、HEMSコントローラとしての機能を有し、機器200の動作を制御する。制御装置100は、1つの装置であってもよいし、複数の装置の接続であってもよい。制御装置100は、通信部110、受付部120、表示部130、制御部140、記憶部150を含む。通信部110は、ECHONET Lite(登録商標)の通信機能を有し、機器200と通信可能である。制御部140は、例えば、プロセッサおよびメモリを有するマイクロコンピュータで構成される。プロセッサが、記憶部150に記録されたプログラムを実行することにより、コンピュータシステムによって制御部140の各種の機能が実現される。
The
各種の機能のうちの1つが機器200の動作を制御する機能であり、制御装置100は、機器200に対する操作を受けつけるための操作画面を表示部130に表示する。受付部120は、ユーザからの操作を受付可能なユーザインターフェースであり、例えば、ボタンである。また、受付部120は、表示部130と一体化されたタッチパネルであってもよい。受付部120は、表示部130に表示した操作画面に対するユーザの指示を受けつける。受付部120は、受けつけた指示を制御部140に出力する。制御部140は、受付部120において受けつけた指示をもとに、機器200の動作を指示するための制御コマンドを生成する。通信部110は、機器200に対して制御コマンドを送信する。
One of the various functions is a function of controlling the operation of the
機器200は、例えば、照明装置、エアーコンディショナである。機器200は、通信部210、制御部240、記憶部250を含む。通信部210は、ECHONET Lite(登録商標)の通信機能を有し、通信部110との間で通信を実行する。通信部210は、制御コマンドを通信部110から受信する。制御部240は、制御コマンドに応じた動作を実行する。例えば、制御部240は、機器200の動作をオンしたり、オフしたりする。
The
制御装置100の通信部110は、スマートメータ(図示せず)に接続され、施設において消費された電力を示す電力情報を受信してもよい。制御部140は、通信部110において受信した電力情報をもとに制御コマンドを生成する。例えば、電力がしきい値よりも大きくなった場合に、制御部140は、エアーコンディショナにおける冷房時の設定温度を高くするような制御コマンドを生成する。通信部110は、機器200に対して制御コマンドを送信する。機器200は、制御装置100からの制御コマンドを受信すると、制御コマンドに応じた動作、例えば、冷房時の設定温度を高くする動作を実行する。
The
本開示における装置、システム、または方法の主体は、コンピュータを備えている。このコンピュータがプログラムを実行することによって、本開示における装置、システム、または方法の主体の機能が実現される。コンピュータは、プログラムにしたがって動作するプロセッサを主なハードウェア構成として備える。プロセッサは、プログラムを実行することによって機能を実現することができれば、その種類は問わない。プロセッサは、半導体集積回路(IC)、またはLSI(Large Scale Integration)を含む1つまたは複数の電子回路で構成される。複数の電子回路は、1つのチップに集積されてもよいし、複数のチップに設けられてもよい。複数のチップは1つの装置に集約されていてもよいし、複数の装置に備えられていてもよい。プログラムは、コンピュータが読み取り可能なROM、光ディスク、ハードディスクドライブなどの非一時的記録媒体に記録される。プログラムは、記録媒体に予め格納されていてもよいし、インターネット等を含む広域通信網を介して記録媒体に供給されてもよい。 The subject of an apparatus, system, or method in this disclosure comprises a computer. The main functions of the device, system, or method of the present disclosure are realized by the computer executing the program. A computer has a processor that operates according to a program as its main hardware configuration. Any type of processor can be used as long as it can implement functions by executing a program. The processor is composed of one or more electronic circuits including a semiconductor integrated circuit (IC) or LSI (Large Scale Integration). A plurality of electronic circuits may be integrated on one chip or may be provided on a plurality of chips. A plurality of chips may be integrated into one device, or may be provided in a plurality of devices. The program is recorded in a non-temporary recording medium such as a computer-readable ROM, optical disk, hard disk drive, or the like. The program may be pre-stored in a recording medium, or may be supplied to the recording medium via a wide area network including the Internet.
図1のような制御システム1000における通信を実行するために、前述のごとく、制御装置100における機器200の登録処理が予めなされる。登録処理には、マルチキャスト通信が使用されるので、ここでは、マルチキャストのグループ管理を実行するためのプロトコルであるIGMPをまず説明する。
In order to execute communication in the
図2は、制御システム1000において実行されるIGMPの処理手順を示すシーケンス図である。マルチキャストグループに参加を希望する機器200が起動される(S10)と、機器200の通信部210は、Membership Report(Joinメッセージ)をルータ300に送信する(S12)。ルータ300は、Membership Reportを機器200から受信すると、機器200をマルチキャストグループに含めるように管理テーブルを更新する。管理テーブルには、マルチキャストアドレスとインターフェースを対にしたエントリが複数含まれる。インターフェースは、制御装置100、機器200を含む。
FIG. 2 is a sequence diagram showing the IGMP processing procedure executed in the
グループを維持するために、ルータ300は、Membership Queryを制御装置100、機器200に定期的に送信する(S14、S16)。機器200の通信部210は、Membership Queryをルータ300から受信すると、Membership Reportをルータ300に送信する(S18)。制御装置100の通信部110は、Membership Queryをルータ300から受信すると、Membership Reportをルータ300に送信する(S20)。ルータ300は、Membership Reportの返信のないインターフェースを管理テーブルから削除する。
In order to maintain the group, the
機器200またはルータ300の実装不備(不具合)により、マルチキャスト通信ができない場合がある。例えば、機器200にIGMPが実装されていなければ、機器200の通信部210は、Membership Reportを送信しない。また、機器200とルータ300において、IGMPのバージョンが異なり、かつ互換性に不具合があれば、機器200は、Membership Queryに応答できない。これらの状況において、管理テーブルが正確に生成されない。
Multicast communication may not be possible due to a mounting defect (malfunction) of the
このようなマルチキャスト通信の失敗が機器登録に及ぼす影響を説明するために、ここでは、比較対象となる制御装置500と機器600による機器登録を図3を使用しながら説明する。図3は、比較対象となる制御装置500と機器600との間の登録手順を示すシーケンス図である。ここでは、説明を明瞭にするために、制御装置500と機器600との間に配置されるルータ300を省略する。制御装置500、機器600は、例えば制御装置100、機器200に対応する。制御装置500は、施工者からの登録開始操作を受けつける(S100)。制御装置500は、探索要求をマルチキャスト送信する(S102)。探索要求は、登録候補となる機器を探索するためのメッセージである。探索要求は、ECHONET Lite(登録商標)の「自ノードインスタンスリストS要求」に相当する。機器600は、探索要求を受信すると、探索要求に対する応答を制御装置500にユニキャスト送信する(S104)。応答には、送信元である機器600の情報、例えばIPアドレス、機器600の種別を示す情報が含まれる。機器600の種別を示す情報は、例えば、機器600が含まれるクラスを示す。
In order to explain the influence of such a failure of multicast communication on device registration, device registration by the control device 500 and the device 600 to be compared will be described here using FIG. FIG. 3 is a sequence diagram showing a registration procedure between the control device 500 and the device 600 to be compared. Here, for clarity of explanation, the
制御装置500は応答を受信する。制御装置500は、応答に含まれたIPアドレスをもとに機器600の存在を認識するとともに、機器600の種別(クラス)を認識する。これに続いて、制御装置500は、機器600の固有の情報を要求するための機器情報要求を機器600にユニキャスト送信する(S106)。機器600の固有の情報は、例えば、ノードプロファイルクラスである。機器600は、機器情報要求を受信すると、機器600の固有の情報である機器情報を制御装置500にユニキャスト送信する(S108)。 Controller 500 receives the response. The control device 500 recognizes the existence of the device 600 based on the IP address included in the response, and also recognizes the type (class) of the device 600 . Subsequently, the control device 500 unicasts a device information request for requesting information specific to the device 600 to the device 600 (S106). Information specific to the device 600 is, for example, a node profile class. When the device 600 receives the device information request, the device 600 unicasts the device information, which is information specific to the device 600, to the control device 500 (S108).
制御装置500は、機器情報を受信する。制御装置500は、機器600の種別をもとに、機器600の種別に特化した情報を要求するための種別情報要求を機器600にユニキャスト送信する(S110)。機器600の種別に特化した情報は、例えば、機器600のクラスに含まれる情報である。機器600は、種別情報要求を受信すると、機器600の種別に特化した情報である種別情報を制御装置500にユニキャスト送信する(S112)。 The control device 500 receives device information. Based on the type of the device 600, the control device 500 unicasts a type information request for requesting information specific to the type of the device 600 to the device 600 (S110). Information specific to the type of device 600 is, for example, information included in the class of device 600 . Upon receiving the type information request, the device 600 unicasts the type information, which is information specific to the type of the device 600, to the control device 500 (S112).
制御装置500は、機器情報と種別情報の内容に応じた機器600が示される登録可能機器の情報を表示させる(S114)。複数の機器600が制御装置500に接続される場合、複数の機器600が登録可能機器の情報に含まれる。施工者は、登録可能機器の情報を見ながら、登録すべき機器600を選択し、制御装置500は選択操作を受けつける(S116)。制御装置500は、選択操作により選択された機器600の登録情報を対応テーブルに記憶する。これは、機器600を登録することに相当する。制御装置500は、施工者からの登録終了操作を受けつける(S118)。 The control device 500 displays the information of registrable devices showing the device 600 corresponding to the contents of the device information and the type information (S114). When multiple devices 600 are connected to the control device 500, the multiple devices 600 are included in the information on the registrable devices. The builder selects the device 600 to be registered while looking at the information on the devices that can be registered, and the control device 500 receives the selection operation (S116). The control device 500 stores the registration information of the device 600 selected by the selection operation in the correspondence table. This corresponds to registering the device 600 . The control device 500 receives a registration end operation from the builder (S118).
マルチキャスト通信ができない場合、制御装置500からマルチキャスト送信された探索要求が機器600に受信されない。その結果、制御装置500に機器600を登録することができなくなる。また、制御装置500の再起動後、機器600がオフラインとなり、制御装置500から機器600の操作ができなくなる。 If multicast communication is not possible, the device 600 does not receive the search request multicast from the control device 500 . As a result, the device 600 cannot be registered with the control device 500 . Further, after the controller 500 is restarted, the device 600 becomes offline, and the device 600 cannot be operated from the controller 500 .
図4は、制御装置100と機器200との間の登録手順を示すシーケンス図である。ここでも、説明を明瞭にするために、制御装置100と機器200との間に配置されるルータ300を省略する。制御装置100の受付部120は、施工者からの登録開始操作を受けつける(S200)。制御部140は、探索要求を通信部110に出力する。通信部110は、探索要求(第1メッセージ)をマルチキャスト送信する(S202)。
FIG. 4 is a sequence diagram showing a registration procedure between the
機器200の通信部210が探索要求を受信すると、制御部240は、探索要求に対する応答(第2メッセージ)を通信部210から制御装置100にユニキャスト送信させる(S204)。応答には、送信元である機器200の情報、例えばIPアドレス、機器200の種別を示す情報が含まれる。機器200の種別を示す情報は、例えば、機器200が含まれるクラスを示す。
When the
通信部110は、探索要求(第1メッセージ)をマルチキャスト送信してから所定時間経過後、例えば、2~3秒経過後、探索要求(第3メッセージ)をブロードキャスト送信する(S206)。探索要求(第1メッセージ)と探索要求(第3メッセージ)は同一内容である。機器200の通信部210が探索要求を受信すると、制御部240は、探索要求に対する応答(第4メッセージ)を通信部210から制御装置100にユニキャスト送信させる(S208)。応答(第2メッセージ)と応答(第4メッセージ)は同一内容である。マルチキャスト送信した探索要求(第1メッセージ)とブロードキャスト送信した探索要求(第3メッセージ)の両方に機器200が応答した場合、制御装置100は、応答(第2メッセージ)と応答(第4メッセージ)という2つの応答を受信する。マルチキャスト送信とブロードキャスト送信とを所定時間ずらすことによって、応答受信の集中が回避される。
The
ここでは、探索要求(第1メッセージ)をマルチキャスト送信するタイミングと、探索要求(第3メッセージ)をブロードキャスト送信するタイミングとをずらしている。しかしながら、探索要求(第1メッセージ)のマルチキャスト送信と、探索要求(第3メッセージ)のブロードキャスト送信とが並列に実行されてもよい。また、探索要求(第1メッセージ)と応答(第2メッセージ)には共通のトランザクションID(以下、「第1トランザクションID」という)が含まれる。探索要求(第3メッセージ)と応答(第4メッセージ)には共通のトランザクションID(以下、「第2トランザクションID」という)が含まれる。第1トランザクションIDと第2トランザクションIDとは異なる。 Here, the timing of multicast transmission of the search request (first message) and the timing of broadcast transmission of the search request (third message) are shifted. However, the multicast transmission of the search request (first message) and the broadcast transmission of the search request (third message) may be performed in parallel. The search request (first message) and response (second message) contain a common transaction ID (hereinafter referred to as "first transaction ID"). The search request (third message) and response (fourth message) contain a common transaction ID (hereinafter referred to as "second transaction ID"). The first transaction ID and the second transaction ID are different.
制御装置100の通信部110は応答を受信する。制御部140は、通信部110が応答(第2メッセージ)と応答(第4メッセージ)とを受信した場合、第1トランザクションIDと第2トランザクションIDとをもとに、応答(第2メッセージ)と応答(第4メッセージ)が同一であること、つまり同一の機器200に対する応答であることを認識する。制御部140は、応答に含まれたIPアドレスをもとに機器200の存在を認識するとともに、機器200の種別(クラス)を認識する。
The
これに続いて、通信部110は、機器200の固有の情報を要求するための機器情報要求(第5メッセージ)を機器200にユニキャスト送信する(S210)。機器200の固有の情報は、例えば、ノードプロファイルクラスである。機器200の通信部210は、機器情報要求を受信すると、機器200の固有の情報である機器情報(第6メッセージ)を制御装置100にユニキャスト送信する(S212)。
Subsequently, the
制御装置100の通信部110は、機器情報を受信する。通信部110は、機器200の種別をもとに、機器200の種別に特化した情報を要求するための種別情報要求(第7メッセージ)を機器200にユニキャスト送信する(S214)。機器200の種別に特化した情報は、例えば、機器200のクラスに含まれる情報である。機器200の通信部210は、種別情報要求を受信すると、機器200の種別に特化した情報である種別情報(第8メッセージ)を制御装置100にユニキャスト送信する(S216)。
The
制御部140は、登録情報の内容に応じた機器200が示される登録可能機器の情報を表示部130に表示させる(S218)。複数の機器200が制御装置100に接続される場合、複数の機器200が登録可能機器の情報に含まれる。施工者は、登録可能機器の情報を見ながら、登録すべき機器200を選択し、受付部120は選択操作を受けつける(S220)。制御部140は、選択操作により選択された機器200の情報を対応テーブルとして記憶部150に記憶させる。対応テーブルは、機器200の機器情報、機器200の種別情報、機器200のIPアドレスの組合せを記憶する。これは、機器200を登録することに相当する。受付部120は、施工者からの登録終了操作を受けつける(S222)。
The
マルチキャスト通信は、ECHONET Lite(登録商標)仕様で定められているので、実行しなければならない。探索要求(第1メッセージ)のマルチキャスト通信が失敗しても、制御装置100が応答を取得するために、探索要求(第3メッセージ)のブロードキャスト通信も実行される。ブロードキャスト通信は、ルータ300において管理されず、ネットワーク400の全体への送信を実行する。
Multicast communication is defined by the ECHONET Lite (registered trademark) specifications, so it must be performed. Even if multicast communication of the search request (first message) fails, broadcast communication of the search request (third message) is also performed in order for the
マルチキャスト通信とブロードキャスト通信の両方を使用して探索要求を送信すると、これに続く応答、機器情報要求等も2倍になるので、トラヒックが2倍になる。本実施例の制御部140は、応答(第2メッセージ)と応答(第4メッセージ)をユニキャスト受信した場合、これに続く機器情報要求等は1回だけ送信させる。
Using both multicast and broadcast communications to send search requests doubles the subsequent responses, equipment information requests, etc., thus doubling the traffic. When receiving a response (second message) and a response (fourth message) by unicast, the
これまでは、制御装置100からの信号(探索要求)の送信を起点として処理が開始される場合を説明していたが、以下では、機器200からの信号の送信を起点として処理が開始される場合を説明する。機器200は制御装置100に登録されるが、制御装置100を登録しない。つまり、機器200は制御装置100のIPアドレスを記憶しない。そのため、機器200における状態変化、例えばIPアドレスの変化、温度設定の変化が生じた場合、機器200は、状態の変化を制御装置100に知らせるために、信号を制御装置100にマルチキャスト送信する。マルチキャスト通信に失敗が発生する場合、この信号が制御装置100に受信されなくなり、制御装置100は、機器200における状態変化を認識できなくなる。これに対応するために、本実施例では次の処理を実行する。
So far, a case has been described in which processing is started with the transmission of a signal (search request) from the
図5は、制御装置100と機器200との間のテーブル更新手順を示すシーケンス図である。機器200は、制御装置100に既に登録されている。機器200の通信部210、制御部240は、IPアドレスの変化を検知する(S250)。この変化は、機器200の起動時のIPアドレス取得後、またはリンクダウンからリンクアップ時のIPアドレス取得後、またはIPアドレスの切り替わり時に生じる。制御部240は、機器200における情報の存在、例えば状態の変化を知らせるための状態変化通知(第1メッセージ)を通信部210に出力する。通信部210は、状態変化通知(第1メッセージ)をマルチキャスト送信する(S252)。また、通信部210は、状態変化通知(第1メッセージ)と同一内容の状態変化通知(第2メッセージ)をブロードキャスト送信する(S254)。状態変化通知(第1メッセージ)にはトランザクションID(以下、「第1トランザクションID」という)が含まれ、状態変化通知(第2メッセージ)にはトランザクションID(以下、「第2トランザクションID」という)が含まれる。第1トランザクションIDと第2トランザクションIDとは異なる。状態変化通知(第1メッセージ)のマルチキャスト送信と、状態変化通知(第2メッセージ)のブロードキャスト送信は、並列に実行されてもよい。
FIG. 5 is a sequence diagram showing a table update procedure between the
制御装置100の通信部110は、マルチキャスト送信された状態変化通知(第1メッセージ)と、ブロードキャスト送信された状態変化通知(第2メッセージ)のうちの少なくとも1つを受信する。通信部110が状態変化通知(第1メッセージ)と状態変化通知(第2メッセージ)とを受信した場合、制御部140は、第1トランザクションIDと第2トランザクションIDとをもとに、状態変化通知(第1メッセージ)と状態変化通知(第2メッセージ)が同一内容であると判定する。
The
これに続いて、通信部110は、機器200の識別番号を要求するための識別番号要求(第3メッセージ)を機器200にユニキャスト送信する(S256)。機器200の通信部210は、識別番号要求を受信すると、機器200の識別番号(第4メッセージ)を制御装置100にユニキャスト送信する(S258)。制御装置100の通信部110は識別番号を機器200から受信する。制御部140は、機器200の識別番号とIPアドレスの組合せにより対応テーブルを更新する(S260)。この対応テーブルは記憶部150に記憶される。
Following this, the
図6は、制御装置100と機器200との間の別のテーブル更新手順を示すシーケンス図である。機器200の制御部240は、機器200の運転状態の変化を検知する(S300)。これは、機器200がエアーコンディショナである場合に、停止から暖房運転に変わる場合である。制御部240は、機器200における情報の存在、例えば状態の変化を知らせるための状態変化通知(第1メッセージ)を通信部210に出力する。通信部210は、状態変化通知(第1メッセージ)をマルチキャスト送信する(S302)。また、通信部210は、状態変化通知(第1メッセージ)と同一内容の状態変化通知(第2メッセージ)をブロードキャスト送信する(S304)。状態変化通知(第1メッセージ)には第1トランザクションIDが含まれ、状態変化通知(第2メッセージ)には第2トランザクションIDが含まれる。
FIG. 6 is a sequence diagram showing another table update procedure between the
制御装置100の通信部110は、マルチキャスト送信された状態変化通知(第1メッセージ)と、ブロードキャスト送信された状態変化通知(第2メッセージ)のうちの少なくとも1つを受信する。通信部110が状態変化通知(第1メッセージ)と状態変化通知(第2メッセージ)とを受信した場合、制御部140は、第1トランザクションIDと第2トランザクションIDとをもとに、状態変化通知(第1メッセージ)と状態変化通知(第2メッセージ)が同一内容であると判定する。
The
本実施例によれば、探索要求をマルチキャスト送信とブロードキャスト送信するので、マルチキャスト通信の失敗が発生しても、制御装置100における機器の登録を可能にできる。また、探索要求をマルチキャスト送信するタイミングと、探索要求をブロードキャスト送信するタイミングとをずらすので、トラヒックの集中を抑制できる。また、探索要求のマルチキャスト送信と、探索要求のブロードキャスト送信とを並列に実行するので、待ち時間の延長を抑制できる。また、マルチキャスト送信する探索要求とブロードキャスト通信する探索要求に異なったトランザクションIDを含めるので、両者を区別できる。また、探索要求に続く信号のユニキャスト送信は2重化しないので、トラヒックの増加を抑制できる。
According to this embodiment, since the search request is transmitted by multicast transmission and broadcast transmission, it is possible to register the device in the
機器200からの状態変化通知をマルチキャスト送信とブロードキャスト送信するので、マルチキャスト通信の失敗が発生しても、制御装置100に状態変化を知らせることができる。また、マルチキャスト送信する状態変化通知とブロードキャスト通信する状態変化通知に異なったトランザクションIDを含めるので、両者を区別できる。
Since the state change notification from the
本開示の一態様の概要は、次の通りである。本開示のある態様の制御装置(100)は、登録候補となる機器(200)を探索するための第1メッセージをマルチキャスト送信してから、第1メッセージに対する応答である第2メッセージを機器(200)からユニキャスト受信可能であるとともに、第1メッセージと同一の内容の第3メッセージをブロードキャスト送信してから、第3メッセージに対する応答である第4メッセージを機器(200)からユニキャスト受信可能である通信部(110)と、通信部(110)が第2メッセージと第4メッセージとのうちの少なくとも1つをユニキャスト受信した場合、機器(200)を登録するための情報を通信部(110)に取得させる制御部(140)と、を備える。 A summary of one aspect of the present disclosure is as follows. A control device (100) according to an aspect of the present disclosure multicasts a first message for searching for a device (200) that is a candidate for registration, and then sends a second message, which is a response to the first message, to a device (200 ), and after broadcasting a third message having the same content as the first message, a fourth message, which is a response to the third message, can be unicast received from the device (200). a communication unit (110), and when the communication unit (110) unicast-receives at least one of the second message and the fourth message, the communication unit (110) transmits information for registering the device (200). and a control unit (140) for obtaining the
通信部(110)は、第1メッセージをマルチキャスト送信するタイミングと、第3メッセージをブロードキャスト送信するタイミングとをずらす。 A communication unit (110) shifts the timing of multicast transmission of the first message and the timing of broadcast transmission of the third message.
通信部(110)は、第1メッセージをマルチキャスト送信してから所定時間経過後に、第3メッセージをブロードキャスト送信する。 A communication unit (110) broadcasts a third message after a predetermined period of time has passed since multicast transmission of the first message.
通信部(110)は、第1メッセージのマルチキャスト送信と、第3メッセージのブロードキャスト送信とを並列に実行してもよい。 The communication unit (110) may perform multicast transmission of the first message and broadcast transmission of the third message in parallel.
第1メッセージと第2メッセージには第1トランザクションIDが含まれ、第3メッセージと第2メッセージには第2トランザクションIDが含まれ、制御部(140)は、第1トランザクションIDと第2トランザクションIDとをもとに、第2メッセージと第4メッセージが同一内容であると判定してもよい。 A first transaction ID is included in the first message and the second message, a second transaction ID is included in the third message and the second message, and the control unit (140) controls the first transaction ID and the second transaction ID , it may be determined that the second message and the fourth message have the same content.
通信部(110)がユニキャスト受信可能な第2メッセージと第4メッセージには、機器(200)の種別を示す情報が含まれ、制御部(140)が通信部(110)に取得させる機器(200)を登録するための情報には、機器(200)の固有の情報と、機器(200)の種別に特化した情報が含まれ、通信部(110)は、機器(200)の固有の情報を要求するための第5メッセージを機器(200)にユニキャスト送信してから、機器(200)の固有の情報が含まれた第6メッセージを機器(200)からユニキャスト受信し、通信部(110)は、機器(200)の種別に特化した情報を要求するための第7メッセージを機器(200)にユニキャスト送信してから、機器(200)の種別に特化した情報が含まれた第8メッセージを機器(200)からユニキャスト受信してもよい。 The second and fourth messages that can be unicast-received by the communication unit (110) include information indicating the type of the device (200), and the control unit (140) causes the communication unit (110) to acquire the device ( The information for registering the device (200) includes information unique to the device (200) and information specific to the type of the device (200). After unicasting a fifth message for requesting information to the device (200), unicasting a sixth message including information unique to the device (200) from the device (200), the communication unit (110) unicasts to the device (200) a seventh message for requesting information specific to the type of the device (200), and then sends a message containing the information specific to the type of the device (200). An eighth message may be unicast received from the device (200).
本開示の別の態様は、機器(200)である。この機器(200)は、制御装置(100)に登録された機器(200)であって、機器(200)における情報の存在を知らせるための第1メッセージをマルチキャスト送信するとともに、第1メッセージと同一の内容の第2メッセージをブロードキャスト送信する通信部(210)と、通信部(210)からマルチキャスト送信した第1メッセージと、通信部(210)からブロードキャスト送信した第2メッセージのうちの少なくとも1つを制御装置(100)が受信した場合、機器(200)における情報を通信部(210)から制御装置(100)に提供させる制御部(240)と、を備える。 Another aspect of the present disclosure is the device (200). This device (200) is a device (200) registered in the control device (100), multicasts a first message for notifying the existence of information in the device (200), and and at least one of the first message multicast-transmitted from the communication unit (210) and the second message broadcast-transmitted from the communication unit (210) a control unit (240) that, when received by the control device (100), causes information in the device (200) to be provided from the communication unit (210) to the control device (100).
第1メッセージには第1トランザクションIDが含まれ、第2メッセージには第2トランザクションIDが含まれ、制御装置(100)は、第1トランザクションIDと第2トランザクションIDとをもとに、第1メッセージと第2メッセージが同一内容であると判定してもよい。 The first message contains the first transaction ID, the second message contains the second transaction ID, and the control device (100) calculates the first transaction ID based on the first transaction ID and the second transaction ID. It may be determined that the message and the second message have the same content.
以上、本開示を実施例をもとに説明した。この実施例は例示であり、それらの各構成要素あるいは各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本開示の範囲にあることは当業者に理解されるところである。 The present disclosure has been described above based on the embodiments. It should be understood by those skilled in the art that this embodiment is an example, and that various modifications are possible in the combination of each component or each treatment process, and such modifications are within the scope of the present disclosure. .
本実施例において、制御装置100または機器200は、マルチキャスト送信を実行した後に、ブロードキャスト送信を実行している。しかしながらこれに限らず例えば、制御装置100または機器200は、ブロードキャスト送信を実行した後に、マルチキャスト送信を実行してもよい。本変形例によれば、構成の自由度を向上できる。
In this embodiment, the
100 制御装置、 110 通信部、 120 受付部、 130 表示部、 140 制御部、 150 記憶部、 200 機器、 210 通信部、 240 制御部、 250 記憶部、 300 ルータ、 400 ネットワーク、 500 制御装置、 600 機器、 1000 制御システム。
Claims (8)
前記通信部が前記第2メッセージと前記第4メッセージとのうちの少なくとも1つをユニキャスト受信した場合、前記機器を登録するための情報を前記通信部に取得させる制御部と、
を備える制御装置。 After multicasting a first message for searching for a device that is a registration candidate, a second message that is a response to the first message can be unicast received from the device, and the same as the first message. a communication unit capable of unicast-receiving a fourth message, which is a response to the third message, from the device after broadcasting a third message of content;
a control unit that causes the communication unit to acquire information for registering the device when the communication unit receives at least one of the second message and the fourth message by unicast;
A control device comprising:
前記制御部は、前記第1トランザクションIDと前記第2トランザクションIDとをもとに、前記第2メッセージと前記第4メッセージが同一内容であると判定する請求項1から4のいずれか1項に記載の制御装置。 the first message and the second message include a first transaction ID, the third message and the second message include a second transaction ID;
5. The method according to any one of claims 1 to 4, wherein the control unit determines that the second message and the fourth message have the same content based on the first transaction ID and the second transaction ID. Control device as described.
前記制御部が前記通信部に取得させる前記機器を登録するための情報には、前記機器の固有の情報と、前記機器の種別に特化した情報が含まれ、
前記通信部は、前記機器の固有の情報を要求するための第5メッセージを前記機器にユニキャスト送信してから、前記機器の固有の情報が含まれた第6メッセージを前記機器からユニキャスト受信し、
前記通信部は、前記機器の種別に特化した情報を要求するための第7メッセージを前記機器にユニキャスト送信してから、前記機器の種別に特化した情報が含まれた第8メッセージを前記機器からユニキャスト受信する請求項1から5のいずれか1項に記載の制御装置。 The second message and the fourth message that can be unicast received by the communication unit include information indicating the type of the device,
The information for registering the device that the control unit causes the communication unit to acquire includes information specific to the device and information specific to the type of the device,
The communication unit unicast-transmits a fifth message for requesting information unique to the device to the device, and then unicast-receives a sixth message including information unique to the device from the device. death,
The communication unit unicast-transmits to the device a seventh message for requesting information specific to the type of the device, and then transmits an eighth message including information specific to the type of the device. 6. The control device according to any one of claims 1 to 5, wherein unicast reception is performed from the device.
前記機器における情報の存在を知らせるための第1メッセージをマルチキャスト送信するとともに、前記第1メッセージと同一の内容の第2メッセージをブロードキャスト送信する通信部と、
前記通信部からマルチキャスト送信した前記第1メッセージと、前記通信部からブロードキャスト送信した前記第2メッセージのうちの少なくとも1つを前記制御装置が受信した場合、前記機器における情報を前記通信部から前記制御装置に提供させる制御部と、
を備える機器。 A device registered in a control device,
a communication unit that multicast-transmits a first message for notifying the presence of information in the device and broadcast-transmits a second message having the same content as the first message;
when the control device receives at least one of the first message multicast-transmitted from the communication unit and the second message broadcast-transmitted from the communication unit, information in the device is transmitted from the communication unit to the control unit; a control unit provided by the device;
equipment with
前記制御装置は、前記第1トランザクションIDと前記第2トランザクションIDとをもとに、前記第1メッセージと前記第2メッセージが同一内容であると判定する請求項7に記載の機器。 the first message includes a first transaction ID and the second message includes a second transaction ID;
8. The device according to claim 7, wherein the control device determines that the first message and the second message have the same content based on the first transaction ID and the second transaction ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021203693A JP2023088763A (en) | 2021-12-15 | 2021-12-15 | Control device, device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021203693A JP2023088763A (en) | 2021-12-15 | 2021-12-15 | Control device, device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023088763A true JP2023088763A (en) | 2023-06-27 |
Family
ID=86935336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2021203693A Pending JP2023088763A (en) | 2021-12-15 | 2021-12-15 | Control device, device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023088763A (en) |
-
2021
- 2021-12-15 JP JP2021203693A patent/JP2023088763A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7693934B2 (en) | Network device, system and method for providing list of controlled devices | |
US8090807B2 (en) | Home code setting method for home network system | |
JP2005517350A (en) | Router device and method for starting up router device | |
KR100513277B1 (en) | Device and method of connecting network being separately | |
JPWO2006043436A1 (en) | Communication device | |
JP6456794B2 (en) | Terminal and control method thereof | |
CN113196721A (en) | Discovery method and device of Internet of things equipment and terminal equipment | |
CN109618010A (en) | A method of realizing that internet of things equipment is registered and found automatically | |
JP5038956B2 (en) | Network system | |
JP2023088763A (en) | Control device, device | |
KR102009810B1 (en) | Method and apparatus for transmitting and receiving a service in a wireless communication system | |
JP2010276204A (en) | Communication system of air conditioning device | |
CN111274319A (en) | State information query method and device | |
US7539739B2 (en) | Self-configuring network system and routers for use therein | |
US9801218B2 (en) | Establishing method for self-organization network of wireless nodes | |
JP2017068511A (en) | Instrument management method and instrument management device | |
KR20160147330A (en) | Home appliance | |
JP6344169B2 (en) | Control device, program | |
WO2024011368A1 (en) | Device discovery method and apparatus, device, storage medium, and program product | |
JP5129630B2 (en) | Network system | |
CN116962109A (en) | Distribution network control system and distribution network control method | |
JP3392133B1 (en) | Data transmission method in home bus system | |
JP2022050865A (en) | Monitoring device and monitoring method | |
WO2016158086A1 (en) | Terminal and method of controlling same | |
JP4760662B2 (en) | Service program, server, network system |