JP4984898B2 - Equipment management device - Google Patents

Equipment management device Download PDF

Info

Publication number
JP4984898B2
JP4984898B2 JP2007002946A JP2007002946A JP4984898B2 JP 4984898 B2 JP4984898 B2 JP 4984898B2 JP 2007002946 A JP2007002946 A JP 2007002946A JP 2007002946 A JP2007002946 A JP 2007002946A JP 4984898 B2 JP4984898 B2 JP 4984898B2
Authority
JP
Japan
Prior art keywords
echonet
identification information
individual identification
service
event
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.)
Expired - Fee Related
Application number
JP2007002946A
Other languages
Japanese (ja)
Other versions
JP2008172462A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007002946A priority Critical patent/JP4984898B2/en
Publication of JP2008172462A publication Critical patent/JP2008172462A/en
Application granted granted Critical
Publication of JP4984898B2 publication Critical patent/JP4984898B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

技術分野は、機器を制御又は管理する機器管理装置に関する。   The technical field relates to a device management apparatus that controls or manages devices.

近年、AV機器、白物家電、住設機器といった宅内機器がネットワーク接続機能を搭載し始めている。それに伴いネットワークを介した宅内機器の集中制御、状態監視、機器間の連携に関するユーザニーズが高まりを見せている。   In recent years, home devices such as AV devices, white goods, and home appliances have begun to have a network connection function. Along with this, user needs regarding centralized control of home devices via a network, status monitoring, and cooperation between devices are increasing.

特許文献1には、「家庭内ネットワーク上に接続された家電機器の制御のためのモジュールを自動的に取得し、また自動的に更新可能な通信制御装置及び通信制御方法を提供すること」を課題とし、その解決手段として「家庭内ネットワーク及び外部ネットワークに接続される通信制御装置であって、前記家庭内ネットワークを介して家電機器へ所定のコマンドを与えるための制御手段と、前記家庭内ネットワーク上の端末装置へ、該端末装置から要求された家電機器の制御のためのインタフェースをWeb画面の形で提供するとともに、該端末装置から該Web画面の形のインタフェースを介して与えられた、前記家電機器に対する所定のコマンドを、前記制御手段へ与えるためのWebサーバ手段と、前記外部ネットワークを介して、各家電機器に対応する所定のサーバ装置から、各家電機器の制御のためのWeb画面の形のインタフェースのもととなるファイルを取得するための取得手段とを備え」ることが開示されている(要約参照)。   Patent Document 1 discloses that “a module for controlling home appliances connected on a home network is automatically obtained and a communication control device and a communication control method that can be automatically updated” are provided. As a means for solving the problem, “a communication control apparatus connected to a home network and an external network, the control means for giving a predetermined command to home appliances via the home network, and the home network” Provided in the form of a Web screen to the above terminal device for control of home appliances requested from the terminal device, and provided from the terminal device through the interface in the form of the Web screen, Web server means for giving a predetermined command to the home appliance to the control means, and each external network via the external network It is disclosed that the image processing apparatus includes an acquisition unit for acquiring a file serving as an interface in the form of a Web screen for controlling each home electric appliance from a predetermined server device corresponding to the electric device. See summary).

特開2004−213251([0010]、[0011])JP-A-2004-213251 ([0010], [0011])

しかし、特許文献1に開示される技術的思想には次のような問題がある。
特許文献1では、ホームゲートウェイが家電機器を検出する詳細な手順についての考慮がない。そのため、ホームゲートウェイが家電機器を検出することは困難である。なお、家電機器の制御を行うためのネットワークの規格としてECHONET(エコーネット)コンソーシアムが規定するECHONET規格があり、ECHONET機器が持つべきプロパティについての記載はあるが、それらを用いた機器の検出手順については詳細な規定がない。そのため、ECHONET規格においてもECHONET機器の検出を行うことは困難である。
However, the technical idea disclosed in Patent Document 1 has the following problems.
In patent document 1, there is no consideration about the detailed procedure in which a home gateway detects a household appliance. Therefore, it is difficult for the home gateway to detect the home appliance. There is an ECHONET standard defined by the ECHONET consortium as a network standard for controlling home appliances, and there are descriptions of properties that the ECHONET equipment should have, but about the detection procedure of equipment using them There is no detailed provision. Therefore, it is difficult to detect an ECHONET device even in the ECHONET standard.

また、特許文献1に開示される技術的思想では、ホームゲートウェイが検出した家電機器の情報を元に機器を操作するインタフェースを端末装置へWeb画面の形で提供するためのもととなるファイル(CGI)をダウンロードするが、そのCGIにおいて、実際に機器を操作するための詳細な手順についての考慮がない。例えば、前記ECHONET規格においてはECHONETプロトコルにおいては操作のためにECHONETアドレスを用いて制御対象の機器を特定するが、ECHONETアドレスは機器の起動毎等で変化する可能性がある。そのため、CGIが家電機器を制御するためには、機器毎に不変の情報とECHONETアドレスとの整合を取るための手順が必要となる。しかし、従来技術にはそのための詳細な手順が考慮されていないため、第3の事業者がCGIを作成し、従来技術に示されるシステムに乗り入れることについての考慮がない。   Further, according to the technical idea disclosed in Patent Document 1, a file (based on providing a terminal device with an interface for operating a device based on information on home appliances detected by the home gateway in the form of a Web screen) CGI) is downloaded, but there is no consideration for the detailed procedure for actually operating the device in the CGI. For example, in the ECHONET standard, in the ECHONET protocol, a device to be controlled is specified using an ECHONET address for operation, but the ECHONET address may change every time the device is activated. Therefore, in order for CGI to control home appliances, a procedure is required for matching the invariant information and the ECHONET address for each device. However, since the detailed procedure for that is not considered in the prior art, there is no consideration about the third operator creating CGI and getting into the system shown in the prior art.

また、一般にホームゲートウェイ(あるいはホームサーバ)と呼ばれる機器におけるソフトウェアコンポーネント化技術に関する考慮がない。例えば、ホームゲートウェイのソフトウェアコンポーネント化技術としてOSGiサービス基盤が知られていが、特許文献1に示される方法にはOSGiサービス基盤に関する考慮はない。
なお、OSGiサービス基盤には様々なソフトウェア部品(バンドル)のダウンロード、インストール、実行といったライフサイクルの管理や他のバンドルとのインタフェース(サービス)の管理機能を実装するOSGiフレームワーク、およびHTTPサーバ、UPnP機器管理・制御といった標準バンドルが含まれており、一般にホームゲートウェイと呼ばれる機器における標準技術として認知がされ始めている。
In addition, there is no consideration regarding software componentization technology in a device generally called a home gateway (or home server). For example, the OSGi service platform is known as a software componentization technology for the home gateway, but the method disclosed in Patent Document 1 does not consider the OSGi service platform.
The OSGi service platform includes an OSGi framework that implements lifecycle management such as downloading, installation, and execution of various software components (bundles) and interface (service) management with other bundles, an HTTP server, and UPnP. Standard bundles such as device management and control are included, and it is beginning to be recognized as a standard technology for devices generally called home gateways.

上記課題を解決するために、本発明の一実施の態様は、機器を管理する装置であって、ネットワークに接続された機器の検出を行うドライバと、機器のソフトウェアを管理する機能を有するフレームワークとを備え、ドライバは機器から受信した情報に基づいてフレームワークに機器の情報(ソフトウェア)を登録する。   In order to solve the above-described problem, an embodiment of the present invention is an apparatus that manages a device, and includes a driver that detects a device connected to a network and a function that manages software of the device. The driver registers device information (software) in the framework based on the information received from the device.

より具体的には、ECHONET機器との間で、ECHONET規格で定める物理層を介して情報のやり取りを行う手段を有し、ECHONET機器から取得した個体識別情報プロパティが個体識別情報管理テーブルに既に記載済みであるかどうかを調査する個体識別情報記載調査手段を有し、取得した個体識別情報プロパティが個体識別情報管理テーブルに未記載であった場合に該当個体識別情報を有するECHONET機器のインスタンスリストプロパティ(インスタンスコードのリスト)を取得するインスタンスリスト取得手段を有し、個体識別情報とインスタンスコードからECHONETデバイスサービスを唯一特定するサービス識別情報を生成するサービス識別情報生成機能を有し、OSGiフレームワークに登録済みのECHONETデバイスサービスからある個体識別情報を有するサービスのみをフィルタリングするためのフィルタを作成する個体識別情報フィルタ作成機能を有し、OSGiフレームワークからフィルタ作成機能で作成したフィルタを用いてある個体識別情報を有するECHONETデバイスサービスのサービスリファレンスのみを取得するフィルタリングサービスリファレンス取得機能を有し、サービス識別情報生成機能で作成したサービス識別情報のうち取得したサービスリファレンスに該当しないサービス識別情報を調査するサービス識別情報比較手段を有し、サービス識別情報比較手段を以って取得したサービスリファレンスに該当しないサービス識別情報を有するECHOENTデバイスサービスをECHONETデバイスサービスとしてOSGiフレームワークに新規に登録するOSGiフレームワーク登録機能を機器管理装置に有する構成とした。   More specifically, it has means for exchanging information with the ECHONET device via the physical layer defined by the ECHONET standard, and the individual identification information property acquired from the ECHONET device is already described in the individual identification information management table. The instance list property of the ECHONET device having the individual identification information when the acquired individual identification information property is not described in the individual identification information management table. An instance list acquisition means for acquiring (a list of instance codes), a service identification information generation function for generating service identification information that uniquely identifies the ECHONET device service from the individual identification information and the instance code, and the OSGi framework Registered ECH It has an individual identification information filter creation function for creating a filter for filtering only services having individual identification information from the NET device service, and the individual identification information using the filter created by the filter creation function from the OSGi framework Service identification information comparison that has a filtering service reference acquisition function that acquires only the service reference of the ECHONET device service that has the service identification information that does not correspond to the acquired service reference among the service identification information created by the service identification information generation function And an ECHOENT device service having service identification information that does not correspond to the service reference acquired by the service identification information comparison means as an ECHONET device service. And configured to have an OSGi framework registration function of registering the new device management device in the OSGi framework Te.

また、上記機器管理装置は、個体識別情報管理テーブルに記載のECHONET機器から個体識別情報プロパティを取得する個体識別情報取得手段を有し、個体識別情報プロパティ取得手段を実行した際にECHONET機器からの応答があるかどうかを調査する個体識別情報取得応答調査手段を有し、応答がなかった場合に該当する個体識別情報を有するECHONETデバイスサービスをOSGiフレームワークから削除するECHONETデバイスサービス削除手段を有する構成とした。   Further, the device management apparatus has an individual identification information acquisition unit that acquires an individual identification information property from the ECHONET device described in the individual identification information management table, and when the individual identification information property acquisition unit is executed, Configuration having individual identification information acquisition response investigation means for examining whether or not there is a response, and ECHONET device service deletion means for deleting the ECHONET device service having the corresponding individual identification information from the OSGi framework when there is no response It was.

また、上記機器管理装置は、所望のECHONETデバイスサービスに対して、ECHONETプロパティ値の取得、設定を行うECHONETプロパティ取得、設定手段を有する構成とした。   Further, the device management apparatus has an ECHONET property acquisition / setting unit for acquiring and setting an ECHONET property value for a desired ECHONET device service.

また、上記機器管理装置は、所望のECHONET機器からのイベントのみを取得するためのフィルタを作成するイベントフィルタ作成手段を有し、上記イベントフィルタを設定した上でECHONETイベントリスナ実装オブジェクトをOSGiフレームワークに登録するイベントリスナ登録手段を有する構成とした。   Further, the device management apparatus has an event filter creating means for creating a filter for acquiring only an event from a desired ECHONET device. After setting the event filter, the ECHONET event listener implementation object is set to the OSGi framework. It has the structure which has the event listener registration means registered into.

また、上記機器管理装置は、ECHONET機器からのイベントを取得するイベント取得手段を有し、取得したイベントと個体識別情報管理テーブルに記載の情報から該当ECHONETデバイスサービスのサービス識別情報を生成するイベント受信時サービス識別情報生成手段を有し、上記サービス識別情報に該当するECHONETイベントリスナ実装オブジェクトに対してイベントを通知するイベント通知手段を有する構成とした。   Further, the device management apparatus has an event acquisition unit that acquires an event from the ECHONET device, and receives an event that generates service identification information of the corresponding ECHONET device service from the acquired event and information described in the individual identification information management table And an event notification means for notifying an ECHONET event listener implementation object corresponding to the service identification information.

上記の手段によれば例えば、宅内機器の制御等を容易にすることができる。
上記以外の課題、手段、効果も後述する実施形態の説明の欄で述べる。
According to the above means, for example, control of in-home equipment can be facilitated.
Issues, means, and effects other than those described above will also be described in the description of embodiments described later.

(1)概要
本実施例における機器制御装置の動作の概要を説明する。本実施例ではECHONET規格に対応し、ソフトウェアコンポーネント化技術としてOSGiサービス基盤を用いた機器制御装置について述べる。ECHONET規格では、ECHONET電文をJava(登録商標)から扱うためのECHONET Java(登録商標)APIを規定している。このECHONET Java(登録商標)APIはECHONETミドルともいう。ECHONETミドルを用いて機器の検出、切断監視、イベント管理を行う部分をECHONETドライバともいう。ECHONETミドルとECHONETドライバとを含む部分をECHONETバンドルともいう。また、OSGiサービス基盤において様々なソフトウェア部品(バンドル)のダウンロード、インストール、実行といったライフサイクルの管理や他のバンドルとのインタフェース(サービス)の管理機能を実装する部分をOSGiフレームワーク(OSGi FW)ともいう。また、ECHONET規格に対応する機器をECHONET機器ともいう。
(1) Overview An overview of the operation of the device control apparatus in the present embodiment will be described. In the present embodiment, a device control apparatus that corresponds to the ECHONET standard and uses an OSGi service platform as a software component technology will be described. The ECHONET standard defines an ECHONET Java (registered trademark) API for handling ECHONET messages from Java (registered trademark). This ECHONET Java (registered trademark) API is also called ECHONET middle. A part that performs device detection, disconnection monitoring, and event management using the ECHONET middle is also referred to as an ECHONET driver. A portion including the ECHONET middle and the ECHONET driver is also referred to as an ECHONET bundle. Also, the OSGi framework (OSGi FW) is a part that implements lifecycle management such as downloading, installing, and executing various software components (bundles) in the OSGi service platform and interface (service) management functions with other bundles. Say. In addition, a device corresponding to the ECHONET standard is also referred to as an ECHONET device.

図5を用いてECHONET機器についての情報をOSGiフレームワークに登録する手順について説明する。
まず、ECHONETドライバは、ECHONETミドルを介してECHONET機器についての情報(「個体識別情報」ともいう。)を取得する(S501〜S505)。ECHONETドライバは取得した個体識別情報が後述する個体識別情報管理テーブルに登録済であるか否かを判断する(S506)。登録済でない場合は個体識別情報管理テーブルに該個体識別情報を登録する(S507)。
A procedure for registering information about the ECHONET device in the OSGi framework will be described with reference to FIG.
First, the ECHONET driver acquires information about the ECHONET device (also referred to as “individual identification information”) via the ECHONET middle (S501 to S505). The ECHONET driver determines whether or not the acquired individual identification information has been registered in an individual identification information management table described later (S506). If not registered, the individual identification information is registered in the individual identification information management table (S507).

ECHONETドライバはECHONETミドルを介して該個体識別情報が示すECHONET機器が保持する機器オブジェクト(実際の機器の制御を行うオブジェクト)の一覧を取得する(S508〜S515)。ECHONETドライバは取得したECHONET機器の保持する機器オブジェクトの一覧に基づき、未登録の機器オブジェクトに対応するECHONETデバイスサービスをOSGiフレームワークに登録する(S516〜S520)。このようにすることで、ECHONET機器についての情報をOSGiフレームワークに登録することができる。   The ECHONET driver acquires a list of device objects (objects for controlling the actual device) held by the ECHONET device indicated by the individual identification information via the ECHONET middle (S508 to S515). The ECHONET driver registers the ECHONET device service corresponding to the unregistered device object in the OSGi framework based on the acquired list of device objects held by the ECHONET device (S516 to S520). In this way, information about the ECHONET device can be registered in the OSGi framework.

ECHONET機器についての情報をOSGiフレームワークに登録することで、ECHONET機器が宅内ネットワークから離脱したかどうかを監視する切断監視、ECHONET機器を制御する機器制御、ECHONET機器にイベントを登録するイベント登録、該イベントを取得するイベント通知取得を実現することができる。これらの動作は図16〜図21を用いて後述する。   By registering information about the ECHONET device in the OSGi framework, disconnection monitoring for monitoring whether the ECHONET device has left the home network, device control for controlling the ECHONET device, event registration for registering an event in the ECHONET device, Event notification acquisition for acquiring an event can be realized. These operations will be described later with reference to FIGS.

(2)詳細
図を用いて本実施例における機器制御装置の動作の詳細を説明する。
図1は本実施例におけるネットワーク構造の一例を示す図である。この図において、101は宅内機器管理装置、102は宅内ネットワーク、103、104、105はECHONET機器である。宅内機器管理装置101は、宅内ネットワーク102を介してECHONET機器と接続し、情報のやり取りを行うことができる。宅内機器管理装置はホームゲートウェイともいう。
(2) Details Details of the operation of the device control apparatus according to this embodiment will be described with reference to the drawings.
FIG. 1 is a diagram showing an example of a network structure in the present embodiment. In this figure, 101 is a home device management apparatus, 102 is a home network, and 103, 104, and 105 are ECHONET devices. The in-home device management apparatus 101 is connected to the ECHONET device via the home network 102 and can exchange information. The home appliance management apparatus is also called a home gateway.

宅内ネットワーク102は、宅内のECHONET機器が接続可能なネットワークである。宅内ネットワーク102は、例えばEthernet(登録商標)ケーブルを用いた有線あるいは、IEEE802.1xまたはBluetoothを用いた無線によるIPネットワークである。ECHONET規格においてはECHONET機器が情報のやり取りを行うためのネットワークの物理層は特定小電力無線、電力線等を用いても実現可能であり、宅内機器管理装置やECHONET機器のハードウェア構成がそれらのネットワークに適合していれば以下の説明における手順を適用可能である。   The home network 102 is a network to which home ECHONET devices can be connected. The home network 102 is, for example, a wired IP network using an Ethernet (registered trademark) cable or a wireless IP network using IEEE802.1x or Bluetooth. In the ECHONET standard, the physical layer of the network for exchanging information between the ECHONET devices can be realized by using a specific low power radio, a power line, etc., and the hardware configuration of the in-home device management apparatus and the ECHONET device is those networks. The procedure in the following description can be applied as long as it conforms to.

ECHONET機器103、104、105は宅内ネットワーク102を介して宅内機器管理装置と情報のやり取りを行うことができる機器である。ECHONET機器は例えばテレビ、レコーダ、エアコン等がある。   The ECHONET devices 103, 104, and 105 are devices that can exchange information with the home device management apparatus via the home network 102. The ECHONET equipment includes, for example, a television, a recorder, and an air conditioner.

図2は宅内機器管理装置101のハードウェア構成図の一例である。
宅内機器管理装置101は、CPU(Central Processing Unit)201、メインメモリ202、EPROM(Erasable Programmable Read Only Member)203、不揮発性記憶装置204、LANI/F(Local Area Network InterFace)205とで構成される。各構成要素はバス206によって接続され、必要な情報が伝送可能なように構成する。
FIG. 2 is an example of a hardware configuration diagram of the home appliance management apparatus 101.
The in-home device management apparatus 101 includes a CPU (Central Processing Unit) 201, a main memory 202, an EPROM (Erasable Programmable Read Only Member) 203, a nonvolatile storage device 204, and a LAN I / F (Local Area Network Interface) 205. . Each component is connected by a bus 206 so that necessary information can be transmitted.

CPU201は、EPROM203や不揮発性記憶装置204にあらかじめ格納されているプログラムによって所定の動作を行う。CPUは中央処理装置ともいい、各装置の制御やデータの計算・加工を行う装置である。
メインメモリ202は、ワークメモリとして機能する。メインメモリは主記憶装置ともいい、データやプログラムを記憶する装置である。動作が高速で、CPUから直接読み書きすることができる。
The CPU 201 performs a predetermined operation by a program stored in advance in the EPROM 203 or the nonvolatile storage device 204. The CPU is also called a central processing unit, and is a device that controls each device and calculates / processes data.
The main memory 202 functions as a work memory. The main memory is also called a main storage device, and is a device that stores data and programs. It operates at high speed and can be read and written directly from the CPU.

EPROM203は、記録の消去、書き込みを何度でも行える読み出し専用のメモリであって、必要なプログラムを格納するための手段である。
不揮発性記憶装置204は、必要なプログラムを格納したり、不揮発に記憶すべき情報を格納するための手段である。不揮発性記憶装置204は、例えばコンパクトフラッシュ(登録商標)やハードディスクである。
The EPROM 203 is a read-only memory capable of erasing and writing a record any number of times, and is a means for storing a necessary program.
The non-volatile storage device 204 is a means for storing a necessary program or information to be stored in a non-volatile manner. The nonvolatile storage device 204 is, for example, a compact flash (registered trademark) or a hard disk.

LANI/F205は、通信網を介して他の機器と情報を送受信する為の手段である。LANI/F205は、例えばネットワークアダプタ、無線送受信装置等によって実現される。LANはローカルエリアネットワークともいい、I/Fはインタフェースともいう。なお、宅内機器管理装置101の各構成要素のうち不要なものは構成から省いても良い。例えば、不揮発に記憶すべき情報が存在しない場合には不揮発性記憶装置204を図2の構成から取り除くことができる。   The LAN I / F 205 is a means for transmitting / receiving information to / from other devices via a communication network. The LAN I / F 205 is realized by, for example, a network adapter, a wireless transmission / reception device, or the like. The LAN is also called a local area network, and the I / F is also called an interface. Note that unnecessary components among the components of the home appliance management apparatus 101 may be omitted from the configuration. For example, if there is no information to be stored in a nonvolatile manner, the nonvolatile storage device 204 can be removed from the configuration of FIG.

図3はECHONET機器103、104、105のハードウェア構成図の一例である。
ECHONET機器103、104、105は、CPU301、メインメモリ302、EPROM303、LAN/IF305とを有して構成される。各構成要素はバス307によって接続され、必要な情報が伝送可能なように構成されている。
FIG. 3 is an example of a hardware configuration diagram of the ECHONET devices 103, 104, and 105.
The ECHONET devices 103, 104, and 105 include a CPU 301, a main memory 302, an EPROM 303, and a LAN / IF 305. Each component is connected by a bus 307 so that necessary information can be transmitted.

CPU301は、EPROM303にあらかじめ格納されているプログラムによって所定の動作を行う。CPUは中央処理装置ともいい、各装置の制御やデータの計算・加工を行う装置である。
メインメモリ302は、ワークメモリとして機能する。メインメモリは主記憶装置ともいい、データやプログラムを記憶する装置である。動作が高速で、CPUから直接読み書きすることができる。
The CPU 301 performs a predetermined operation by a program stored in the EPROM 303 in advance. The CPU is also called a central processing unit, and is a device that controls each device and calculates / processes data.
The main memory 302 functions as a work memory. The main memory is also called a main storage device, and is a device that stores data and programs. It operates at high speed and can be read and written directly from the CPU.

EPROM303は、は、記録の消去、書き込みを何度でも行える読み出し専用のメモリであって、必要なプログラムを格納するための手段である。
LAN/IF305は、通信網を介して宅内機器管理装置101及び/又は他の機器と情報を送受信する為の手段である。LAN/IF305は、例えばネットワークアダプタ、無線送受信装置等によって実現される。LANはローカルエリアネットワークともいい、I/Fはインタフェースともいう。なお、ECHONET機器103、104、105の各構成要素のうち不要なものは構成から取り除くことができる。
The EPROM 303 is a read-only memory that can erase and write a record any number of times, and is a means for storing a necessary program.
The LAN / IF 305 is means for transmitting / receiving information to / from the home device management apparatus 101 and / or other devices via a communication network. The LAN / IF 305 is realized by, for example, a network adapter, a wireless transmission / reception device, or the like. The LAN is also called a local area network, and the I / F is also called an interface. Note that unnecessary components among the components of the ECHONET devices 103, 104, and 105 can be removed from the configuration.

次に、宅内機器管理装置101上で動作するプログラムについて述べる。
宅内機器管理装置101にはOSGiコンソーシアムで規定するOSGiサービス基盤が搭載されている。OSGiサービス基盤は、Java(登録商標)ベースのソフトウェアコンポーネント化技術であり、OSGiフレームワークとOSGiフレームワーク上で動作するソフトウェアからなる。このソフトウェアをバンドルともいう。OSGiフレームワーク上で動作するバンドルにはHTTPサーバ(World Wide Webによる情報送信機能を持ったコンピュータ。Webサーバともいう。)やUPnP(Universal Plug and Playの略。家庭内のパソコンや周辺機器、AV機器、電話、家電製品などの機器をネットワークを通じて接続し、相互に機能を提供しあうための技術仕様。)に対応した機器の管理・制御といった、OSGiサービス基盤に含まれる標準バンドルと、OSGiサービス基盤の手法にのっとって実装されたユーザバンドルとがある。
Next, a program that operates on the home appliance management apparatus 101 will be described.
The home appliance management apparatus 101 is equipped with an OSGi service platform defined by the OSGi consortium. The OSGi service platform is a Java (registered trademark) -based software componentization technology, and includes an OSGi framework and software operating on the OSGi framework. This software is also called a bundle. Bundles that run on the OSGi framework are HTTP servers (computers with the function of sending information via the World Wide Web; also called Web servers) and UPnP (Universal Plug and Play). Standard bundles included in the OSGi service platform, such as management and control of devices that support devices, telephones, home appliances and other devices connected via a network and provide functions to each other) and OSGi services There are user bundles implemented according to the basic method.

OSGiフレームワークはバンドルのダウンロード、インストール、起動、停止などのライフサイクルを管理したり、バンドルがOSGiフレームワーク上で動作する他のバンドルを操作するためのAPI(Application Program Interfaceの略。あるプラットフォーム(OSやミドルウェア)向けのソフトウェアを開発する際に使用できる命令や関数の集合のこと)を提供することができる。
バンドルは、自身のAPIをサービスとしてOSGiフレームワークに登録し、他のバンドルからの操作を受け付けることができる。
The OSGi framework is an abbreviation of API (Application Program Interface) for managing the life cycle such as downloading, installing, starting, and stopping a bundle, and for operating other bundles operating on the OSGi framework. A set of instructions and functions that can be used when developing software for the OS and middleware).
A bundle can register its API as a service in the OSGi framework and accept operations from other bundles.

本実施例において、宅内機器管理装置101上で動作するOSGiフレームワーク上ではECHONET機器の検出、検出した機器へ制御を行うためのOSGiフレームワークへのサービス登録、ECHONET機器からの通知イベントの管理を行うECHONET機器管理バンドルが動作しているものとする。このECHONET機器管理バンドルをECHONETバンドルともいう。   In the present embodiment, on the OSGi framework operating on the home device management apparatus 101, ECHONET devices are detected, services are registered in the OSGi framework to control the detected devices, and notification events from the ECHONET devices are managed. It is assumed that the ECHONET device management bundle to be operated is operating. This ECHONET device management bundle is also referred to as an ECHONET bundle.

ECHONETバンドルは、宅内ネットワークに接続したECHONET機器を検出し、ECHONETデバイス(Echonet Device)サービスとしてOSGiフレームワークに登録する。また、ECHONETバンドルは、宅内のECHONET機器から受け取ったイベント情報をECHONETイベントリスナ(Echonet Event Listener)サービスに対して通知することができる。ECHONETデバイスサービスとは、OSGiフレームワークに登録されるサービスであり、ECHONET機器の機器オブジェクトを示す。OSGiフレームワーク上で動作するバンドルはOSGiフレームワークからECHONETデバイスサービスを取得し、ECHONETデバイスサービスに対してECHONET機器に関する情報の取得や設定を行うことでECHONET機器の機器オブジェクトを情報のやり取りを行うことができる。Echonet Event Listener(ECHONETイベントリスナ)とは、OSGiフレームワーク上で動作するバンドルがECHONET機器からのイベントを取得するためのインタフェースである。バンドルは、ECHONETイベントリスナを実装し、ECHONETイベントリスナのオブジェクトをECHONETイベントリスナサービスとしてOSGiフレームワークに登録することでECHONET機器からイベントを受信することができる。   The ECHONET bundle detects an ECHONET device connected to the home network and registers it as an ECHONET device (Echonet Device) service in the OSGi framework. Further, the ECHONET bundle can notify the event information received from the ECHONET device in the home to the ECHONET event listener (Echonet Event Listener) service. The ECHONET device service is a service registered in the OSGi framework and indicates a device object of the ECHONET device. A bundle operating on the OSGi framework acquires an ECHONET device service from the OSGi framework, and exchanges information on the device object of the ECHONET device by acquiring and setting information on the ECHONET device with respect to the ECHONET device service. Can do. The Echonet Event Listener (ECHONET event listener) is an interface for a bundle operating on the OSGi framework to acquire an event from the ECHONET device. A bundle can receive an event from an ECHONET device by implementing an ECHONET event listener and registering an object of the ECHONET event listener as an ECHONET event listener service in the OSGi framework.

宅内のECHONET機器を操作するアプリケーションソフトウェアは、OSGiフレームワークからECHONETデバイスサービスを取得し、ECHONETデバイスサービスのAPIであるECHONETプロパティ(Echonet Property)値の設定、読み出し等を用いて宅内のECHONET機器に対し制御を行うことができる。アプリケーションソフトウェアはアプリケーションバンドルともいう。
また、アプリケーションバンドルは、ECHONETバンドルが提供するECHONETイベントリスナのインタフェースを実装し、ECHONETイベントリスナサービスとしてOSGiフレームワークに登録することにより、ECHONETバンドルが取得したイベント情報を取得し、所望の処理を行うことができる。
The application software that operates the ECHONET device in the home acquires the ECHONET device service from the OSGi framework, and uses the ECHONET property (Echonet Property) value setting and reading of the ECHONET device service API to the ECHONET device in the home. Control can be performed. Application software is also called application bundle.
In addition, the application bundle implements the interface of the ECHONET event listener provided by the ECHONET bundle, and registers with the OSGi framework as an ECHONET event listener service, thereby acquiring event information acquired by the ECHONET bundle and performing desired processing. be able to.

次に、本実施例におけるテーブル情報について説明する。
図4は、ECHONETバンドルが保持する個体識別情報管理テーブル400である。列401は個体識別情報、列402はECHONETアドレス、列403は再検索待機数である。
個体識別情報管理テーブルとは、ECHONET機器の個体識別情報を管理するテーブルであり、個体識別情報と個体識別情報に対応するECHONETアドレスとが格納される。また、個体識別情報と個体識別情報に対応する再検索待機数とが格納される。個体識別情報管理テーブル400は、ECHONETバンドルの動作中に宅内機器管理装置101のメインメモリ202上に記憶されるか、ECHONETバンドルの起動時に不揮発性記憶装置204からメインメモリ202上に読み出され、テーブル更新時やECHONETバンドルの終了時といった所定のタイミングで再び不揮発性記憶装置204に記憶される。
Next, table information in the present embodiment will be described.
FIG. 4 is an individual identification information management table 400 held by the ECHONET bundle. A column 401 is individual identification information, a column 402 is an ECHONET address, and a column 403 is a re-search waiting number.
The individual identification information management table is a table for managing individual identification information of the ECHONET device, and stores individual identification information and an ECHONET address corresponding to the individual identification information. In addition, individual identification information and the number of waiting times for re-search corresponding to the individual identification information are stored. The individual identification information management table 400 is stored on the main memory 202 of the home appliance management apparatus 101 during the operation of the ECHONET bundle, or is read from the nonvolatile storage device 204 onto the main memory 202 when the ECHONET bundle is activated. The data is stored in the nonvolatile storage device 204 again at a predetermined timing such as when the table is updated or when the ECHONET bundle ends.

個体識別情報を格納する列401はECHONET機器が保持する個体識別情報を格納する。個体識別情報とはECHONET規格で定める機器固有の識別情報であり、ECHONETプロトコル(ECHONET規格にて定められる、ECHONET機器間でネットワークを介して情報をやり取りするための通信規約)によってECHONET機器から読み出すことができる。ECHONETバンドルはECHONET機器の検出時にECHONET機器から個体識別情報を読み出し、個体識別情報管理テーブル400に記憶する。   A column 401 for storing individual identification information stores individual identification information held by the ECHONET device. Individual identification information is device-specific identification information defined by the ECHONET standard, and is read from the ECHONET device by the ECHONET protocol (a communication protocol for exchanging information between ECHONET devices via the network). Can do. The ECHONET bundle reads the individual identification information from the ECHONET device when the ECHONET device is detected, and stores it in the individual identification information management table 400.

ECHONETアドレスを格納する列402は、ECHONET機器が保持するECHONETプロトコル上のアドレス情報であるECHONETアドレスを格納する。ECHONETアドレスはECHONETプロトコルによってやり取りされる情報(ECHONET電文)に付加される情報で、ECHONET電文には必ず情報の発信元のECHONETアドレスと情報の発信先のECHONETアドレスが記載されている。ECHONETバンドルは、ECHONET機器の検出時にECHONET機器から個体識別情報を読み出し、個体識別情報管理テーブル400に記憶する際に、個体識別情報読み出し時のECHONET電文に含まれるECHONETアドレスを記憶する。   The column 402 for storing ECHONET addresses stores ECHONET addresses that are address information on the ECHONET protocol held by the ECHONET device. The ECHONET address is information added to information exchanged by the ECHONET protocol (ECHONET message). The ECHONET message always includes the ECHONET address of the information source and the ECHONET address of the information destination. The ECHONET bundle stores the ECHONET address included in the ECHONET message at the time of reading the individual identification information when the individual identification information is read from the ECHONET device when the ECHONET device is detected and stored in the individual identification information management table 400.

再検索待機数を格納する列403は、ECHONETバンドルがECHONET機器を検出する際、一度検出した機器を再検索する際の指標となる数である再検索待機数を格納する。ECHONETバンドルが最初に個体識別情報を個体識別情報管理テーブル400に記憶する際、再検索待機数は0として記憶する。ECHONETバンドルは後述の機器検出フローにより定期的に宅内のECHONET機器の個体識別情報を検索するが、個体識別情報を個体識別情報管理テーブル400に記載した後に受信した際には当該個体識別情報に対応する再検索待機数を1ずつインクリメント(整数型の変数の値を1増やす処理)していく。再検索待機数がシステムで決定するある値X(例えば3)以上であれば、該当個体識別情報に対応するECHONET機器のインスタンスを再検索する。   A column 403 for storing the number of waiting for re-search stores the number of waiting for re-searching, which is an index used when the ECHONET bundle detects an ECHONET device and searches for the device once detected. When the ECHONET bundle first stores the individual identification information in the individual identification information management table 400, the re-search waiting number is stored as zero. The ECHONET bundle periodically searches the individual identification information of the ECHONET devices in the home by the device detection flow described later, and corresponds to the individual identification information when received after the individual identification information is entered in the individual identification information management table 400 The re-search waiting number to be incremented by 1 (a process of increasing the value of the integer type variable by 1). If the re-search waiting number is equal to or greater than a certain value X (for example, 3) determined by the system, the ECHONET device instance corresponding to the individual identification information is re-searched.

次に、本実施例における動作について説明する。
本実施例において、宅内機器管理装置101上のOSGiフレームワーク上で動作するECHONETバンドルは、宅内ネットワークに接続するECHONET機器の接続切断監視(検出およびネットワークからの離脱の監視)、検出したECHONET機器の制御を行うAPIのECHONETデバイスサービスとしてのOSGiフレームワークへの登録、宅内のECHONET機器からの通知イベントの管理を行う。これらの宅内機器管理装置に関する処理は宅内機器管理装置のCPU201で各種プログラムが実行されることにより実現される。また、後述のECHONET機器に関する処理(宅内機器管理装置からの要求に対する応答等)はECHONET機器のCPU301で各種プログラムが実行されることにより実現される。なお、一部又は全部の機能をハードウェアで実現してもよい。
Next, the operation in this embodiment will be described.
In this embodiment, the ECHONET bundle operating on the OSGi framework on the in-home device management apparatus 101 is used to monitor disconnection of ECHONET devices connected to the home network (detection and monitoring of disconnection from the network), and the detected ECHONET devices. The API to be controlled is registered in the OSGi framework as an ECHONET device service, and notification events from ECHONET devices in the home are managed. The processing related to these home device management apparatuses is realized by executing various programs by the CPU 201 of the home device management apparatus. Further, processing related to the ECHONET device described below (response to a request from the home device management apparatus, etc.) is realized by executing various programs by the CPU 301 of the ECHONET device. Note that some or all of the functions may be realized by hardware.

図5は、宅内ネットワークに接続するECHONET機器を検出し、OSGiフレームワークにECHONETデバイスサービスとして登録するまでの手順を示すシーケンス図である。
ECHONET規格では、ECHONET電文をJava(登録商標)から扱うためのECHONET Java(登録商標)APIを規定している。このECHONET Java(登録商標)APIをECHONETミドルともいう。ECHONETバンドルは、ECHONETミドルと、ECHONETミドルを用いて機器の検出、切断監視、イベント管理(イベント登録、イベント通知取得を含むイベントを管理することをいう。)を行うECHONETドライバと、ECHONET機器の制御やイベント取得を行うECHONETサービスAPIとからなる。
FIG. 5 is a sequence diagram showing a procedure from detection of an ECHONET device connected to the home network to registration as an ECHONET device service in the OSGi framework.
The ECHONET standard defines an ECHONET Java (registered trademark) API for handling ECHONET messages from Java (registered trademark). This ECHONET Java (registered trademark) API is also called ECHONET middle. The ECHONET bundle is an ECHONET middle, an ECHONET driver that performs device detection, disconnection monitoring, and event management (event management including event registration and event notification acquisition) using the ECHONET middle, and control of the ECHONET device. And an ECHONET service API that performs event acquisition.

図5におけるECHONET機器の検出、OSGiフレームワークへの登録手順において、ECHONETミドルのAPIおよびOSGiフレームワークのAPIはそれぞれECHONET規格およびOSGiサービス基盤で規定する標準のAPIである。
IP(Internet Protocolの略。ネットワークに参加している機器の住所付けや、相互に接続された複数のネットワーク内での通信経路の選定をするための方法を定義している。)網におけるECHONET通信はUDP(User Datagram Protocolの略。インターネットで利用される標準プロトコルで、ネットワーク層のIPと、セション層以上のプロトコルの橋渡しをする。)によって送受信されるため、通常それぞれのECHONET電文は相関関係を持たない。しかし、ECHONETミドルは、内部で自身が送信するECHONET電文に対する応答を待ってからAPIの呼出し元に対して応答する仕組みを実装するため、ECHONETミドルを用いることで、ECHONETの通信を同期的に行うことができる。
In the ECHONET device detection and OSGi framework registration procedures in FIG. 5, the ECHONET middle API and the OSGi framework API are standard APIs defined by the ECHONET standard and the OSGi service platform, respectively.
ECHONET communication in the IP network (abbreviation for Internet Protocol. It defines a method for assigning addresses of devices participating in the network and selecting communication paths in a plurality of interconnected networks.) Since UDP is an abbreviation for User Datagram Protocol. It is a standard protocol used on the Internet, and it bridges the network layer IP and the protocol above the session layer. Therefore, each ECHONET message usually has a correlation. do not have. However, the ECHONET middle implements a mechanism to respond to the API caller after waiting for a response to the ECHONET message transmitted by itself, so that the ECHONET middle performs synchronous ECHONET communication. be able to.

また、ECHONETミドルはECHONET機器が送信するイベント情報を受信するが、すべてのイベント情報を上位ソフトウェアに通知するためのAPIを保持することもできる。本実施例においては、ECHONETドライバはあらかじめ(起動時に)ECHONETミドルに対してすべてのイベントを通知するように設定済みであるものとする。   The ECHONET middle receives event information transmitted by the ECHONET device, but can also hold an API for notifying all the event information to the upper software. In the present embodiment, it is assumed that the ECHONET driver has been set in advance to notify all events to the ECHONET middle (at startup).

ここで、ECHONETバンドルのモジュール構成についてさらに詳細に説明する。ECHONETバンドルは、上位のバンドルがECHONETデバイスサービスを介してECHONET機器の操作するためのECHONETサービスAPI、ネットワークに接続されたECHONET機器を発見してOSGiフレームワーク上にECHONETデバイスサービスとして登録し、またECHONET機器からのイベントを上位のバンドルへと通知するECHONETドライバ、ECHONET規格にて定義される「レベル2ECHONET基本API(Java(登録商標)言語版)」を実装したモジュールであるECHONETミドルウェアといったモジュールから構成する。図22はECHONETバンドルのモジュール構成の概念図である。ECHONETバンドルはこれらのモジュールによって上記の動的接続・切断、制御、イベント通知といった機能を実現する。   Here, the module configuration of the ECHONET bundle will be described in more detail. The ECHONET bundle is an ECHONET service API that allows higher-level bundles to operate ECHONET devices via the ECHONET device service. ECHONET devices that are connected to the network are discovered and registered as ECHONET device services on the OSGi framework. An ECHONET driver that notifies an event from a device to a higher-level bundle, and a module such as ECHONET middleware that is a module that implements the “Level 2 ECHONET basic API (Java (registered trademark) language version)” defined in the ECHONET standard . FIG. 22 is a conceptual diagram of the module configuration of the ECHONET bundle. The ECHONET bundle realizes the functions such as dynamic connection / disconnection, control, and event notification by using these modules.

次に、上記ECHONETサービスAPIについて説明する。ECHONETサービスAPIは上位のバンドルに対して操作やイベント取得のためのAPIを提供するモジュールである。図23にECHONETサービスAPIのクラス図を示す。図中の白色の部分(網掛けがない部分)がECHONETサービスAPIである。ECHONETドライバは、宅内ネットワーク上でECHONET機器を発見すると該当機器に対応するECHONETデバイスサービスをOSGiフレームワークに登録する。上位のバンドルはOSGiフレームワークに登録されたECHONETデバイスサービスを検索、取得することにより、宅内ネットワークに接続するECHONET機器の存在を知り,制御を行うことができる。ECHONET機器からのイベントはECHONETミドルを介してまずそのすべてをECHONETドライバが取得する。ECHONETドライバは,上位バンドルによって実装されOSGiフレームワークに登録されたECHONETイベントリスナサービスを取得し、上位バンドルにイベントを通知する。   Next, the ECHONET service API will be described. The ECHONET service API is a module that provides an API for operations and event acquisition to the upper bundle. FIG. 23 shows a class diagram of the ECHONET service API. The white part (the part without shading) in the figure is the ECHONET service API. When the ECHONET driver finds an ECHONET device on the home network, it registers an ECHONET device service corresponding to the device in the OSGi framework. By searching for and acquiring ECHONET device services registered in the OSGi framework, the upper bundle can know and control the existence of ECHONET devices connected to the home network. All events from the ECHONET device are first acquired by the ECHONET driver via the ECHONET middle. The ECHONET driver acquires the ECHONET event listener service implemented by the upper bundle and registered in the OSGi framework, and notifies the upper bundle of the event.

図5のシーケンス図について説明する。S501、S502では、ECHONETドライバはECHONETミドルを介して、ECHONET規格で定めるマルチキャストアドレス(IPv4アドレス、224.0.23.0)に対し、ECHONET機器のノードプロファイル(通信モジュールのプロファイル)に対して個体識別情報のプロパティを取得する要求(以下、「個体識別情報取得要求」という。)を送信する。S501、S502の処理を実現する手段は個体識別情報登録調査手段ともいう。
S503では、ECHONET機器はマルチキャストアドレスに到達する情報を監視しており、個体識別情報取得要求を受信したECHONET機器は送信元ECHONETアドレスに対し、個体識別情報取得要求に対する応答(以下、「個体識別情報取得応答」という。)を送信する。S504、S505では、ECHONETミドルは個体識別情報取得応答を受信し、受信した個体識別情報取得応答をECHONETドライバに対して送信する。
The sequence diagram of FIG. 5 will be described. In S501 and S502, the ECHONET driver uses the ECHONET middle to send an individual ECHONET device node profile (communication module profile) to the multicast address (IPv4 address, 224.0.23.0) defined in the ECHONET standard. A request for acquiring the property of the identification information (hereinafter referred to as “individual identification information acquisition request”) is transmitted. Means for realizing the processing of S501 and S502 is also referred to as individual identification information registration investigation means.
In S503, the ECHONET device monitors information reaching the multicast address, and the ECHONET device that has received the individual identification information acquisition request responds to the individual identification information acquisition request (hereinafter referred to as “individual identification information” with respect to the source ECHONET address). "Acquisition response"). In S504 and S505, the ECHONET middle receives the individual identification information acquisition response and transmits the received individual identification information acquisition response to the ECHONET driver.

S506では、ECHONETミドルから個体識別情報取得応答を受信したECHONETドライバは受信した個体識別情報が図4に示す個体識別情報管理テーブル400に登録済みか否かを調査する。ここで、ECHONETドライバは、受信した個体識別情報が個体識別情報管理テーブル400に未登録であれば、S507で受信した個体識別情報と個体識別情報の送信元のECHONETアドレスを個体識別情報管理テーブル400に登録し、再検索待機数を0に設定する。   In S506, the ECHONET driver that has received the individual identification information acquisition response from the ECHONET middle checks whether or not the received individual identification information has been registered in the individual identification information management table 400 shown in FIG. Here, if the received individual identification information is unregistered in the individual identification information management table 400, the ECHONET driver uses the individual identification information received in S507 and the ECHONET address of the transmission source of the individual identification information as the individual identification information management table 400. And set the waiting time for re-search to 0.

S508からS515では、ECHONETドライバは、受信した個体識別情報のECHONET機器が保持する機器オブジェクトの一覧を取得する。ECHONETの通信はECHONET通信機能間で行われるが、1つのECHONET通信機能に対して複数の機器オブジェクトが対応している場合がある(例えば、1つのECHONET機器の通信モジュールに対して人感センサと温度センサが結び付けられている場合)。ECHONET機器の制御は機器オブジェクトに対して行うため、ECHONETバンドルは機器オブジェクトの一覧を取得し、機器オブジェクト単位でOSGiフレームワークにECHONETデバイスサービスとして登録を行う。ここで、機器オブジェクトのことをインスタンスともいい、ECHONET通信機能のことをECHONETノードともいう。   In S508 to S515, the ECHONET driver obtains a list of device objects held by the ECHONET device of the received individual identification information. Although ECHONET communication is performed between ECHONET communication functions, a plurality of device objects may correspond to one ECHONET communication function (for example, a human sensor and a communication module of one ECHONET device If a temperature sensor is attached). Since the control of the ECHONET device is performed on the device object, the ECHONET bundle acquires a list of device objects and registers the device object as an ECHONET device service in the OSGi framework. Here, the device object is also referred to as an instance, and the ECHONET communication function is also referred to as an ECHONET node.

S508、S509では、ECHONETドライバはECHONETミドルを介して、ECHONET機器に対しECHONET機器が保持する機器オブジェクトの数である自ノードインスタンス数プロパティを取得する要求(以下、「自ノードインスタンス数取得要求」という。)を送信する。S510、S511では、ECHONET機器はECHONETミドルを介してECHONETドライバに自ノードインスタンス数プロパティ取得要求に対する応答(以下、「自ノードインスタンス数取得応答」という)を送信する。S508、S509の処理を実現する手段をインスタンス数取得手段ともいう。   In S508 and S509, the ECHONET driver requests the ECHONET device to acquire its own node instance number property, which is the number of device objects held by the ECHONET device, through the ECHONET middle (hereinafter referred to as “own node instance number acquisition request”). .) In S510 and S511, the ECHONET device transmits a response to the own node instance number property acquisition request (hereinafter referred to as “own node instance number acquisition response”) to the ECHONET driver via the ECHONET middle. Means for realizing the processing of S508 and S509 is also referred to as instance number acquisition means.

S512、S513では、ECHONETドライバはECHONETミドルを介して、ECHONET機器に対し、受信した自ノードインスタンス数プロパティに応じてノードに付随する機器オブジェクトのリストである自ノードインスタンスリストを取得する要求(以下、「自ノードインスタンスリスト取得要求」という。)を送信する。S512、S513の処理を実現する手段をインスタンスリスト取得手段ともいう。
S514、S515では、ECHONET機器はECHONETミドルを介してECHONETドライバに自ノードインスタンスリスト取得要求に対する応答(以下、「自ノードインスタンスリスト取得応答」という)を送信する。
In S512 and S513, the ECHONET driver requests the ECHONET device to acquire its own node instance list, which is a list of device objects attached to the node, according to the received own node instance number property, via the ECHONET middle (hereinafter, referred to as “Echonet device”). "Own node instance list acquisition request") is transmitted. Means for realizing the processing of S512 and S513 is also referred to as instance list acquisition means.
In S514 and S515, the ECHONET device transmits a response to the own node instance list acquisition request (hereinafter referred to as “own node instance list acquisition response”) to the ECHONET driver via the ECHONET middle.

なお、ECHONET規格には、ノードに付随する機器オブジェクトのリストを提供するプロパティが2種類存在する。一方が自ノードインスタンスリストプロパティといい、ノードに付随する機器オブジェクトが5以下でない場合(すなわち6以上である場合)に、自ノードインスタンスリストを提供する。他方は自ノードインスタンスリストSプロパティといい、ノードに付随する機器オブジェクトが5以下である場合に、自ノードインスタンスリストを提供する。   In the ECHONET standard, there are two types of properties that provide a list of device objects attached to a node. One is called the own node instance list property, and the own node instance list is provided when the device object attached to the node is not 5 or less (that is, 6 or more). The other is called a self-node instance list S property, and provides a self-node instance list when the number of device objects associated with the node is 5 or less.

そのため、ECHONETドライバは、取得したECHONET機器が保持する機器オブジェクトの数を調査し、その値に応じて自ノードインスタンスリスト取得要求をECHONET機器に対して送信する。S516からS520では、取得した自ノードインスタンスリストを元に機器オブジェクト毎にOSGiフレームワークに対してECHONETデバイスサービスを登録する。OSGiフレームワーク上で動作するバンドルはECHONETデバイスサービスを介してECHONET機器と情報のやり取りを行うことができる。   Therefore, the ECHONET driver checks the number of device objects held by the acquired ECHONET device, and transmits a local node instance list acquisition request to the ECHONET device according to the value. In steps S516 to S520, the ECHONET device service is registered with the OSGi framework for each device object based on the acquired local node instance list. A bundle operating on the OSGi framework can exchange information with an ECHONET device via an ECHONET device service.

S516では、取得したインスタンス毎にサービス識別情報を作成する。サービス識別情報とは、OSGiフレームワーク上で動作するバンドルがECHONET機器を一意に特定する情報である。サービス識別情報は個体識別情報とECHONETオブジェクト(機器の種類を表す情報、その種類の機器が複数あった場合に区別するためのインスタンスの情報、自ノードインスタンスリストの情報)から生成する。S501からS515でECHONETドライバはECHONET機器の個体識別情報と機器オブジェクトのECHONETオブジェクトを取得しており、バンドルは、個体識別情報とECHONETオブジェクトによって、例えば、どのECHONET機器のどのオブジェクト(1番目のエアコン等)であるかを一意に特定することができるからである。   In S516, service identification information is created for each acquired instance. The service identification information is information that uniquely identifies an ECHONET device by a bundle operating on the OSGi framework. The service identification information is generated from the individual identification information and the ECHONET object (information indicating the type of device, instance information for distinguishing when there are a plurality of devices of that type, and information on the local node instance list). In S501 to S515, the ECHONET driver acquires the individual identification information of the ECHONET device and the ECHONET object of the device object, and the bundle uses, for example, which object (first air conditioner, etc.) of which ECHONET device based on the individual identification information and the ECHONET object. This is because it can be uniquely identified.

ここで、サービス識別情報の作成の具体例を挙げる。個体識別情報は2バイトの情報、ECHONETオブジェクトは3バイトの情報を保持しているとする。例えば、個体識別情報が16進表記で0x0006、ECHONETオブジェクトが0x007001(1番のインスタンスコードを持つ人感センサを示すとする)である場合、サービス識別情報は文字列表記で"0006-007001"と表記するようにする。このようにサービス識別情報を作成することで、サービス識別情報は機器オブジェクトを一意に特定できる。   Here, a specific example of creation of service identification information is given. It is assumed that the individual identification information holds 2-byte information, and the ECHONET object holds 3-byte information. For example, when the individual identification information is 0x0006 in hexadecimal notation and the ECHONET object is 0x007001 (assuming a human sensor having the first instance code), the service identification information is "0006-007001" in character string notation. Try to write. By creating the service identification information in this way, the service identification information can uniquely identify the device object.

一方、OSGiサービス基盤では、OSGiフレームワークにサービスを登録する際に、サービスのプロパティ情報(ECHONETにおけるプロパティとは別のものである)を付加することができる。サービスの固有の識別情報を示すプロパティとしてservice.pidというプロパティが存在するため、本実施例では、ECHONETデバイスサービスを登録する際のservice.pidに上述のサービス識別情報を設定する。すなわち、service.pid=0006-007001という内容をECHONETデバイスサービスと対応付けてOSGiフレームワークへと登録する。S516の処理を実現する手段をサービス識別情報生成手段ともいう。   On the other hand, in the OSGi service infrastructure, when registering a service in the OSGi framework, service property information (which is different from the property in ECHONET) can be added. As a property indicating service specific identification information, service. Since the property “pid” exists, in this embodiment, the service.service when registering the ECHONET device service is used. The service identification information described above is set in pid. That is, service. The content of pid = 0006-007001 is registered in the OSGi framework in association with the ECHONET device service. The means for realizing the processing of S516 is also referred to as service identification information generation means.

S517からS519では、ECHONETドライバはOSGiフレームワークに登録済みのECHONETデバイスサービスを調査する。
S517では、ECHONETドライバはOSGiフレームワークに対してECHONETデバイスサービスの一覧を取得する要求(以下、「ECHONETデバイスサービス一覧取得要求」という。)を行う。このECHONETデバイスサービス一覧取得要求を行う際、サービスの名前(ここではECHONETデバイスサービスの名前)以外にフィルタを作成しサービスを取得することができる。フィルタを用いることで、例えば、service.pidがある値のサービスのみを取得する、ということが可能である。その方法の一例としてフィルタにワイルドカードを指定することができる。個体識別情報が0x0006である機器のECHONETデバイスサービスの一覧を取得するには、service.pid=0006-*("*"がワイルドカード)と指定すればよい。
In S517 to S519, the ECHONET driver checks the ECHONET device service registered in the OSGi framework.
In S517, the ECHONET driver makes a request for acquiring a list of ECHONET device services to the OSGi framework (hereinafter referred to as “ECHONET device service list acquisition request”). When this ECHONET device service list acquisition request is made, a service can be acquired by creating a filter in addition to the service name (here, the name of the ECHONET device service). By using a filter, for example, service. It is possible to obtain only services with a certain value of pid. As an example of the method, a wild card can be specified for the filter. In order to obtain a list of ECHONET device services for devices whose individual identification information is 0x0006, service. It may be specified as pid = 0006- * ("*" is a wild card).

ECHONETドライバは、個体識別情報を受信したECHONET機器の機器オブジェクトから作成したECHONETデバイスサービスのみを取得するよう、個体識別情報を用いて、フィルタ情報を作成する。このフィルタ情報を作成する処理を実現する手段を個体識別情報フィルタ作成手段ともいう。また、このフィルタを用いて任意の個体識別情報を有するECHONETデバイスサービスを取得する処理を実現する手段をフィルタリングサービスリファレンス取得手段ともいう。   The ECHONET driver creates filter information using the individual identification information so as to acquire only the ECHONET device service created from the device object of the ECHONET device that has received the individual identification information. Means for realizing the process of creating the filter information is also referred to as individual identification information filter creation means. In addition, means for realizing processing for obtaining an ECHONET device service having arbitrary individual identification information using this filter is also referred to as filtering service reference obtaining means.

S518では、OSGiフレームワークはフィルタ情報に適合するECHONETデバイスサービスの一覧(以下、「ECHONETデバイスサービス一覧取得応答」という。)を返す。
S519では、ECHONETドライバは、取得したECHONETデバイスサービスのservice.pidを調査し、上記にて作成したサービス識別情報と比較してOSGiフレームワークに未登録の機器オブジェクトを調査する。S519の処理を実現する手段をサービス識別情報比較手段ともいう。
In S518, the OSGi framework returns a list of ECHONET device services that conform to the filter information (hereinafter referred to as “ECHONET device service list acquisition response”).
In S519, the ECHONET driver acquires service.service of the acquired ECHONET device service. The pid is checked, and compared with the service identification information created above, a device object that is not registered in the OSGi framework is checked. Means for realizing the processing of S519 is also referred to as service identification information comparison means.

S520では、ECHONETドライバは、未登録の機器オブジェクトに対応するECHONETデバイスオブジェクトを生成し、service.pidにサービス識別情報を設定して、ECHONETデバイスサービスとしてOSGiフレームワークに登録する。ECHONETデバイスオブジェクトとは、ECHONETドライバがECHONETデバイスサービスとしてOSGiフレームワークに登録するサービスの実体である。OSGiフレームワークに登録されるバンドルは、OSGiフレームワークからECHONETデバイスサービスを検索し、サービスを取得した際の戻り値としてECHONETデバイスオブジェクトを取得する。S520の処理を実現する手段をOSGiフレームワーク登録手段ともいう。   In S520, the ECHONET driver generates an ECHONET device object corresponding to the unregistered device object, and then sets service. Service identification information is set in pid and registered as an ECHONET device service in the OSGi framework. An ECHONET device object is a service entity that the ECHONET driver registers with the OSGi framework as an ECHONET device service. The bundle registered in the OSGi framework searches for the ECHONET device service from the OSGi framework, and acquires the ECHONET device object as a return value when the service is acquired. The means for realizing the processing of S520 is also referred to as OSGi framework registration means.

図5のシーケンス図において、ECHONETバンドルの動作をECHONETドライバとECHONETミドルに分けて説明したが、ECHONETミドルはECHONETドライバの依頼に従ったECHONET電文を送信する機能であるため、以下の説明ではECHONETドライバとECHONETミドルを併せて「ECHONETバンドル」として説明する。   In the sequence diagram of FIG. 5, the operation of the ECHONET bundle has been described separately for the ECHONET driver and the ECHONET middle. However, the ECHONET middle is a function for transmitting an ECHONET message according to the request of the ECHONET driver. And ECHONET middle will be described together as an “ECHONET bundle”.

図6、図7、図8、図9は、図5と同じく、ECHONET機器の検出からOSGiフレームワークへのECHONETデバイスサービス登録までを記述するシーケンス図である。
また、図5、図6、図7、図8、図9において、(1)、(2)、(2)-1、(2)-1´、(2)-2、(2)-3と書かれている範囲はそれぞれ同じ処理範囲の手順を示している。(1)の処理は図10のフローチャートに対応している。(2)の処理は図11のフローチャートに対応している。(2)の処理にはサブルーチンとして(2)-1、(2)-1´、(2)-2、(2)-3の処理が存在し、(2)-1の処理は図12のフローチャートに対応している。(2)-1´の処理は図13のフローチャートに対応している。(2)-2の処理は図14のフローチャートに対応している。(2)-3の処理は図15のフローチャートに対応している。
6, 7, 8, and 9 are sequence diagrams describing from ECHONET device detection to ECHONET device service registration in the OSGi framework, as in FIG. 5.
Further, in FIGS. 5, 6, 7, 8, and 9, (1), (2), (2) -1, (2) -1 ', (2) -2, (2) -3. The ranges written as “” indicate procedures in the same processing range. The process (1) corresponds to the flowchart of FIG. The process (2) corresponds to the flowchart of FIG. There are subroutines (2) -1, (2) -1 ′, (2) -2, and (2) -3 in the process (2), and the process (2) -1 is shown in FIG. Corresponds to the flowchart. The process (2) -1 ′ corresponds to the flowchart of FIG. The process (2) -2 corresponds to the flowchart of FIG. The process (2) -3 corresponds to the flowchart of FIG.

図10から図15では、図5で述べたECHONET機器の検出からOSGiフレームワークへのECHONETデバイスサービスの登録までの手順をフローチャートを用いてに説明する。 図10は、ECHONETバンドルが機器検出を開始する手順(図5のS501、S502)を示すフローチャートである。ECHONETバンドルは起動中、繰り返し機器検出を行っている。   10 to 15, the procedure from the detection of the ECHONET device described in FIG. 5 to the registration of the ECHONET device service in the OSGi framework will be described using a flowchart. FIG. 10 is a flowchart showing a procedure (S501 and S502 in FIG. 5) for the ECHONET bundle to start device detection. The ECHONET bundle repeatedly performs device detection during activation.

まず、S1001ではECHONETバンドルが動作中であり、終了処理を開始していない(動作が継続している)ことを確認する。動作が継続していなければ(S1001でNOの場合)処理を終了する。動作が継続していれば(S1001でYESの場合)S1002に移り、ECHONET規格で定めるマルチキャストアドレス(IPv4、224.0.23.0)宛にノードプロファイルの個体識別情報プロパティ取得要求を送信し、S1003へ移る。S1003では一定時間停止し、再びS1001に戻る。   First, in S1001, it is confirmed that the ECHONET bundle is operating and the termination process has not been started (the operation continues). If the operation is not continued (NO in S1001), the process is terminated. If the operation continues (in the case of YES in S1001), the process proceeds to S1002, and a node profile individual identification information property acquisition request is transmitted to the multicast address (IPv4, 224.0.23.0) defined in the ECHONET standard. The process moves to S1003. In S1003, it stops for a certain period of time, and returns to S1001 again.

図11は、機器の発見からOSGiフレームワークへのECHONETデバイスサービスの登録までの手順(図5のS503からS520)を示すフローチャートである。ECHONET機器からの個体識別情報プロパティ取得応答を受信するたびに処理が行われる。   FIG. 11 is a flowchart showing a procedure (S503 to S520 in FIG. 5) from device discovery to ECHONET device service registration in the OSGi framework. Processing is performed each time an individual identification information property acquisition response is received from the ECHONET device.

S1101では、ECHONET機器から個体識別情報取得応答を受信する。
1102では取得した個体識別情報が図4に示した個体識別情報管理テーブル400に登録があるか否かを調査する。登録がなければ(S1102でYESの場合)、S1103の新しいECHONET機器を登録するフロー(「新規機器検索フロー」ともいう。)へ進み、その後S1105へ移る。登録があれば(S1102でNOの場合)、S1104の登録済の機器を検討するフロー(「登録済機器検討フロー」ともいう)へ進み、その後S1105へ移る。新規機器登録フローは図12、登録済機器検討フローは図13でさらに詳細に説明する。
In S1101, an individual identification information acquisition response is received from the ECHONET device.
In 1102, it is investigated whether or not the acquired individual identification information is registered in the individual identification information management table 400 shown in FIG. If there is no registration (YES in S1102), the flow proceeds to a flow for registering a new ECHONET device in S1103 (also referred to as “new device search flow”), and then the flow proceeds to S1105. If there is a registration (NO in S1102), the process proceeds to a flow for examining a registered device in S1104 (also referred to as a “registered device examination flow”), and then proceeds to S1105. The new device registration flow will be described in more detail with reference to FIG. 12, and the registered device examination flow will be described in more detail with reference to FIG.

S1105はECHONET機器が保持する機器オブジェクトについて検索するフロー(「インスタンス検索フロー」ともいう)であり、その後S1106へ移る。このインスタンス検索フローは図14でさらに詳細に説明する。   S1105 is a flow for searching for a device object held by the ECHONET device (also referred to as “instance search flow”), and then the process proceeds to S1106. This instance search flow will be described in more detail with reference to FIG.

S1106はECHONET機器が保持する機器オブジェクトをOSGiフレームワークに登録するフロー(「OSGi登録フロー」ともいう)である。ここでECHONET機器が保持する機器オブジェクトをOSGiフレームワークに登録し、処理を終了する。このOSGi登録フローは図15でさらに詳細に説明する。   S1106 is a flow for registering a device object held by the ECHONET device in the OSGi framework (also referred to as an “OSGi registration flow”). Here, the device object held by the ECHONET device is registered in the OSGi framework, and the process ends. This OSGi registration flow will be described in more detail with reference to FIG.

図12は、図11のS1103の新規機器登録フローのフローチャートである。
S1201では、図11のS1101にて受信した個体識別情報を個体識別情報管理テーブル400に登録する。この際、S1101にて受信したECHONET電文に含まれるECHONET電文の送信元のECHONETアドレスも登録する。また、再検索待機数は0に設定する。その後S1202へ移る。
FIG. 12 is a flowchart of the new device registration flow in S1103 of FIG.
In S1201, the individual identification information received in S1101 of FIG. 11 is registered in the individual identification information management table 400. At this time, the ECHONET address of the source of the ECHONET message included in the ECHONET message received in S1101 is also registered. The re-search waiting number is set to zero. Thereafter, the process proceeds to S1202.

S1202では、インスタンス検索フラグをtrueに設定し、処理を終了する。インスタンス検索フラグは後述のインスタンス検索フロー(図14)にて参照される。インスタンス検索フラグとは、ECHONETバンドルがインスタンス検索を行うかどうかを判断するためのフラグである。フラグがtrueの時に、インスタンス検索フローにてインスタンス検索が実行される。   In S1202, the instance search flag is set to true, and the process ends. The instance search flag is referred to in an instance search flow (FIG. 14) described later. The instance search flag is a flag for determining whether the ECHONET bundle performs an instance search. When the flag is true, the instance search is executed in the instance search flow.

図13は、図11のS1104の登録済機器検討フローのフローチャートである。
S1301では、図11のS1101において受信した個体識別情報取得応答のECHONET電文から、個体識別情報と電文送信元のECHONETアドレスを取得し、個体識別情報管理テーブル400から取得した個体識別情報の行に登録されているECHONETアドレスと該個体識別情報取得応答のECHONET電文の送信元のECHONETアドレスとを比較する。個体識別情報管理テーブル400に記載のECHONETアドレスと該個体識別情報取得応答のECHONET電文の送信元のECHONETアドレスとが異なる場合(S1301でYESの場合)は、S1302へ移り、個体識別情報管理テーブル400の該当するECHONETアドレスの欄を該個体識別情報取得応答のECHONET電文の送信元のECHONETアドレスに書き換える。その後、S1303へ移る。S1301でNOの場合、そのままS1303へ移る。
FIG. 13 is a flowchart of the registered device examination flow in S1104 of FIG.
In S1301, the individual identification information and the ECHONET address of the message transmission source are acquired from the ECHONET message of the individual identification information acquisition response received in S1101 of FIG. 11, and registered in the row of the individual identification information acquired from the individual identification information management table 400. And the ECHONET address of the transmission source of the ECHONET message of the individual identification information acquisition response are compared. If the ECHONET address described in the individual identification information management table 400 is different from the ECHONET address of the transmission source of the ECHONET message of the individual identification information acquisition response (YES in S1301), the process proceeds to S1302, and the individual identification information management table 400 Is rewritten to the ECHONET address of the transmission source of the ECHONET message of the individual identification information acquisition response. Thereafter, the process proceeds to S1303. If NO in S1301, the process proceeds to S1303.

次に、S1303では、個体識別情報管理テーブル400において、図11のS1101で受信した個体識別情報に対応する再検索待機数がある数X(例えば5)以上であるかどうかを調査する。X以上であれば(S1303でYESの場合)S1304へ移り、個体識別情報管理テーブル400のインスタンス検索フラグをtrueに設定し、S1305へ移る。S1305では個体識別情報管理テーブル400における図11のS1101で受信した個体識別情報に対応する再検索待機数を0クリアして処理を終了する。X以上でなければ(S1303でNOの場合)S1306に移り、個体識別情報管理テーブル400のインスタンス検索フラグをfalseに設定し、S1307へ移る。S1307では個体識別情報管理テーブル400における図11のS1101で受信した個体識別情報に対応する再検索待機数を+1して処理を終了する。インスタンス検索フラグは図14のインスタンス検索フローにて参照される。   Next, in S1303, it is investigated in the individual identification information management table 400 whether or not the number of waiting times for re-search corresponding to the individual identification information received in S1101 in FIG. If it is equal to or greater than X (YES in S1303), the process moves to S1304, the instance search flag of the individual identification information management table 400 is set to true, and the process moves to S1305. In step S1305, the waiting time for re-searching corresponding to the individual identification information received in step S1101 in FIG. 11 in the individual identification information management table 400 is cleared to 0, and the process ends. If it is not X or more (NO in S1303), the process proceeds to S1306, the instance search flag of the individual identification information management table 400 is set to false, and the process proceeds to S1307. In step S1307, the re-search waiting number corresponding to the individual identification information received in step S1101 in FIG. 11 in the individual identification information management table 400 is incremented by 1, and the process is terminated. The instance search flag is referred to in the instance search flow of FIG.

このように、既に個体識別情報管理テーブル400に個体識別情報が登録済みのECHONET機器に対して、ECHONETアドレスが変更になっていないかを調査し、また、機器オブジェクトの再検索を行うかどうかの判断を行うことで、例えば、IP網におけるECHONET電文がUDPでやり取りされることに起因するパケットロスの発生の可能性や、ECHONET機器が起動中のまま、機器オブジェクトが追加される場合に対応することができる。すなわち、S1303で再検索待機数がX以上であるか否か調査することで、検出済みの機器を毎回再検索することによるネットワークに流れる情報量の増加を抑制できる。検出済みの機器本実施例ではX回に1回だけ検索することとなる。   As described above, for the ECHONET device whose individual identification information has already been registered in the individual identification information management table 400, it is investigated whether the ECHONET address has been changed, and whether to re-search the device object. By making the determination, for example, it corresponds to the possibility of occurrence of packet loss due to exchange of ECHONET messages in the IP network by UDP, or the case where the device object is added while the ECHONET device is activated. be able to. That is, it is possible to suppress an increase in the amount of information flowing through the network by re-searching the detected device every time by checking whether or not the re-search waiting number is X or more in S1303. In the present embodiment, the detected device is searched only once in X times.

図14は、図11のS1105のインスタンス検索フローのフローチャートである。
S1401では、図12または図13のフローチャートで説明したインスタンス検索フラグを参照し、インスタンス検索フラグがtrueであるか否かを判断する。インスタンス検索フラグがtrueでなければ(S1401でNOの場合、falseであれば)処理を終了する。フラグがtrueであれば(S1401でYESの場合)、S1402へ移る。
FIG. 14 is a flowchart of the instance search flow in S1105 of FIG.
In S1401, the instance search flag described with reference to the flowchart of FIG. 12 or 13 is referred to, and it is determined whether or not the instance search flag is true. If the instance search flag is not true (if NO in S1401, if false), the process ends. If the flag is true (YES in S1401), the process proceeds to S1402.

S1402では、図11のS1101において受信した個体識別情報取得応答のECHONET電文の送信元のECHONET機器から、ノードプロファイルの自ノードインスタンス数プロパティを取得し、S1403へ移る。
S1403では取得した自ノードインスタンス数が6以上であるかどうかを調査し、6以上であれば(S1403でYESの場合)S1404へ移り、4以下であれば(S1403でNOの場合)S1405へ移る。
In S1402, the local node instance number property of the node profile is acquired from the ECHONET device that is the transmission source of the ECHONET message of the individual identification information acquisition response received in S1101 of FIG. 11, and the process proceeds to S1403.
In S1403, it is checked whether the acquired number of own node instances is 6 or more. If 6 or more (YES in S1403), the process proceeds to S1404. If it is 4 or less (NO in S1403), the process proceeds to S1405. .

S1404では、該ECHONET機器からノードプロファイルの自ノードインスタンスリストプロパティを取得し、処理を終了する。
S1405では、該ECHONET機器からノードプロファイルの自ノードインスタンスリストSプロパティを取得し、処理を終了する。
In S1404, the local node instance list property of the node profile is acquired from the ECHONET device, and the process ends.
In S1405, the local node instance list S property of the node profile is acquired from the ECHONET device, and the process ends.

ここで、S1403で取得した自ノードインスタンス数が6以上であるか否かを調査することについて説明する。ECHONET規格では、自ノードインスタンスリスト数が「5以下」のときは自ノードインスタンスリストプロパティを搭載しなくてもよく、「6以上」のときは自ノードインスタンスリストSには総数のみ記載するとの規定がある。そのため、後のフローで自ノードインスタンス数が5以下のときは自ノードインスタンスリストSプロパティを取得、6以上のときは自ノードインスタンスリストプロパティを取得するとしている。本実施例はECHONET規格に基づいて説明しているためS1403のステップがあるが、かかる規定がない場合はこのステップは削除してもよい。   Here, it will be described about investigating whether or not the number of local node instances acquired in S1403 is 6 or more. According to the ECHONET standard, when the number of own node instance lists is “5 or less”, the own node instance list property does not have to be mounted, and when “6 or more”, only the total number is described in the own node instance list S. There is. Therefore, in the subsequent flow, when the number of own node instances is 5 or less, the own node instance list S property is acquired, and when the number is 6 or more, the own node instance list property is acquired. Since this embodiment is described based on the ECHONET standard, there is a step of S1403. However, this step may be deleted if there is no such regulation.

図15は、図11の手順のS1106のOSGi登録フローのフローチャートである。
S1501では、図11のS1101において受信した個体識別情報と、S1404で取得した自ノードインスタンスリストプロパティ、またはS1405で取得した自ノードインスタンスリストSプロパティから、ECHONETデバイスサービスのサービス識別情報を作成し、S1502へ移る。ここでは、図5において説明したように、機器オブジェクト毎に個体識別情報とECHONETオブジェクトから機器オブジェクトを一意に区別するための識別情報を作成する。
FIG. 15 is a flowchart of the OSGi registration flow of S1106 in the procedure of FIG.
In S1501, service identification information of the ECHONET device service is created from the individual identification information received in S1101 of FIG. 11 and the own node instance list property acquired in S1404 or the own node instance list S property acquired in S1405, and S1502 Move on. Here, as described in FIG. 5, identification information for uniquely identifying the device object from the individual identification information and the ECHONET object is created for each device object.

S1502では、OSGiフレームワークから図11のS1101で受信した個体識別情報のECHONET機器に対応するECHONETデバイスサービスを取得するためのフィルタ情報を作成し、S1503へ移る。フィルタについては図5で説明したとおりである。   In S1502, filter information for acquiring the ECHONET device service corresponding to the ECHONET device of the individual identification information received in S1101 of FIG. 11 from the OSGi framework is created, and the process proceeds to S1503. The filter is as described in FIG.

S1503では、OSGiフレームワークからS1502で作成したフィルタ情報に該当するECHONETデバイスサービスの一覧を取得し、S1504へ移る。
S1504では、S1501で作成したサービス識別情報とS1503で取得したECHONETデバイスサービスのservice.pidを比較し、OSGiフレームワークに未登録の機器オブジェクトを調査し、S1505へ移る。
In S1503, a list of ECHONET device services corresponding to the filter information created in S1502 is acquired from the OSGi framework, and the process proceeds to S1504.
In S1504, the service identification information created in S1501 and the service.service ECHONET device service acquired in S1503. The pids are compared, a device object that is not registered in the OSGi framework is checked, and the process proceeds to S1505.

S1505では、未登録のインスタンスに対応するECHONETデバイスオブジェクトを生成し、サービスプロパティ(OSGiフレームワークに登録するサービスに対して付与されるサービスに関する情報)としてservice.pid(サービス識別情報)を設定した上でECHONETデバイスサービスとして(ECHONETデバイスサービス名で)OSGiフレームワークにサービス登録する。
以上が、本実施例におけるECHONET機器の検出およびOSGiフレームワークへの登録の手順である。これにより、アプリケーションバンドルは宅内ネットワーク上の各機器オブジェクトを一意に区別することができる。
In S1505, an ECHONET device object corresponding to an unregistered instance is generated, and service.service.info (service information given to a service registered in the OSGi framework) is set as service. After setting pid (service identification information), the service is registered in the OSGi framework as an ECHONET device service (with an ECHONET device service name).
The above is the procedure for detecting the ECHONET device and registering it in the OSGi framework in this embodiment. Thereby, the application bundle can uniquely distinguish each device object on the home network.

ここで、図6、図7、図8、図9のシーケンス図と図10、図11、図12、図13、図14、図15のフローチャートとの対応関係を明らかにしておく。
図6は、図5の手順と同様の処理であるが、図11のS1102において、個体識別情報管理テーブル400に個体識別情報が登録無しであり、図14のS1403において、自ノードインスタンス数が6以上の場合の手順である。
Here, the correspondence between the sequence diagrams of FIGS. 6, 7, 8, and 9 and the flowcharts of FIGS. 10, 11, 12, 13, 14, and 15 will be clarified.
FIG. 6 is the same processing as the procedure of FIG. 5, but the individual identification information is not registered in the individual identification information management table 400 in S1102 of FIG. 11, and the number of own node instances is 6 in S1403 of FIG. This is the procedure in the above case.

図7は、図11のS1102において、個体識別情報管理テーブル400に個体識別情報が登録済みであり、図13のS1303において、再検索待機数がある数X以上であり、図14のS1403において、自ノードインスタンス数が6以上でない場合の手順である。   FIG. 7 shows that the individual identification information has already been registered in the individual identification information management table 400 in S1102 of FIG. 11, the number of waiting for re-search is equal to or greater than a certain number X in S1303 of FIG. 13, and in S1403 of FIG. This is a procedure when the number of local node instances is not 6 or more.

図8は、図11のS1102において、個体識別情報管理テーブル400に個体識別情報が登録済みであり、図13のS1303において、再検索待機数がある数X以上でない場合の手順である。   FIG. 8 shows the procedure when the individual identification information has already been registered in the individual identification information management table 400 in S1102 of FIG. 11 and the re-search waiting number is not more than a certain number X in S1303 of FIG.

図9は、図11のS1102において、個体識別情報管理テーブル400に個体識別情報が記載無しであり、図14のS1403において、自ノードインスタンス数が6以上でない場合の手順である。   FIG. 9 shows a procedure when the individual identification information is not described in the individual identification information management table 400 in S1102 of FIG. 11, and the number of local node instances is not 6 or more in S1403 of FIG.

次に、ECHONET機器が宅内ネットワークから離脱したかどうか(ネットワークから切断されたかどうか)を監視する切断監視の手順について説明する。   Next, a disconnection monitoring procedure for monitoring whether the ECHONET device has left the home network (whether it has been disconnected from the network) will be described.

図16は、切断監視のフローチャートである。
切断監視はECHONETバンドルが動作している間、動作を継続する。
S1601では、ECHONETバンドルの動作が継続中であることを確認し、動作が継続中であれば(S1601でYESの場合)S1602へ移り、動作が継続中でなければ(S1601でNOの場合)処理を終了する。
FIG. 16 is a flowchart of disconnection monitoring.
Disconnect monitoring continues to operate while the ECHONET bundle is operating.
In S1601, it is confirmed that the operation of the ECHONET bundle is continuing. If the operation is continuing (YES in S1601), the process proceeds to S1602, and if the operation is not continuing (NO in S1601), processing is performed. Exit.

S1602では、OSGiフレームワークから、OSGiフレームワークに登録済みのECHONETデバイスサービスの一覧を取得し、S1603へ移る。
S1603では、取得した各々のECHONETデバイスサービスから機器オブジェクトスーパークラスの動作の状態のプロパティを取得し、S1064へ移る。機器オブジェクトスーパークラスとは、ECHONET規格で規定する、すべての機器オブジェクトが有するプロパティである。
In S1602, a list of ECHONET device services registered in the OSGi framework is acquired from the OSGi framework, and the process proceeds to S1603.
In S1603, the property of the operation state of the device object superclass is acquired from each acquired ECHONET device service, and the process proceeds to S1064. The device object super class is a property of all device objects defined by the ECHONET standard.

S1604では、S1603の応答がECHONET機器から返ってくるか(ECHONET機器が動作しているか)否かを調査する。ここで、動作の状態のプロパティとして戻ってくる値は問題とせず、応答があった場合は該当する機器オブジェクトは宅内ネットワークを介して通信可能な状態であるため、オンライン状態であると判断してもよい。応答がない場合は宅内ネットワークから切断されたと判断してもよい。応答が無い場合(S1604でYESの場合)は、S1605に進み、応答がある場合(S1604でNOの場合)はS1608に進む。   In S1604, it is investigated whether or not the response of S1603 is returned from the ECHONET device (the ECHONET device is operating). Here, the value returned as the property of the operation status does not matter, and if there is a response, the corresponding device object is in a state where communication is possible via the home network, so it is determined that it is online. Also good. If there is no response, it may be determined that the home network has been disconnected. If there is no response (YES in S1604), the process proceeds to S1605, and if there is a response (NO in S1604), the process proceeds to S1608.

S1605では、OSGiフレームワークから応答がないECHONETデバイスサービスを削除し、S1606へ移る。
S1606では、S1605にて削除したECHONETデバイスサービスと同じ個体識別情報を有する機器オブジェクトが他にないかどうかを調査する。すなわち、S1602にて取得したECHONETデバイスサービスのサービスプロパティであるservice.pidを調査し、S1605にて削除したECHONETデバイスサービスのservice.pidに記載の個体識別情報と同じ個体識別情報を持つECHONETデバイスサービスが他にないかを調査する。他にも同じ個体識別情報をもつECHONETデバイスサービスが存在する場合には(S1606でNOの場合)S1608に進む。他に同じ個体識別情報をもつECHONETデバイスサービスが存在しない場合(S1606でYESの場合)にはS1607へ移る。
In S1605, the ECHONET device service with no response is deleted from the OSGi framework, and the process proceeds to S1606.
In S1606, it is investigated whether there is any other device object having the same individual identification information as the ECHONET device service deleted in S1605. That is, the service.service service property of the ECHONET device service acquired in S1602. pid is checked, and service. of ECHONET device service deleted in S1605. It is investigated whether there is any other ECHONET device service having the same individual identification information as the individual identification information described in pid. If there is another ECHONET device service having the same individual identification information (NO in S1606), the process proceeds to S1608. If there is no other ECHONET device service having the same individual identification information (YES in S1606), the process proceeds to S1607.

S1607では、個体機別情報管理テーブル400からS1605にて削除したECHONETデバイスサービスに対応する個体識別情報と対応する情報を削除し、S1608へ移る。
S1608では、一定時間停止し、S1601に戻る。
In S1607, information corresponding to the individual identification information corresponding to the ECHONET device service deleted in S1605 is deleted from the individual device information management table 400, and the process proceeds to S1608.
In S1608, the operation is stopped for a predetermined time, and the process returns to S1601.

図16の手順は、ECHONETデバイスサービス毎、すなわち、ECHONET機器の機器オブジェクト毎に切断監視をする手順である。この場合、ECHONET機器の通信モジュールであるノードが動作中に機器オブジェクトのみが削除されるような場合に対応可能であるが、宅内ネットワーク上に流れる情報量が増加するという欠点もある。   The procedure of FIG. 16 is a procedure for monitoring disconnection for each ECHONET device service, that is, for each device object of the ECHONET device. In this case, it is possible to cope with a case where only a device object is deleted while a node that is a communication module of an ECHONET device is operating, but there is also a drawback that the amount of information flowing on the home network increases.

図17は図16と同様、切断監視の手順を示すフローチャートである。
図17の手順では、ECHONET機器の切断を通信モジュールであるノード毎に切断監視を行う手順である。図17の手順は、宅内ネットワーク上に流れる情報量が図16の手順に比べて少ないが、一方ノードが動作中に機器オブジェクトのみが切断される場合には、切断を検知できない欠点がある。
FIG. 17 is a flowchart showing the procedure for cutting monitoring, similar to FIG.
The procedure of FIG. 17 is a procedure for monitoring disconnection of the ECHONET device for each node that is a communication module. The procedure of FIG. 17 has a smaller amount of information flowing on the home network than the procedure of FIG. 16, but has a drawback that disconnection cannot be detected when only the device object is disconnected while the node is operating.

S1701では、ECHONETバンドルの動作が継続中であることを確認し、動作が継続中であれば(S1701でYESの場合)S1702へ移り、動作が継続中でなければ(S1701でNOの場合)処理を終了する。   In S1701, it is confirmed that the operation of the ECHONET bundle is continuing. If the operation is continuing (YES in S1701), the process proceeds to S1702, and if the operation is not continuing (NO in S1701), processing is performed. Exit.

S1702では、個体識別情報管理テーブル400に登録の個体識別情報をすべて読み出し、それら各々に対しノードプロファイルの個体識別情報取得要求をい、S1703へ移る。S1702の処理を実現する手段を個体識別情報取得手段ともいう。   In S1702, all the individual identification information registered in the individual identification information management table 400 is read out, a node profile individual identification information acquisition request is sent to each of them, and the process proceeds to S1703. The means for realizing the processing of S1702 is also referred to as individual identification information acquisition means.

S1703では、S1702の要求に対する応答があるかどうかを確認する)))。応答がある場合(S1703でNOの場合)は、オンラインであると判断し、S1708へと進む。応答がない場合(S1703でYESの場合)は、オフラインであると判断し、S1704へと進む。S1703の処理を実現する手段を個体識別情報取得応答判断手段ともいう。   In S1703, it is confirmed whether there is a response to the request in S1702))). If there is a response (NO in S1703), it is determined to be online and the process proceeds to S1708. If there is no response (YES in S1703), it is determined that the user is offline and the process proceeds to S1704. The means for realizing the processing of S1703 is also referred to as individual identification information acquisition response determination means.

S1704では、OSGiフレームワークからS1703にて応答のなかった個体識別情報を持つECHONETデバイスサービスを取得するためのフィルタを作成し、S1705へ移る。
S1705では、OSGiフレームワークから、S1704で生成したフィルタに該当するECHONETデバイスサービスの一覧を取得し、S1706へ移る。
In S1704, a filter for acquiring an ECHONET device service having individual identification information that has not been responded in S1703 from the OSGi framework is created, and the process proceeds to S1705.
In S1705, a list of ECHONET device services corresponding to the filter generated in S1704 is acquired from the OSGi framework, and the process proceeds to S1706.

S1706では、S1705で取得したすべてのECHONETデバイスサービスをOSGiフレームワークから削除し、S1707へ移る。S1706の処理を実現する手段をECHONETデバイスサービス削除手段ともいう。   In S1706, all ECHONET device services acquired in S1705 are deleted from the OSGi framework, and the process proceeds to S1707. Means for realizing the processing of S1706 is also referred to as ECHONET device service deletion means.

S1707では、個体識別情報管理テーブル400から、S1703で応答のなかった個体識別情報をもつECHONET機器の個体識別情報を削除し、S1708へ移る。
S1708では、一定時間停止し、S1701に戻る。
In S1707, the individual identification information of the ECHONET device having the individual identification information that has not been responded in S1703 is deleted from the individual identification information management table 400, and the process proceeds to S1708.
In S1708, it stops for a certain period of time and returns to S1701.

以上が、本実施例におけるECHONET機器の切断監視の手順である。上述のECHONET機器の検出手順と切断監視の手順により、本実施例における宅内機器管理装置は宅内ネットワークへのECHONET機器の参入、離脱を知ることができる。   The above is the procedure for monitoring the disconnection of the ECHONET device in the present embodiment. By the above-described ECHONET device detection procedure and disconnection monitoring procedure, the in-home device management apparatus in the present embodiment can know the entry and withdrawal of the ECHONET device from the in-home network.

次に、ECHONETバンドルがOSGiフレームワークに登録したECHONETデバイスサービスを用いて、OSGiフレームワーク上で動作する他のバンドルがECHONET機器を制御する手順の一例を説明する。   Next, an example of a procedure in which another bundle operating on the OSGi framework controls the ECHONET device using the ECHONET device service registered by the ECHONET bundle in the OSGi framework will be described.

図18は、機器を制御する動作の例を示すフローチャートである。ここでは、OSGiフレームワーク上で動作するバンドルがエアコン機器に対し、温度設定を制御する手順を示す。OSGiフレームワーク上で動作するバンドルをアプリケーションバンドルともいう。
S1801では、アプリケーションバンドルが、OSGiフレームワークに登録済みのECHONETデバイスサービスからエアコン機器のECHONETデバイスサービスを取得するためのフィルタを作成し、S1802へ移る。すなわち、ECHONETデバイスサービスのサービスプロパティであるservice.pidがエアコン機器を示すものをフィルタリングするフィルタを作成する。例えば、service.pidが「*-0130*」となる。すなわち、個体識別番号およびECHONETオブジェクトのインスタンスコードをワイルドカードとしている。
FIG. 18 is a flowchart illustrating an example of an operation for controlling a device. Here, a procedure in which a bundle operating on the OSGi framework controls temperature setting for an air conditioner device will be described. A bundle that operates on the OSGi framework is also referred to as an application bundle.
In S1801, the application bundle creates a filter for acquiring the ECHONET device service of the air conditioner device from the ECHONET device service registered in the OSGi framework, and proceeds to S1802. In other words, service.service, which is a service property of the ECHONET device service. Create a filter that filters what pid represents an air conditioner. For example, service. The pid is “* -0130 *”. That is, the individual identification number and the instance code of the ECHONET object are used as wild cards.

S1802では、S1801で作成したフィルタに該当するECHONETデバイスサービスの一覧を取得し、S1803へ移る。
ここでは、宅内に複数のエアコン機器が存在した場合を想定しないが、必要に応じて複数のエアコン機器から所望のエアコン機器を判別する処理を加えても良い。例えば、S1802で取得したECHONETデバイスサービスの各々から機器オブジェクトスーパークラスの設置場所のプロパティを取得することで、所望の部屋のエアコン機器のみを制御することが可能となる。
In S1802, a list of ECHONET device services corresponding to the filter created in S1801 is acquired, and the process proceeds to S1803.
Here, a case where a plurality of air conditioner devices exist in the home is not assumed, but a process of determining a desired air conditioner device from a plurality of air conditioner devices may be added as necessary. For example, by acquiring the property of the installation location of the device object superclass from each of the ECHONET device services acquired in S1802, it is possible to control only the air conditioner device in a desired room.

S1803では、ECHONETバンドルが提供するECHONETプロパティのオブジェクトを生成し、温度設定プロパティに対する値(すなわち「温度」)を設定し、S1804へ移る。ECHONETプロパティとは、ECHONET規格が機器の種類毎に定めるEPC(ECHONET規格が機器の種類毎に定める機器から取得可能な、または設定可能な情報)に対応する値を示す情報である。温度設定プロパティとは、ここではエアコン機器のECHONETプロパティのひとつである。   In S1803, an ECHONET property object provided by the ECHONET bundle is generated, a value for the temperature setting property (that is, “temperature”) is set, and the process proceeds to S1804. The ECHONET property is information indicating a value corresponding to EPC (information that can be acquired from or settable by a device defined by the ECHONET standard for each device type) defined by the ECHONET standard for each device type. Here, the temperature setting property is one of the ECHONET properties of the air conditioner device.

S1804では、制御するECHONETデバイスサービスに、エアコン機器の温度設定プロパティに対し、S1803にて生成したECHONETプロパティオブジェクトの値を設定し、処理を終了する。S1802、S1803の処理を実現する手段をECHONETプロパティ取得、設定手段ともいう。
以上が、本実施例におけるアプリケーションバンドルによるECHONET機器の制御の例である。
In S1804, the value of the ECHONET property object generated in S1803 is set for the temperature setting property of the air conditioner in the ECHONET device service to be controlled, and the process ends. Means for realizing the processing of S1802 and S1803 is also referred to as ECHONET property acquisition and setting means.
The above is an example of the control of the ECHONET device by the application bundle in the present embodiment.

次に、アプリケーションバンドルが所望のECHONET機器からのイベントを取得する手順を説明する。
図19は、アプリケーションバンドルがOSGiフレームワークに対して、イベント取得用のサービス(ECHONETバンドルが提供するECHONETイベントリスナインタフェースのアプリケーションバンドルでの実装オブジェクト)を登録する手順の一例を示すフローチャートである。このイベント取得用のサービスをECHONETイベントリスナサービスともいう。イベントとは例えば人感センサがセンサの人の存在を検知したことを通知すること、エアコンの電源が「ON」にされたことを通知することである。人感センサとは、センサの周囲に人が存在するかどうかを判断可能な種類のセンサである。ここでは、アプリケーションバンドルが人感センサのイベントを取得するためにECHONETイベントリスナサービスをOSGiフレームワークに登録する手順を示す。
Next, a procedure for the application bundle to acquire an event from a desired ECHONET device will be described.
FIG. 19 is a flowchart illustrating an example of a procedure in which an application bundle registers an event acquisition service (an implementation object in an application bundle of an ECHONET event listener interface provided by the ECHONET bundle) with the OSGi framework. This event acquisition service is also referred to as an ECHONET event listener service. An event is, for example, notifying that a human sensor has detected the presence of a person in the sensor, or notifying that the power supply of an air conditioner has been turned “ON”. A human sensor is a type of sensor that can determine whether a person is present around the sensor. Here, a procedure for registering the ECHONET event listener service in the OSGi framework in order for the application bundle to acquire a human sensor event is shown.

S1901では、人感センサからのイベントを取得するためのフィルタ情報を作成し、S1902へ移る。例えば、service.pidが「*-0070*」となるような機器からのイベントを取得するようなフィルタを作成する。フィルタ情報はECHONETイベントリスナサービスを登録する際のサービスプロパティとして登録する。登録に用いるKey情報はECHONETバンドルの中で定義するECHONETイベントリスナインタフェースにて規定する。また、上記Key情報に対応するValue情報は、ワイルドカードの他ANDおよびORの条件を可能とすることでさらに柔軟性の高いフィルタリングが可能となる。例えば、人感センサまたはエアコン機器からのイベントを取得したい場合は(service.pid=*-0070*)|(service.pid=*-0130*))等と表記することが可能である。S1901の処理を実現する手段をイベントフィルタ作成手段ともいう。   In S1901, filter information for acquiring an event from the human sensor is created, and the process proceeds to S1902. For example, service. A filter that acquires an event from a device whose pid is “* -0070 *” is created. The filter information is registered as a service property when registering the ECHONET event listener service. Key information used for registration is defined in the ECHONET event listener interface defined in the ECHONET bundle. Further, the Value information corresponding to the Key information can be filtered with higher flexibility by enabling AND and OR conditions in addition to wild cards. For example, when it is desired to acquire an event from a human sensor or an air conditioner device, it can be expressed as (service.pid = *-0070 *) | (service.pid = *-0130 *)). Means for realizing the processing of S1901 is also referred to as event filter creation means.

S1902では、取得するイベントの制御を行うECHONETイベントリスナ実装オブジェクトを生成し、S1903へ移る。OSGiサービス基盤はJava(登録商標)ベースであるため、具体的に説明すると、ECHONETバンドル内でECHONETイベントリスナのインタフェースのみを規定する。アプリケーションバンドルはECHONETイベントリスナインタフェースをインプリメント(実装)して実際の処理を記述することで、ECHONETイベントリスナ実装クラスを作成する。そして、ECHONETイベントリスナ実装クラスのオブジェクトを生成することがS1902の具体的な内容である。   In S1902, an ECHONET event listener implementation object that controls the event to be acquired is generated, and the process proceeds to S1903. Since the OSGi service infrastructure is based on Java (registered trademark), specifically, only the interface of the ECHONET event listener is defined in the ECHONET bundle. The application bundle creates an ECHONET event listener implementation class by implementing the ECHONET event listener interface and describing the actual processing. The specific content of S1902 is to generate an object of the ECHONET event listener implementation class.

S1903では、S1902で生成したECHONETイベントリスナ実装オブジェクトを、ECHONETイベントリスナサービスとして、サービスプロパティとしてS1901で生成したフィルタ情報を付加してOSGiフレームワークに登録する。S1903の処理を実現する手段をイベントリスナ登録手段ともいう。   In S1903, the ECHONET event listener implementation object generated in S1902 is registered as an ECHONET event listener service with the filter information generated in S1901 as a service property and registered in the OSGi framework. Means for realizing the processing of S1903 is also referred to as event listener registration means.

以上が、イベント登録のフローチャートである。イベントの登録を行うことで、アプリケーションバンドルは所望のECHONET機器からのイベントのみを簡単に受信することができる。また、フィルタをかけることで、任意の人感センサやエアコンからの通知を受け取りやすくすることができる。   The above is the flowchart of event registration. By registering an event, the application bundle can easily receive only an event from a desired ECHONET device. Further, by applying a filter, it is possible to easily receive a notification from any human sensor or air conditioner.

次に、ECHONET機器からのイベントを取得するイベント通知取得の手順を説明する。
図20はイベント通知取得の手順を示すフローチャートである。
S2001ではECHONETバンドルが宅内機器(宅内にあるECHONET機器)からのイベント通知を取得し、S2002へ移る。S2001の処理をイベント取得手段ともいう。
Next, an event notification acquisition procedure for acquiring an event from the ECHONET device will be described.
FIG. 20 is a flowchart showing a procedure for acquiring an event notification.
In S2001, the ECHONET bundle acquires an event notification from the home device (ECHONET device in the home), and the process proceeds to S2002. The process of S2001 is also referred to as an event acquisition unit.

S2002では、イベント通知を行った機器からのECHONET電文に含まれる送信元のECHONETアドレスを取得する。個体識別情報管理テーブル400から該取得したECHONETアドレスに対応する個体識別情報を取得し、ECHONET電文に含まれる送信元ECHONETオブジェクトと合わせてサービス識別情報を作成し、S2003へ移る。S2002の処理を実現する手段をイベント受信時サービス識別情報生成手段ともいう。   In S2002, the ECHONET address of the transmission source included in the ECHONET message from the device that sent the event notification is acquired. Individual identification information corresponding to the acquired ECHONET address is acquired from the individual identification information management table 400, service identification information is created together with the transmission source ECHONET object included in the ECHONET message, and the process proceeds to S2003. Means for realizing the processing of S2002 is also referred to as event reception time service identification information generation means.

S2003では、S2002で作成したサービス識別情報を用いて、OSGiフレームワークから該当するECHONETイベントリスナサービスを取得するためのフィルタ情報を作成し、S2004へ移る。   In S2003, filter information for acquiring the corresponding ECHONET event listener service from the OSGi framework is created using the service identification information created in S2002, and the process proceeds to S2004.

S2004では、、OSGiフレームワークからS2003で生成したフィルタ情報に該当するECHONETイベントリスナサービスの一覧を取得し、S2005へ移る。   In S2004, a list of ECHONET event listener services corresponding to the filter information generated in S2003 is acquired from the OSGi framework, and the process proceeds to S2005.

S2005では、S2004にてECHONETイベントリスナサービスが取得されたかどうかを調査し、サービスがなければ(S2005でNOの場合)処理を終了する。サービスがあれば(S2005でYESの場合)S2006へと進む。   In S2005, it is investigated whether or not the ECHONET event listener service has been acquired in S2004. If there is no service (NO in S2005), the process is terminated. If there is a service (YES in S2005), the process proceeds to S2006.

S2006では、S2001で取得したイベント通知を記述するEchonetEventオブジェクトを生成し、S2007へ進む。ここで、ECHONET機器からのイベント通知とは、例えばどの種類のどの機器のどのプロパティがどういう値になった、という内容である。「どの種類のどの機器」という情報はサービス識別情報に含まれるため、EchonetEventオブジェクトには「どのプロパティがどういう値になった」という情報が含まれていればよい。   In S2006, an EchonetEvent object describing the event notification acquired in S2001 is generated, and the process proceeds to S2007. Here, the event notification from the ECHONET device is, for example, the content that what property of which device of which type has what value. Since the information “what kind of which device” is included in the service identification information, it is only necessary that the EchonetEvent object includes information “what property has become what value”.

S2007では、S2004で取得したすべてのECHONETイベントリスナサービスに対してサービス識別情報およびS2006で生成したEchonetEventオブジェクトをアプリケーションバンドルに通知する。S2007の処理を実現する手段をイベント通知手段ともいう。   In S2007, the service identification information and the EchonetEvent object generated in S2006 are notified to the application bundle for all ECHONET event listener services acquired in S2004. Means for realizing the processing of S2007 is also referred to as event notification means.

以上が、本実施例における宅内機器管理装置のイベントを管理する手順である。このようにすることで、ECHONET機器からのイベントをそのイベントの通知先であるアプリケーションバンドルに対して通知しやすくなる効果があり、処理の効率化が図れる。   The above is the procedure for managing events of the home appliance management apparatus in the present embodiment. By doing so, there is an effect that it is easy to notify an event from the ECHONET device to the application bundle that is a notification destination of the event, and the processing efficiency can be improved.

図21は、本実施例の宅内機器管理装置を用いたECHONET機器の動作の一例を示すシーケンス図である。
図21において、アプリケーションバンドルは人感センサのイベントを取得すると、照明を点灯させるという動作を行う。
FIG. 21 is a sequence diagram illustrating an example of the operation of the ECHONET device using the home device management apparatus according to the present embodiment.
In FIG. 21, the application bundle performs an operation of turning on the illumination when the human sensor event is acquired.

S2101では、アプリケーションバンドルは、人感センサのイベントを取得するためのフィルタ情報を作成する。
S2102では、ECHONETイベントリスナ実装オブジェクトを生成する。
S2103では、サービスプロパティに上記フィルタの情報を設定した上でECHONETイベントリスナ実装オブジェクトをECHONETイベントリスナサービスとしてOSGiフレームワークに登録する。
In step S <b> 2101, the application bundle creates filter information for acquiring a human sensor event.
In S2102, an ECHONET event listener implementation object is generated.
In S2103, after setting the filter information in the service property, the ECHONET event listener implementation object is registered in the OSGi framework as an ECHONET event listener service.

S2101からS2103は図19で説明したイベント取得用のサービスの登録と同様である。
S2104では、人感センサが反応すると、人感センサは人体検知情報プロパティを宅内ネットワーク(マルチキャストアドレス)に対して通知する。
S2105では、ECHONETバンドルは通知を受信し、個体識別情報管理テーブル400からイベントの通知を行った機器のECHONETアドレスに対応する個体識別情報を読み出し、イベントの通知を行った機器のECHONETオブジェクトと個体識別情報よりイベントの通知を行った機器のサービス識別情報を生成する。
Steps S2101 to S2103 are similar to the registration of the event acquisition service described with reference to FIG.
In S2104, when the human sensor reacts, the human sensor notifies the human body detection information property to the home network (multicast address).
In S2105, the ECHONET bundle receives the notification, reads the individual identification information corresponding to the ECHONET address of the device that has notified the event from the individual identification information management table 400, and identifies the ECHONET object and the individual identification of the device that has notified the event. The service identification information of the device that has notified the event is generated from the information.

S2106では、上記サービス識別情報に対応するフィルタ情報を作成する。
S2107では、ECHONETバンドルは、OSGiフレームワークに対して上記フィルタ情報に該当するECHONETイベントリスナサービスの一覧を取得する要求を送信する。
S2108では、OSGiフレームワークはECHONETバンドルに対してS2107のECHONETバンドルの要求対する応答を返す。
In S2106, filter information corresponding to the service identification information is created.
In S2107, the ECHONET bundle transmits a request for acquiring a list of ECHONET event listener services corresponding to the filter information to the OSGi framework.
In S2108, the OSGi framework returns a response to the request for the ECHONET bundle in S2107 to the ECHONET bundle.

S2109では、該当するECHONETイベントリスナサービスに対応するEchonetEventオブジェクトを生成する。
S2110では、S2109で生成したEchonetEventオブジェクトをservice.pidとともにアプリケーションバンドルが提供するECHONETイベントリスナサービスへと通知する。
S2111では、アプリケーションバンドルのECHONETイベントリスナ実装オブジェクトは通知を受信し、照明機器に対応するフィルタ情報を作成する。
In S2109, an EchonetEvent object corresponding to the corresponding ECHONET event listener service is generated.
In S2110, the EchonetEvent object generated in S2109 is changed to service. It notifies the ECHONET event listener service provided by the application bundle together with the pid.
In S2111, the ECHONET event listener implementation object of the application bundle receives the notification and creates filter information corresponding to the lighting device.

S2112では、アプリケーションバンドルはフィルタ情報に該当するECHONETデバイスサービスの一覧を取得する要求をOSGiフレームワークに送信する。
S2113では、OSGiフレームワークはS2112の要求に対する応答をアプリケーションバンドルに返す。
S2114では、ECHONETプロパティオブジェクトを生成し、照明機器の動作状態のプロパティとして「ON」の値を設定する。ECHONETプロパティオブジェクトとは、ECHONETプロパティに値を設定したオブジェクトである。
In step S2112, the application bundle transmits a request for acquiring a list of ECHONET device services corresponding to the filter information to the OSGi framework.
In S2113, the OSGi framework returns a response to the request in S2112 to the application bundle.
In S2114, an ECHONET property object is generated, and the value of “ON” is set as the property of the operating state of the lighting device. The ECHONET property object is an object in which a value is set in the ECHONET property.

S2115では、アプリケーションバンドルはECHONETデバイスサービスの照明機器の動作状態のプロパティに対し、S2114でECHONETプロパティオブジェクトに設定した値(ON)を設定するよう要求を行う。
S2116では、ECHONETバンドルはS2115のアプリケーションバンドルの要求にしたがって該当するECHONET機器に動作状態をONとする制御を行う。
S2117では、S2116でのECHONETバンドルの制御により照明が点灯する。
以上が、本実施例におけるECHONET機器の動作の一例である。
In S2115, the application bundle requests to set the value (ON) set in the ECHONET property object in S2114 for the property of the operation state of the lighting device of the ECHONET device service.
In S2116, the ECHONET bundle performs control to turn on the operation state of the corresponding ECHONET device according to the application bundle request in S2115.
In S2117, the illumination is turned on by controlling the ECHONET bundle in S2116.
The above is an example of the operation of the ECHONET device in the present embodiment.

以上述べたように、ECHONETバンドルは宅内のECHONET機器の検出および切断監視によってECHONET機器の接続切断状態を監視することができる。また、ノードプロファイルの個体識別情報プロパティを用いてECHONET機器管理テーブル400において検出した機器を管理し、また検出済み機器についても個体識別情報とECHONETアドレスの組合せが変わっていないかを定期的に確認することにより、ECHONET機器の再起動等によるECHONETアドレスの変更によらずに機器を区別し、制御することができる。   As described above, the ECHONET bundle can monitor the connection / disconnection state of the ECHONET device by detecting and disconnecting the ECHONET device in the house. In addition, the device detected in the ECHONET device management table 400 is managed using the individual identification information property of the node profile, and the detected device is periodically checked whether the combination of the individual identification information and the ECHONET address has changed. Thus, the devices can be distinguished and controlled without changing the ECHONET address by restarting the ECHONET device.

また、ECHONET機器を機器オブジェクト(インスタンス、ECHONETオブジェクト)毎に、OSGiフレームワーク上のサービス(ECHONETデバイスサービス)として登録することによりOSGiフレームワーク上で動作するアプリケーションバンドルはECHONET機器に対し、プロパティ値の設定、読み出しといった制御を行うことができる。   In addition, by registering ECHONET devices as services on the OSGi framework (ECHONET device services) for each device object (instance, ECHONET object), an application bundle that operates on the OSGi framework has property values for the ECHONET device. Control such as setting and reading can be performed.

ECHONETバンドルがECHONETデバイスサービスをOSGiフレームワークに登録する際に、サービスプロパティとしてservice.pidにECHONET機器の個体識別情報および機器オブジェクト情報から生成するサービス識別情報を設定することにより、アプリケーションバンドルは宅内ネットワーク上の各機器オブジェクトを一意に区別することができる。   When the ECHONET bundle registers the ECHONET device service in the OSGi framework, service.service. By setting the service identification information generated from the individual identification information of the ECHONET device and the device object information in pid, the application bundle can uniquely distinguish each device object on the home network.

また、サービス識別情報を応用してECHONETイベントリスナ実装オブジェクトをOSGiフレームワークに登録することにより、アプリケーションバンドルは所望のECHONET機器からのイベントのみを簡単に受信することができる。   Further, by registering the ECHONET event listener implementation object in the OSGi framework by applying the service identification information, the application bundle can easily receive only an event from a desired ECHONET device.

ECHONET機器を制御する際や、イベントの通知の際、アプリケーションバンドルとECHONETバンドルの間では、直接オブジェクトのやり取りは行わず、必ずOSGiフレームワークを介してECHONETデバイスサービスやECHONETイベントリスナサービスを取得する。OSGiフレームワークはバンドルのライフサイクルを管理、把握しているため、アプリケーションバンドルまたはECHONETバンドルが予期せず終了してしまったような場合にもメモリリーク等、システム全体への重大な影響を防ぐことができる。   When an ECHONET device is controlled or an event is notified, an object is not directly exchanged between the application bundle and the ECHONET bundle, and an ECHONET device service and an ECHONET event listener service are always acquired via the OSGi framework. Since the OSGi framework manages and understands the life cycle of the bundle, even if the application bundle or ECHONET bundle terminates unexpectedly, it prevents a serious impact on the entire system, such as a memory leak. Can do.

本実施例において述べた、ECHONETデバイスサービスの一覧取得やEchonetEevntListenerの取得の際に生成するフィルタはOSGiサービス基盤に含まれる標準のものを使用することができる。そのため、アプリケーションバンドルの作成者は所望の機器のオブジェクトや所望の機器からのイベントのみを取得したい場合にも標準のフィルタを用いて簡単にプログラムを作成することが可能である。さらにOSGiサービス基盤のフィルタ機能はワイルドカードやAND、OR等の表記が可能であるため、標準の中で高い機能の使用、柔軟なプログラミングが可能となる。   The standard filter included in the OSGi service platform can be used as the filter that is generated when acquiring the ECHONET device service list or EchonetEventListener described in this embodiment. Therefore, the creator of the application bundle can easily create a program using a standard filter even when only the object of a desired device and the event from the desired device are to be acquired. Furthermore, since the OSGi service-based filter function can be represented by wild cards, AND, OR, etc., it is possible to use high functions and flexible programming in the standard.

本実施例ではECHONET規格を前提に説明を行ったが、これによりECHONET規格に限定されるわけではない。   In the present embodiment, the ECHONET standard has been described. However, the present invention is not limited to the ECHONET standard.

本実施例におけるネットワーク構成図である。It is a network block diagram in a present Example. 本実施例における宅内機器管理装置のハードウェア構成図である。It is a hardware block diagram of the household appliance management apparatus in a present Example. 本実施例におけるECHONET機器のハードウェア構成図である。It is a hardware block diagram of the ECHONET apparatus in a present Example. 本実施例における個体識別情報管理テーブルである。It is an individual identification information management table in a present Example. 本実施例における機器検出からOSGiフレームワーク登録までのシーケンス図である。FIG. 5 is a sequence diagram from device detection to OSGi framework registration in the present embodiment. 本実施例における機器検出からOSGiフレームワーク登録までのシーケンス図である。FIG. 5 is a sequence diagram from device detection to OSGi framework registration in the present embodiment. 本実施例における機器検出からOSGiフレームワーク登録までのシーケンス図である。FIG. 5 is a sequence diagram from device detection to OSGi framework registration in the present embodiment. 本実施例における機器検出からOSGiフレームワーク登録までのシーケンス図である。FIG. 5 is a sequence diagram from device detection to OSGi framework registration in the present embodiment. 本実施例における機器検出からOSGiフレームワーク登録までのシーケンス図である。FIG. 5 is a sequence diagram from device detection to OSGi framework registration in the present embodiment. 本実施例における機器検索開始のフローチャートであるIt is a flowchart of the apparatus search start in a present Example. 本実施例における機器の発見からOSGi FWに登録するまでのフローチャートである。It is a flowchart from discovery of the apparatus in a present Example to registration to OSGi FW. 本実施例における新規に発見した機器の個体識別情報を個体識別情報管理テーブルへ追加するフローチャートである。It is a flowchart which adds the individual identification information of the newly discovered apparatus in a present Example to an individual identification information management table. 本実施例における既に個体識別情報管理テーブルに記載済みの機器に対し、インスタンスの再検索をするかどうかを検討する手順を示すフローチャートである。It is a flowchart which shows the procedure which examines whether to search again for an instance with respect to the apparatus already described in the individual identification information management table in a present Example. 本実施例におけるある個体識別情報を有するECHONETノードに対し、インスタンス検索を行う際の手順を示すフローチャートである。It is a flowchart which shows the procedure at the time of performing an instance search with respect to the ECHONET node which has a certain individual identification information in a present Example. 本実施例におけるある個体識別情報に対応するあるインスタンスを、OSGi FWにECHONETデバイスサービスとして登録するまでの手順を示すフローチャートである。It is a flowchart which shows the procedure until a certain instance corresponding to a certain individual identification information in a present Example is registered into OSGi FW as an ECHONET device service. 本実施例におけるOSGi登録済みの機器の切断監視のフローチャートである。It is a flowchart of disconnection monitoring of an OSGi registered device in this embodiment. 本実施例におけるOSGi登録済みの機器の切断監視のフローチャートである。It is a flowchart of disconnection monitoring of an OSGi registered device in this embodiment. 本実施例におけるアプリケーションソフトウェアがエアコン機器の温度設定を変更する制御を行う際のフローチャートである。It is a flowchart when the application software in a present Example performs control which changes the temperature setting of an air-conditioner apparatus. 本実施例におけるアプリケーションソフトウェトウェアが人感センサ機器からのイベントを取得するリスナを登録するフローチャートである。It is a flowchart which registers the listener with which the application software in a present Example acquires the event from a human sensitive sensor apparatus. 本実施例におけるアプリケーションソフトウェトウェアが人感センサ機器からのイベント通知を取得するフローチャートである。It is a flowchart in which the application software in a present Example acquires the event notification from a human sensitive sensor apparatus. 本実施例におけるECHONET機器の協調動作の一例を示すシーケンス図である。It is a sequence diagram which shows an example of the cooperation operation | movement of the ECHONET apparatus in a present Example. 本実施例におけるECHONETバンドルのモジュール構成の概念図である。It is a conceptual diagram of the module structure of the ECHONET bundle in a present Example. 本実施例におけるECHONETサービスAPIのクラス図である。It is a class diagram of ECHONET service API in a present Example.

符号の説明Explanation of symbols

101 宅内機器管理装置
102 宅内ネットワーク
103 ECHONET機器
104 ECHONET機器
105 ECHONET機器
201 CPU
202 メインメモリ
203 EPROM
204 不揮発性記憶装置
205 LAN/IF
206 バス
301 CPU
302 メインメモリ
303 EPROM
305 LAN/IF
307 バス
400 個体識別情報管理テーブル
401 個体識別情報
402 ECHONETアドレス
403 再検索待機数
101 Home Device Management Device 102 Home Network 103 ECHONET Device 104 ECHONET Device 105 ECHONET Device 201 CPU
202 Main memory 203 EPROM
204 Non-volatile storage device 205 LAN / IF
206 Bus 301 CPU
302 Main memory 303 EPROM
305 LAN / IF
307 Bus 400 Individual identification information management table 401 Individual identification information 402 ECHONET address 403 Re-search waiting number

Claims (7)

ECHONET規格に対応した機器であるECHONET機器を一つ以上、ネットワークを介して管理する機器管理装置であって、
前記ECHONET機器との間で、前記ECHONET規格で定める物理層を介して情報のやり取りを行う手段と、
前記ネットワークの前記ECHONET規格で定めるマルチキャストアドレスに対して、定期的に前記個体識別情報の取得要求を送信し、前記ネットワークに接続された前記ECHONET機器から個体識別情報取得応答を受信し、当該個体識別情報取得応答に含まれる、当該ECHONET機器に予め付与された前記個体識別情報と、当該ECHONET機器の起動後に設定されたECHONETアドレスと、を取得し対応付ける個体識別情報取得手段と、
取得した前記当該個体識別情報に対応するECHONETアドレスに宛てて、該個体識別情報を有する前記ECHONET機器のオブジェクトのリストであるインスタンスリスト取得要求を送信し、前記ECHONETアドレスを利用中の前記ECHONET機器から前記インタンスリストを受信するインスタンスリスト取得手段と、
前記ECHONETアドレスに対応する、取得した前記個体識別情報と、取得した前記インスタンスリストに含まれる前記ECHONET機器のオブジェクトのコードと、からOSGiフレームワークに登録される機器オブジェクトであるECHONETデバイスサービスを指定するサービス識別情報を生成するサービス識別情報生成手段と、
生成された前記サービス識別情報と関連付けられた前記ECHONETデバイスサービスが、前記OSGiフレームワークに登録済みかどうかを調査するサービス識別情報比較手段と、
前記サービス識別情報比較手段によって、前記サービス識別情報と関連付けられた前記ECHONETデバイスサービスが前記OSGiフレームワークにサービス登録されていないと確認された際に、前記サービス識別情報と前記ECHOENTデバイスサービス関連付けて、前記OSGiフレームワークに登録するOSGiフレームワーク登録手段とを有する
ことを特徴とする機器管理装置。
A device management apparatus that manages one or more ECHONET devices, which are devices compliant with the ECHONET standard, via a network,
Between the ECHONET device, and means for exchanging information via the physical layer to the provisions of the ECHONET standard,
A request for acquiring the individual identification information is periodically transmitted to a multicast address defined in the ECHONET standard of the network, an individual identification information acquisition response is received from the ECHONET device connected to the network, and the individual identification is performed. An individual identification information acquisition means for acquiring and associating the individual identification information previously given to the ECHONET device included in the information acquisition response and the ECHONET address set after the ECHONET device is activated;
Acquired addressed to the corresponding ECHONET address to the said individual identification information, transmits an acquisition request for the list in which an instance list of objects of the ECHONET device having the individual identification information, the ECHONET equipment in use the ECHONET address An instance list acquisition means for receiving the instance list from:
Specify the ECHONET device service, which is a device object registered in the OSGi framework , from the acquired individual identification information corresponding to the ECHONET address and the code of the object of the ECHONET device included in the acquired instance list Service identification information generating means for generating service identification information to be
Service identification information comparison means for investigating whether or not the ECHONET device service associated with the generated service identification information has been registered in the OSGi framework ;
By the service identification information comparing unit, when the ECHONET device services associated with the service identification information is confirmed not to be the service registered in the OSGi framework, associated with said ECHOENT device service with the service identification information Te has a OSGi framework registration means for registering the OSGi framework
A device management apparatus characterized by that .
請求項1に記載の機器管理装置において、The device management apparatus according to claim 1,
前記ECHONET機器を識別する予め定められた個体識別情報を管理する個体識別情報管理テーブルと、An individual identification information management table for managing predetermined individual identification information for identifying the ECHONET device;
前記ECHONET機器から取得した前記個体識別情報が、前記個体識別情報管理テーブルに登録済みであるかどうかを調査する個体識別情報登録調査手段と、Individual identification information registration investigating means for investigating whether or not the individual identification information acquired from the ECHONET device has been registered in the individual identification information management table;
前記取得した個体識別情報が前記個体識別情報管理テーブルに未登録であった場合に、前記個体識別情報取得応答に含まれる、当該個体識別情報と前記ECHONETアドレスとを前記個体識別情報管理テーブルに登録する手段を備えるWhen the acquired individual identification information is not registered in the individual identification information management table, the individual identification information and the ECHONET address included in the individual identification information acquisition response are registered in the individual identification information management table. With means to
ことを特徴とする機器管理装置。A device management apparatus characterized by that.
請求項1または2に記載の機器管理装置において
前記個体識別情報取得手段が前記個体識別情報を取得する動作を行ったときに前記ECHONET機器からの応答があるか否かを判断する個体識別情報取得応答判断手段と、
前記個体識別情報取得応答判断手段において応答がないと判断された前記個体識別情報を有する前記ECHONETデバイスサービスを前記OSGiフレームワークから削除するECHONETデバイスサービス削除手段とを有する
ことを特徴とする機器管理装置。
In the apparatus management apparatus according to claim 1 or 2 ,
And individual identification information acquisition response determining means for determining whether or not there is a response from the ECHONET device when said identification information acquisition means performs an operation for acquiring the identification information,
Having a ECHONET Device Service deleting section that deletes the ECHONET device services from the OSGi framework with the individual identification information judged that there is no response in said individual identification information acquisition response determining means
A device management apparatus characterized by that .
請求項1から3のいずれか一に記載の機器管理装置において、
任意の前記ECHONETデバイスサービスに対して、ECHONET機器を制御する値の取得、設定を行うECHONETプロパティ取得、設定手段有する
ことを特徴とする機器管理装置。
In the equipment management device according to any one of claims 1 to 3 ,
For any of the ECHONET device services, the acquisition of values that control the ECHONET equipment, ECHONET property acquired for setting, with a setting means
A device management apparatus characterized by that .
ECHONET規格に対応した機器であるECHONET機器を一つ以上、ネットワークを介して管理する機器管理装置であって、
前記ECHONET機器を識別する予め定められた個体識別情報と、当該ECHONET機器の起動後に設定されたECHONETアドレスと、を対応付けて管理する個体識別情報管理テーブルと、
前記ECHONET機器との間で、前記ECHONET規格で定める物理層を介して情報のやり取りを行う手段と、
前記ネットワークの前記ECHONET規格で定めるマルチキャストアドレスに対して、定期的に前記個体識別情報の取得要求を送信し、前記ネットワークに接続された前記ECHONET機器から個体識別情報取得応答を受信し、当該個体識別情報取得応答に含まれる、当該ECHONET機器に予め付与された前記個体識別情報と、当該ECHONET機器の起動後に設定されたECHONETアドレスと、を取得し、前記個体識別情報管理テーブルにおいて対応付けて管理する個体識別情報取得手段と、
前記ECHONET機器からのイベント通知受信するイベント取得手段と、
前記前記個体識別情報管理テーブルを参照し、前記イベント通知に含まれるECHONETアドレスに対応する個体識別情報を取得し、前記個体識別情報、ECHONET電文に含まれる送信元ECHONETオブジェクトからECHONETデバイスサービスのサービス識別情報を生成するイベント受信時サービス識別情報生成手段と、
登録されている、イベントを制御するECHONETイベントリスナ実装オブジェクトの内、生成された前記サービス識別情報に該当するECHONETイベントリスナ実装オブジェクトに対して、取得した前記イベントを通知するイベント通知手段とを有する
ことを特徴とする機器管理装置。
A device management apparatus that manages one or more ECHONET devices, which are devices compliant with the ECHONET standard, via a network,
An individual identification information management table for managing the individual identification information for identifying the ECHONET device in association with the ECHONET address set after the ECHONET device is activated;
Means for exchanging information with the ECHONET device via a physical layer defined by the ECHONET standard;
A request for acquiring the individual identification information is periodically transmitted to a multicast address defined in the ECHONET standard of the network, an individual identification information acquisition response is received from the ECHONET device connected to the network, and the individual identification is performed. The individual identification information previously given to the ECHONET device and the ECHONET address set after activation of the ECHONET device included in the information acquisition response are acquired and managed in association with each other in the individual identification information management table Individual identification information acquisition means;
And event acquiring means for receiving an event notification from the ECHONET device,
The individual identification information management table is referred to, individual identification information corresponding to the ECHONET address included in the event notification is acquired , and the ECHONET device service is obtained from the individual identification information and the transmission source ECHONET object included in the ECHONET message. An event reception service identification information generating means for generating the service identification information of
Is registered, among the ECHONET event listener implementation object for controlling the event, has for ECHONET event listener implementation object corresponding to the generated the service identification information, and event notification means for notifying the acquired event, the
A device management apparatus characterized by that .
請求項5に記載の機器管理装置において、In the equipment management device according to claim 5,
前記ECHONET機器を識別する予め定められた個体識別情報を管理する個体識別情報管理テーブルと、An individual identification information management table for managing predetermined individual identification information for identifying the ECHONET device;
前記ECHONET機器から取得した前記個体識別情報が、前記個体識別情報管理テーブルに登録済みであるかどうかを調査する個体識別情報登録調査手段と、Individual identification information registration investigating means for investigating whether or not the individual identification information acquired from the ECHONET device has been registered in the individual identification information management table;
前記取得した個体識別情報が前記個体識別情報管理テーブルに未登録であった場合に、前記個体識別情報取得応答に含まれる、当該個体識別情報と前記ECHONETアドレスとを前記個体識別情報管理テーブルに登録する手段を備えるWhen the acquired individual identification information is not registered in the individual identification information management table, the individual identification information and the ECHONET address included in the individual identification information acquisition response are registered in the individual identification information management table. With means to
ことを特徴とする機器管理装置。A device management apparatus characterized by that.
請求項5または6に記載の機器管理装置において、
任意の前記ECHONET機器からのイベントを取得するフィルタを作成するイベントフィルタ作成手段と、
前記ECHONETイベントリスナ実装オブジェクトを生成し、前記OSGiフレームワークに登録するイベントリスナ登録手段とを有する
ことを特徴とする機器管理装置。
In the apparatus management apparatus according to claim 5 or 6 ,
An event filter creation means for creating a filter to retrieve events from any of the ECHONET equipment,
Generating the ECHONET event listener implementation object has an event listener registration means for registering the OSGi framework
A device management apparatus characterized by that .
JP2007002946A 2007-01-11 2007-01-11 Equipment management device Expired - Fee Related JP4984898B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007002946A JP4984898B2 (en) 2007-01-11 2007-01-11 Equipment management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007002946A JP4984898B2 (en) 2007-01-11 2007-01-11 Equipment management device

Publications (2)

Publication Number Publication Date
JP2008172462A JP2008172462A (en) 2008-07-24
JP4984898B2 true JP4984898B2 (en) 2012-07-25

Family

ID=39700144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007002946A Expired - Fee Related JP4984898B2 (en) 2007-01-11 2007-01-11 Equipment management device

Country Status (1)

Country Link
JP (1) JP4984898B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010218352A (en) * 2009-03-18 2010-09-30 Ricoh Co Ltd Device management apparatus, image forming apparatus, and device management program
JP5318830B2 (en) 2010-08-25 2013-10-16 株式会社日立ソリューションズ WebAPI server program, WebAPI publication method
JP6076666B2 (en) * 2012-09-27 2017-02-08 京セラ株式会社 Management system, management method, and control apparatus
JP5952416B2 (en) * 2012-09-27 2016-07-13 京セラ株式会社 Management method, control apparatus, and communication processing device
JP6410872B2 (en) * 2012-09-27 2018-10-24 京セラ株式会社 Power management system, control device and equipment
US10978907B1 (en) * 2016-02-19 2021-04-13 Kyocera Corporation Management system, management method, apparatus and control device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0025331D0 (en) * 2000-10-16 2000-11-29 Canon Kk Control apparatus
DE60140857D1 (en) * 2001-03-15 2010-02-04 Sony Deutschland Gmbh Control of home networking devices
JP3590387B2 (en) * 2001-11-01 2004-11-17 株式会社東芝 Communication device and program
JP2003271479A (en) * 2002-03-14 2003-09-26 Sharp Corp Network connector and household electrical appliances information medium
JP2004021325A (en) * 2002-06-12 2004-01-22 Toshiba Corp Communication controller and communication control method
DE10302678A1 (en) * 2003-01-24 2004-07-29 Robert Bosch Gmbh Controlling home audio video inoperability equipment through device control module of open service gateway initiative platform, employs device control module
JP2005011307A (en) * 2003-05-28 2005-01-13 Nippon Telegr & Teleph Corp <Ntt> Content providing method, and terminal, program and recording medium for content user
US7881661B2 (en) * 2003-06-18 2011-02-01 Intellisync Corporation Apparatus and method for providing notification on remote devices
JP2005234733A (en) * 2004-02-18 2005-09-02 Nippon Telegr & Teleph Corp <Ntt> Method, device and program for equipment control, and recording medium with the program stored thereon
JP2005252628A (en) * 2004-03-03 2005-09-15 Nippon Telegr & Teleph Corp <Ntt> Network management method and apparatus having easy to expand function
JP4041118B2 (en) * 2004-11-24 2008-01-30 株式会社東芝 Gateway device, network system, communication program, and communication method
JP4663383B2 (en) * 2005-04-13 2011-04-06 株式会社日立製作所 Home gateway device, control method for home gateway device, and control method for communication system

Also Published As

Publication number Publication date
JP2008172462A (en) 2008-07-24

Similar Documents

Publication Publication Date Title
JP4354294B2 (en) Gateway device connected to a plurality of networks having different network segments, and program and method for transferring IP packet
JP4984898B2 (en) Equipment management device
JP4465353B2 (en) Home network setting method, home gateway device, home gateway program, recording medium
JP3318289B2 (en) Home network gateway equipment
US7428574B2 (en) Device cooperation service system and electronic devices included in the system
RU2593272C2 (en) Information processing device and method of controlling said device
JP2004362594A (en) Method for automatically discovering and configuring external network device
EP2461523B1 (en) Systems and methods for operating an appliance control device for an appliance
US20150067129A1 (en) Apparatus, system, and method of managing device, and recording medium storing device management program
KR20180061314A (en) Multimedia resource reproduction system, method and server
BR112014009195B1 (en) Communication device and method for controlling it
JP6008411B2 (en) Device management apparatus, device management system, device management method and program
Gómez et al. Forensic analysis of the Xiaomi Mi smart sensor set
JP2010004344A (en) Method, device, system, and program for conducting remote accessing
JP2013207705A (en) Control device
JP2018133001A (en) Management device, portable terminal, methods therefor, and program
JP2004289816A (en) Remote control apparatus, remote control method and remotely controlled apparatus
JP4321774B2 (en) Device management method, outlet used therefor, and device management server
JP2005258834A (en) User interface configuration method, device and program
JP5721184B2 (en) Electronic device control system and electronic device control method
JP5789722B2 (en) Building sensor network construction apparatus and method
JP5662360B2 (en) Information communication system, community management server, gateway device, information communication method and program
JP2010239746A (en) Remote device, and power supply control method
JP2005045505A (en) Communication controller and network associating method
US20170302879A1 (en) Communication apparatus, control method thereof, information processing apparatus, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111219

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120416

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150511

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees