JP2015179913A - Communication adapter and communication system - Google Patents
Communication adapter and communication system Download PDFInfo
- Publication number
- JP2015179913A JP2015179913A JP2014055652A JP2014055652A JP2015179913A JP 2015179913 A JP2015179913 A JP 2015179913A JP 2014055652 A JP2014055652 A JP 2014055652A JP 2014055652 A JP2014055652 A JP 2014055652A JP 2015179913 A JP2015179913 A JP 2015179913A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- version
- storage medium
- attribute information
- standard
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本発明の実施形態は、通信アダプタ、及び通信システムに関する。 Embodiments described herein relate generally to a communication adapter and a communication system.
従来から、家庭内や電気機器を接続するネットワークとして、ECHONET(登録商標)規格が提案されている。当該ECHONET(登録商標)規格は、エアコンや燃料電池、各種センサなどをオブジェクト化し、当該オブジェクトにアクセスすることで、これらの機器の状態を取得できる。このECHONET規格は、現在も規格の策定が進められているため、当該オブジェクトから参照可能なプロパティが変更されることもある。 Conventionally, the ECHONET (registered trademark) standard has been proposed as a network for connecting homes and electrical devices. According to the ECHONET (registered trademark) standard, an air conditioner, a fuel cell, various sensors, and the like are converted into objects, and the state of these devices can be acquired by accessing the objects. Since the ECHONET standard is still being developed, the properties that can be referenced from the object may be changed.
従来技術においては、接続された電気機器(電子機器をネットワークに接続するための通信アダプタを含む)間でECHONET規格のバージョンが異なる場合を考慮して、送信側と受信側とのオブジェクト構成情報が一致する場合に限り、通信可能とする技術が提案されている。オブジェクト構成情報が異なる場合には、いずれか一方の電子機器のプログラムを書き換えて、一致させる必要がある。 In the prior art, the object configuration information on the transmission side and the reception side is determined in consideration of the case where the version of the ECHONET standard differs between connected electrical devices (including a communication adapter for connecting an electronic device to a network). A technique has been proposed that enables communication only when they match. If the object configuration information is different, it is necessary to rewrite the program of one of the electronic devices so that they match.
しかしながら、電気機器や、電子機器をネットワークに接続するための通信アダプタにおいて、ECHONET規格のバージョンアップのためにプログラムを書き換えるのが難しい場合が多い。 However, it is often difficult to rewrite a program for upgrading the ECHONET standard in a communication adapter for connecting an electric device or an electronic device to a network.
実施形態の通信アダプタは、一例として、電気機器と接続するための接続インターフェースと、所定の通信規格で通信を行うネットワークに接続するための通信インターフェースと、所定の通信規格で定められた任意のバージョンに対応した処理を行うバージョン依存プログラムと、バージョン依存プログラムを用いて設定された電子機器の属性情報と、を記憶する記憶媒体を着脱可能な接続部と、ネットワークに接続された通信装置から、通信インターフェースを介して電気機器の属性情報の取得要求を受信した場合に、接続部に接続された記憶媒体からバージョン依存プログラムを呼び出して属性情報を取得し、属性情報を、通信装置に送信する制御部と、を備える。よって、一例としては、記憶媒体の着脱で所定の通信規格のバージョンの更新ができるため、バージョンの更新が容易になるという効果を奏する。 The communication adapter according to the embodiment includes, as an example, a connection interface for connecting to an electrical device, a communication interface for connecting to a network that performs communication according to a predetermined communication standard, and an arbitrary version defined by the predetermined communication standard. Communication from a communication unit connected to a network, a connection unit to which a storage medium for storing a version-dependent program that performs processing corresponding to the information, attribute information of an electronic device set using the version-dependent program, and a storage medium can be stored. A control unit that, when receiving an acquisition request for attribute information of an electrical device via an interface, calls the version-dependent program from a storage medium connected to the connection unit, acquires the attribute information, and transmits the attribute information to the communication device And comprising. Therefore, as an example, the version of a predetermined communication standard can be updated by attaching or detaching the storage medium, and thus the effect of facilitating the version update is achieved.
また、実施形態の通信アダプタにおいて、一例として、制御部は、さらに、取得要求を受信した場合に、属性情報にアクセスできるようにバージョン依存プログラムの動的リンクを行い、記憶媒体から属性情報を受け取った後、バージョン依存プログラムの動的リンクを解除する。よって、一例としては、記憶媒体が常にリンクされている訳ではないため、記憶媒体の着脱が容易になり、バージョンの更新が容易になるという効果を奏する。 In the communication adapter according to the embodiment, as an example, when the acquisition request is received, the control unit further dynamically links the version-dependent program so that the attribute information can be accessed, and receives the attribute information from the storage medium. After that, release the dynamic link of the version-dependent program. Therefore, as an example, since the storage medium is not always linked, there is an effect that the storage medium can be easily attached and detached, and the version can be easily updated.
また、実施形態の通信アダプタにおいて、一例として、接続部は、電子機器の稼働中に、記憶媒体の交換を可能とする。よって、一例としては、電子機器を停止させることなく記憶媒体の交換ができるため、バージョンの更新が容易になるという効果を奏する。 In the communication adapter according to the embodiment, as an example, the connection unit allows the storage medium to be exchanged while the electronic device is in operation. Therefore, as an example, since the storage medium can be exchanged without stopping the electronic device, there is an effect that the version can be easily updated.
また、実施形態の通信アダプタにおいて、一例として、通信インターフェースによりネットワークに接続するための所定の通信規格が、ECHONET規格である。よって、一例としては、ECHONET規格のバージョンが変更された場合に、電子機器を対応させるのが容易になるという効果を奏する。 In the communication adapter according to the embodiment, as an example, a predetermined communication standard for connecting to a network via a communication interface is the ECHONET standard. Therefore, as an example, when the version of the ECHONET standard is changed, there is an effect that it is easy to make the electronic device compatible.
また、実施形態の通信アダプタにおいて、一例として、通信インターフェースが、電子機器として燃料電池を、ネットワークに接続するためのものであり、接続部が、燃料電池から取得した属性情報として、燃料電池の状況を計測した計測値を記憶した記憶媒体を接続可能である。よって、一例としては、常に動作させておく必要がある燃料電池であっても、停止させることなく通信規格のバージョンに対応させることができるという効果を奏する。 Further, in the communication adapter of the embodiment, as an example, the communication interface is for connecting a fuel cell as an electronic device to a network, and the connection unit acquires the status of the fuel cell as attribute information acquired from the fuel cell. It is possible to connect a storage medium that stores measurement values obtained by measuring. Therefore, as an example, there is an effect that even a fuel cell that needs to be operated at all times can be adapted to a communication standard version without being stopped.
また、実施形態の通信システムにおいて、一例として、通信アダプタと記憶媒体とで構成される通信システムであって、記憶媒体は、所定の通信規格で定められた任意のバージョンに対応した処理を行うバージョン依存プログラムと、バージョン依存プログラムを用いて設定された電子機器の属性情報と、を記憶し、通信アダプタは、電気機器と接続するための接続インターフェースと、所定の通信規格で通信を行うネットワークに接続するための通信インターフェースと、記憶媒体を着脱可能な接続部と、ネットワークに接続された通信装置から、通信インターフェースを介して電気機器の属性情報の取得要求を受信した場合に、接続部に接続された記憶媒体からバージョン依存プログラムを呼び出して属性情報を取得し、属性情報を、通信装置に送信する制御部と、を備える。よって、一例としては、記憶媒体の着脱で所定の通信規格のバージョンの更新ができるため、バージョンの更新が容易になるという効果を奏する。 In the communication system of the embodiment, as an example, a communication system including a communication adapter and a storage medium, the storage medium performing a process corresponding to an arbitrary version defined by a predetermined communication standard Dependent programs and attribute information of electronic devices set using version-dependent programs are stored, and the communication adapter is connected to a connection interface for connecting to electrical devices and to a network for communication according to a predetermined communication standard Connected to the connection unit when receiving a request for acquiring the attribute information of the electrical equipment from the communication device connected to the network via the communication interface, the connection unit to which the storage medium can be attached and detached, and the communication device connected to the network. Call the version-dependent program from the storage medium to acquire the attribute information, and pass the attribute information. And a control unit which transmits device. Therefore, as an example, the version of a predetermined communication standard can be updated by attaching or detaching the storage medium, and thus the effect of facilitating the version update is achieved.
以下の実施形態では、燃料電池をネットワークに接続するための通信アダプタの例について説明する。 In the following embodiment, an example of a communication adapter for connecting a fuel cell to a network will be described.
図1は、本実施形態のネットワーク構成例を示した図である。図1に示されるように、本実施形態では、燃料電池150を、ECHONET(登録商標)規格のネットワーク180に接続するために、通信アダプタ100が設けられた例とする。そして、通信アダプタ100と、情報処理装置160と、の間では、ECHONET規格のネットワーク180を介して、情報の送受信を可能としている。
FIG. 1 is a diagram illustrating a network configuration example of the present embodiment. As shown in FIG. 1, in the present embodiment, a
本実施形態の燃料電池150は、現在の状況を表すデータを出力するが、ECHONET規格に対応していない例とする。そして、通信アダプタ100は、燃料電池150と接続可能なアダプタであって、ECHONET規格に対応しているものとする。通信アダプタ100が、燃料電池150から出力された当該燃料電池150の状況を表すデータを取得し、管理する。そして、通信アダプタ100は、他の通信端末(例えば情報処理装置160)に対して、燃料電池150に関する情報を、ECHONET規格のネットワーク180を介して提供できる。
The
なお、本実施形態は、燃料電池150をECHONET規格のネットワークに接続するための通信アダプタ100の場合について説明するが、通信アダプタの接続対象を燃料電池に制限するものではなく、例えば各種センサ類や、ECHONET規格に非対応の電気機器(例えば、エアコン、照明、給湯器、太陽光発電システム、蓄電池、スマート電力量計)でもよい。つまり、通信アダプタを用いることで、ECHONET規格に非対応の電気機器を、ECHONET規格のネットワークに接続し、ECHONET規格に基づいた情報の交換を実現できる。
In the present embodiment, the case of the
これにより、燃料電池150がECHONET規格に対応していなくとも、燃料電池150の状況を、ECHONET規格に対応した通信装置(例えば情報処理装置160)から把握できる。
Thereby, even if the
ところで、ECHONET規格は、現在規格作成の過渡期であるため、バージョンアップが頻繁に行われる。新しいバージョンアップに対応するためには、ECHONET規格に対応した電気機器や通信アダプタのプログラムと機器オブジェクトとを更新する必要がある。なお、機器オブジェクトとは、ECHONET規格のネットワークに接続されている電子機器の様々な属性情報(以下、プロパティとも称す)を保持するオブジェクトとする。 By the way, the ECHONET standard is currently in a transition period of preparation of the standard, so version upgrades are frequently performed. In order to cope with the new version upgrade, it is necessary to update the program and device object of the electric device or communication adapter corresponding to the ECHONET standard. The device object is an object that holds various attribute information (hereinafter also referred to as properties) of an electronic device connected to an ECHONET standard network.
また、バージョンアップでは、機器オブジェクトのプロパティの追加や統廃合等が行われる場合がある。ところで、PCなどの通信装置から、ECHNET規格のネットワークに接続されている電気機器の状況を取得した場合、当該状況を表すプロパティを指定して、当該プロパティの送受信が行われる。このため、送信側と、受信側と、の間で機器オブジェクトが保持するプロパティが一致するように、ECHONET規格のバージョンが同じであることが好ましい。 In addition, in the version upgrade, there are cases where addition of device object properties, integration, etc. are performed. By the way, when the status of an electrical device connected to an ECHNET standard network is acquired from a communication device such as a PC, a property indicating the status is specified, and the property is transmitted and received. For this reason, it is preferable that the versions of the ECHONET standards are the same so that the properties held by the device object are the same between the transmission side and the reception side.
しかしながら、ECHONET規格でネットワークに接続する電気機器は、例えば燃料電池150のように頻繁に買い換えないものも多いため、接続する電子機器の間でECHONET規格のバージョンが異なるという状況が生じる可能性がある。
However, since there are many electrical devices that are connected to the network according to the ECHONET standard, such as the
このように、通信アダプタを生産・販売した後に新しいバージョンに対応したい、さらには、別の機器に接続する通信アダプタとして使用したいという要望が存在する。従来は、通信アダプタのプログラムの更新をすることでこれら要望に対応可能であった。 As described above, there is a desire to support a new version after producing and selling a communication adapter, and further to use it as a communication adapter connected to another device. Conventionally, it has been possible to meet these demands by updating the communication adapter program.
また、近年インターネットを介して、テレビなどのファームウェア等の更新する技術があるが、ECHONET規格は、電気機器の操作や状況を認識するための規格であって、このような更新は考慮されていない。さらには、燃料電池150のように、家の外に置かれる電気機器も存在する。これら電気機器は、ECHONET規格のネットワークと接続できるものの、インターネットには接続しない場合も多く、インターネットを介した自動的なバージョンアップは難しい。
In recent years, there is a technology for updating firmware such as television via the Internet. However, the ECHONET standard is a standard for recognizing the operation and situation of electric equipment, and such updating is not considered. . Further, there are electrical devices such as the
さらには、常に動作している電子機器については、常に監視を続けたいため、当該電気機器(例えば、燃料電池150)用の通信アダプタを、ECHONET規格のバージョンアップのために停止させるのは好ましくない。そこで、本実施形態では、停止せずとも、容易にECHONET規格をバージョンアップできる通信アダプタ100を備えることとした。
Furthermore, it is not desirable to stop the communication adapter for the electric device (for example, the fuel cell 150) for the upgrade of the ECHONET standard because the electronic device that is always operating is to be continuously monitored. . Therefore, in this embodiment, the
通信アダプタ100は、接続I/F101と、制御部102と、記憶媒体用インターフェース部103と、通信I/F104と、を備えている。
The
接続I/F101は、燃料電池150と接続するためのインターフェースとする。通信規格は、接続対象である燃料電池150と通信可能なものであればよい。
The connection I /
通信I/F104は、ECHONET規格で通信を行うネットワークに接続するためのインターフェースとする。
The communication I /
制御部102は、(図示しない)CPUが、図示しない内蔵用メモリ内部の各種プログラムを実行することで実現される構成であって、少なくとも通信処理部121を備えている。また、制御部102は、通信アダプタ100の起動時に各種プログラムを実行することで、通信アダプタ100全体を制御できる。
The control unit 102 is configured by a CPU (not shown) executing various programs in a built-in memory (not shown), and includes at least a
通信処理部121は、接続I/F101を介して接続された燃料電池150との間で通信処理を行うとともに、ネットワーク180を介して接続された通信装置(例えば、情報処理装置160)との間で通信処理を行う。
The
通信処理部121は、燃料電池150と通信処理を行う際に、燃料電池150が認識可能な通信規格を用いた通信処理を行う。また、通信処理部121は、ネットワーク180を介して接続された通信装置(例えば、情報処理装置160)と通信処理を行う際に、ECHONET規格に基づいた通信処理を行う。
The
本実施形態の制御部102は、通信処理などのECHONET規格のバージョンに依存しない処理を行い、バージョンに依存する処理については、外部記憶媒体105にアクセスして行う。 The control unit 102 of the present embodiment performs processing independent of the version of the ECHONET standard such as communication processing, and performs processing dependent on the version by accessing the external storage medium 105.
記憶媒体用インターフェース部103は、外部記憶媒体105を着脱可能なインターフェースであって、外部記憶媒体105が接続された際には外部記憶媒体105との間でデータの送受信を可能とするインターフェースとする。
The storage
外部記憶媒体105は、機器オブジェクト記憶領域111と、規格バージョン依存部112と、インターフェース部113と、を記憶する。本実施形態は、外部記憶媒体105として、SDカードを用いることが考えられるが、SDカードに制限するものではなく、例えば、USBメモリなど、着脱可能な記憶媒体であればよい。
The external storage medium 105 stores a device object storage area 111, a standard version
また、外部記憶媒体105は、燃料電池150に関して、ECHONET規格の任意のバージョンに依存する処理を行うために必要なプログラムと、機器オブジェクトと、が格納されている。本実施形態では、ECHONET規格の所定のバージョンに依存する処理を行うために必要なプログラム(ライブラリ)として、規格バージョン依存部112を備えている。さらに、当該任意のバージョンに対応している機器オブジェクトを、機器オブジェクト記憶領域111に格納可能とする。
In addition, the external storage medium 105 stores a program necessary for performing processing depending on an arbitrary version of the ECHONET standard for the
つまり、本実施形態の通信アダプタ100では、ECHONET規格のバージョンに依存する処理を外部記憶媒体105内で行うこととした。そして、通信アダプタ100の制御部102には、バージョンに依存する構成を含んでいないため、ECHONET規格でバージョン更新を行う際、外部記憶媒体105を交換することで実現できる。
In other words, in the
インターフェース部113は、制御部102から、記憶媒体用インターフェース部103を介してアクセスする際のアクセス形式を定義したインターフェース部とする。アクセス形式としては、例えば、機器オブジェクトが保持するプロパティに対する、設定・操作(SET)、取得(GET)、及び通知(ANNOUNCE)が考えられる。
The
規格バージョン依存部112は、外部記憶媒体105において設定されているECHONET規格のバージョンに依存する処理を行うための関数で構成されたライブラリとする。例えば、規格バージョン依存部112は、制御部102からの要求に応じて、当該バージョンに対応した機器オブジェクトに保持されている各種プロパティに対する設定・操作(SET)、取得(GET)、及び通知(ANNOUNCE)を行うための関数を保持している。
The standard version
機器オブジェクト記憶領域111は、機器の現在の状況等を有する機器オブジェクトが格納されている。格納対象となる機器オブジェクトは、燃料電池150のみではなく、燃料電池150に関連する電気機器も含まれている。
The device object storage area 111 stores device objects having the current status of the device. Device objects to be stored include not only the
図2は、本実施形態の通信アダプタ100のプログラム構成例を示した図である。図2に示されるように、通信アダプタ100は、制御部102内に、OS211と、共通処理部212と、を備えた上で、外部記憶媒体105にインターフェース部113と、規格バージョン依存部112と、を備えた構成とする。
FIG. 2 is a diagram illustrating a program configuration example of the
このように、本実施形態のプログラム構成として、ECHONET規格のバージョンに依存しない構成(通信処理部121、及び共通処理部212)を通信アダプタ100の内部メモリに格納し、バージョンに依存する構成(規格バージョン依存部112)を外部記憶媒体105に格納することとした。そして、インターフェース部113が、規格バージョンにアクセスするためのアクセス形式を定義しておく。これにより、共通処理部212が当該アクセス形式に従った要求を行うことで、規格バージョン依存部112が、当該要求に応じた処理を行う。
As described above, as the program configuration of this embodiment, a configuration (
OS211は、通信アダプタ100の全体を制御するためにインストールされたオペレーティングシステムとする。本実施形態のOS211としては、動的リンクを利用可能なオペレーションシステム(例えば、LINUX(登録商標))を用いる。
The OS 211 is an operating system installed to control the
共通処理部212は、ECHONET規格に対応する処理のうち、バージョンに依存しない処理を実行する。例えば、共通処理部212は、燃料電池150から現在の状況を表すデータを受信した場合に、外部記憶媒体105から規格バージョン依存部112を呼び出す。そして、規格バージョン依存部112は、燃料電池150の現在の状況を、自機器オブジェクト221のプロパティとして設定(SET)する。
The common processing unit 212 executes a process independent of the version among the processes corresponding to the ECHONET standard. For example, when the common processing unit 212 receives data representing the current situation from the
他の例としては、共通処理部212は、ネットワーク180に接続された通信装置(例えば情報処理装置160)から、燃料電池150のプロパティの取得要求を受信した場合に、外部記憶媒体105から規格バージョン依存部112を呼び出す。そして、共通処理部212は、規格バージョン依存部112から、自機器オブジェクト221のプロパティを取得(GET)し、通信処理部121を介して通信装置に当該プロパティを送信する。
As another example, when the common processing unit 212 receives an acquisition request for the property of the
ところで、本実施形態では、外部記憶媒体105が常にリンクされた状態にするのではなく、アクセスしなければいけない場合に動的リンクを行うこととした。 By the way, in this embodiment, the external storage medium 105 is not always linked, but is dynamically linked when access is required.
例えば、本実施形態の共通処理部212は、燃料電池150から現在の状況を表すデータを受信した場合や、プロパティの取得要求を受信した場合に、外部記憶媒体105の規格バージョン依存部112に動的リンクを行う。そして、共通処理部212は、燃料電池150から現在の状況を表すデータをプロパティとして設定した後や、プロパティを受け取った後に動的リンクを解除する。
For example, when the common processing unit 212 of the present embodiment receives data representing the current situation from the
本実施形態の共通処理部212は、外部記憶媒体105に動的リンクを行う際に、OS211が格納しているインターフェース名リストを取得する。当該インターフェース名リストには、インターフェース名と、当該インターフェースのパスと、が定義されている。そこで、共通処理部212は、外部記憶媒体105のパスを取得する。本実施形態では、インターフェースとして、外部記憶媒体105に格納されているライブラリ(例えば、規格バージョン依存部112)が設定されている。 The common processing unit 212 according to the present embodiment acquires an interface name list stored in the OS 211 when dynamically linking to the external storage medium 105. In the interface name list, an interface name and a path of the interface are defined. Therefore, the common processing unit 212 acquires the path of the external storage medium 105. In this embodiment, a library (for example, standard version dependent unit 112) stored in the external storage medium 105 is set as an interface.
そして、共通処理部212は、外部記憶媒体105に格納されているライブラリのパス(換言すれば、機器オブジェクト等にアクセスするための規格バージョン依存部112が格納されているパス)を引数として、OS211のdlopen関数を実行する。dlopen関数は、外部記憶媒体105を利用するための動的ライブラリ(規格バージョン依存部112)をロードし、動的ライブラリにアクセスするためのハンドルを返す。共通処理部212は、当該ハンドルから、外部記憶媒体105を利用するための動的ライブラリ(規格バージョン依存部112)を呼び出せる。
Then, the common processing unit 212 uses the path of the library stored in the external storage medium 105 (in other words, the path where the standard
そして、本実施形態の共通処理部212は、当該動的ライブラリに含まれている関数のポインタを取得するため、ハンドルを引数として、OS211のdlsym関数を実行する。これにより、動的にロードされたライブラリに含まれている関数を利用できる。そして、本実施形態では、インターフェース部113で定められたアクセス形式に従って、動的にロードされたライブラリに含まれている関数を利用することで、機器オブジェクトのプロパティへのアクセス(設定、取得等)を実現できる。
Then, the common processing unit 212 of the present embodiment executes the dlsym function of the OS 211 using the handle as an argument in order to obtain a pointer of the function included in the dynamic library. As a result, the functions included in the dynamically loaded library can be used. In this embodiment, access to the properties of the device object (setting, acquisition, etc.) is performed by using a function included in the dynamically loaded library in accordance with the access format determined by the
そして、外部記憶媒体105に対するアクセスが終了した場合には、dlclose関数を実行して動的ライブラリをアンロードさせる。 When the access to the external storage medium 105 is completed, the dynamic library is unloaded by executing the dlclose function.
本実施形態の通信アダプタ100では、必要に応じて外部記憶媒体105に格納されているライブラリを動的にロード/アンロードを行うこととした。
In the
本実施形態の通信アダプタ100においては、外部記憶媒体105のライブラリ(規格バージョン依存部112)が必要に応じてロードされる。このため、通常は、外部記憶媒体105のライブラリ(規格バージョン依存部112)がロードされていない状況となる。つまり、本実施形態の通信アダプタ100は、外部記憶媒体105のライブラリ(規格バージョン依存部112)が通常ロードされていないため、燃料電池150及び通信アダプタ100のうち少なくとも1つ以上が稼働中であるか否かにかかわらず、外部記憶媒体105の交換可能となる。
In the
例えば、情報処理装置160のECHONET規格のバージョンがアップした際、通信アダプタ100及び燃料電池150の稼働中に、ユーザが通信アダプタ100に接続されている外部記憶媒体105を交換できる。これにより、通信アダプタ100及び燃料電池150を停止させずに、通信アダプタ100と情報処理装置160のECHONET規格のバージョンと一致させることができる。
For example, when the version of the ECHONET standard of the
このように本実施形態では、燃料電池150などの停止させることが難しい電子機器の通信アダプタ100であっても、ECHONET規格のバージョンアップを容易に実現できる。
As described above, according to the present embodiment, even the
そして、機器オブジェクト記憶領域111は、自機器(燃料電池150)のプロパティ(属性情報)を保持する自機器オブジェクト221と、他機器のプロパティ(属性情報)を保持する他機器オブジェクト222と、を格納している。
The device object storage area 111 stores the own device object 221 that holds the property (attribute information) of the own device (fuel cell 150) and the
図3は、本実施形態の燃料電池150の自機器オブジェクト221が保持するプロパティ一覧を例示した図である。図3に示される自機器オブジェクト221の例では、プロパティ名称と、プロパティコードと、値と、が対応づけて記憶されている。図3に示される例は、ECHONET規格でクラスグループコード“0x02”、クラスコード“0x7C”の燃料電池クラスにおけるプロパティ一覧とする。そして、本実施形態の通信アダプタ100では、情報処理装置160等から指定要求を受け取った際に、プロパティコードも受け取るので、どのプロパティの値を送信すればよいのか特定できる。
FIG. 3 is a diagram illustrating a list of properties held by the own device object 221 of the
図3に示されるように、燃料電池150から取得したプロパティ(属性情報)の値として、燃料電池150の状況を計測した計測値が格納される。これらプロパティ(属性情報)の値は、燃料電池150から送信された計測値とする。
As shown in FIG. 3, a measured value obtained by measuring the state of the
また、本実施形態の機器オブジェクト記憶領域111は、自機器オブジェクト221のみではなく、自機器(燃料電池150)に関連する他の電気機器のプロパティ(属性情報)を保持する他機器オブジェクト222も格納している。これは、燃料電池150が、関連する他の電気機器の現在の状況を認識したい場合がある。このような、燃料電池150からの関連する電気機器の現在の状況の取得要求に対応するために、本実施形態の通信アダプタ100は、他機器オブジェクト222を格納している。
In addition, the device object storage area 111 of this embodiment stores not only the own device object 221 but also other device objects 222 that hold properties (attribute information) of other electric devices related to the own device (fuel cell 150). doing. This may cause the
図4は、本実施形態のネットワーク180に接続されている蓄電池の機器オブジェクトが保持するプロパティ一覧を例示した図である。図4に示される機器オブジェクトの例では、プロパティ名称と、プロパティコードと、値と、が対応づけて記憶されている。図4に示される例は、ECHONET規格でクラスグループコード“0x02”、クラスコード“0x7D”の蓄電池クラスにおけるプロパティ一覧とする。なお、各プロパティの値には、共通処理部212が通信処理部121を介して蓄電池から取得した値が格納される。
FIG. 4 is a diagram illustrating a list of properties held by the storage battery device object connected to the network 180 according to the present embodiment. In the example of the device object shown in FIG. 4, property names, property codes, and values are stored in association with each other. The example shown in FIG. 4 is a property list in the storage battery class of class group code “0x02” and class code “0x7D” in the ECHONET standard. In addition, the value which each common property part 212 acquired from the storage battery via the
図5は、本実施形態のネットワーク180に接続されている太陽光発電の機器オブジェクトが保持するプロパティ一覧を例示した図である。図5に示される機器オブジェクトの例では、プロパティ名称と、プロパティコードと、値と、が対応づけて記憶されている。図5に示される例は、ECHONET規格でクラスグループコード“0x02”、クラスコード“0x79”の太陽強発電クラスにおけるプロパティ一覧とする。なお、各プロパティの値には、共通処理部212が通信処理部121を介して蓄電池から取得した値が格納される。
FIG. 5 is a diagram illustrating a list of properties held by a photovoltaic power generation device object connected to the network 180 of the present embodiment. In the example of the device object shown in FIG. 5, property names, property codes, and values are stored in association with each other. The example shown in FIG. 5 is a property list in the solar power generation class of class group code “0x02” and class code “0x79” in the ECHONET standard. In addition, the value which each common property part 212 acquired from the storage battery via the
図4、図5に示される蓄電池や太陽光発電に関するプロパティ(属性情報)の値は、規格バージョン依存部112が動的にロードされた際に、共通処理部212に対して、蓄電池や太陽光発電のプロパティの取得要求を行うことで、格納された値とする。これにより、燃料電池150は、電力を供給する他の設備の状況を把握できるために、供給すべき電力量を推定できる。
The values of the properties (attribute information) related to the storage battery and solar power generation shown in FIGS. 4 and 5 are the same as those for the common processing unit 212 when the standard version
次に、本実施形態の通信アダプタ100におけるプロパティの送信処理について説明する。図6は、本実施形態の通信アダプタ100における上述した処理の手順を示すフローチャートである。
Next, property transmission processing in the
まず、通信処理部121が、通信I/F104を介して、情報処理装置160から、燃料電池150の自機器オブジェクト221に含まれているプロパティの取得要求を受信する(ステップS601)。
First, the
共通処理部212が、OS211から、インターフェース名リストを取得する(ステップS602)。そして、共通処理部212は、取得したインターフェース名リストから、外部記憶媒体105のライブラリ(規格バージョン依存部112)が格納されているパスを読み出す(ステップS603)。 The common processing unit 212 acquires an interface name list from the OS 211 (step S602). Then, the common processing unit 212 reads the path in which the library (standard version dependent unit 112) of the external storage medium 105 is stored from the acquired interface name list (step S603).
そして、共通処理部212は、読み出したパスを引数にして、OS211上でdlopen関数を実行し、外部記憶媒体105に格納されているライブラリ(規格バージョン依存部112)を動的にロードする(ステップS604)。 Then, the common processing unit 212 executes the dlopen function on the OS 211 using the read path as an argument, and dynamically loads the library (standard version dependent unit 112) stored in the external storage medium 105 (step) S604).
共通処理部212が、dlopen関数の実行結果として、ハンドルを取得したか否かを判定する(ステップS605)。取得していないと判定した場合(ステップS605:No)、エラーが生じているものとして、ステップS611に遷移する。 The common processing unit 212 determines whether or not a handle has been acquired as an execution result of the dlopen function (step S605). When it determines with not acquiring (step S605: No), it transfers to step S611 on the assumption that the error has arisen.
一方、共通処理部212が、ハンドルを取得したと判定した場合(ステップS605:Yes)、ハンドルを引数としてdlsym関数を実行し、ロードしたライブラリ(規格バージョン依存部112)に含まれている(プロパティを取得するための)関数のポインタを取得する(ステップS606)。 On the other hand, when the common processing unit 212 determines that the handle has been acquired (step S605: Yes), the dlsym function is executed with the handle as an argument and is included in the loaded library (standard version dependent unit 112) (property A function pointer is acquired (step S606).
さらに、共通処理部212は、dlerror関数を実行する(ステップS607)。そして、共通処理部212は、dlerror関数の実行結果から、今回の処理中にエラーが発生しているか否かを確認する(ステップS608)。エラーが発生していると判定した場合(ステップS608:Yes)、処理を終了して、ステップS611に遷移する。 Further, the common processing unit 212 executes the dlerror function (step S607). Then, the common processing unit 212 confirms from the execution result of the dlerror function whether or not an error has occurred during the current process (step S608). When it determines with the error having generate | occur | produced (step S608: Yes), a process is complete | finished and it changes to step S611.
共通処理部212は、エラーが発生していないと判定した場合(ステップS608:No)、ステップS606で取得したポインタを用いて、ロードされたライブラリ(規格バージョン依存部112)の関数を実行する(ステップS609)。図6に示す処理手順では、機器オブジェクトのプロパティの値を取得する関数を呼び出すものとする。その際、インターフェース部113で定められたアクセス形式に従うものとする。
If it is determined that no error has occurred (step S608: No), the common processing unit 212 uses the pointer acquired in step S606 to execute the function of the loaded library (standard version dependent unit 112) ( Step S609). In the processing procedure illustrated in FIG. 6, it is assumed that a function for obtaining the property value of the device object is called. At this time, it is assumed that the access format defined by the
共通処理部212は、実行結果として、機器オブジェクトのプロパティの値を取得する(ステップS610)。そして、共通処理部212は、dlclose関数を呼び出して、ステップS604でロードしたライブラリ(規格バージョン依存部112)をアンロードする(ステップS611)。 The common processing unit 212 acquires the property value of the device object as an execution result (step S610). Then, the common processing unit 212 calls the dlclose function and unloads the library (standard version dependent unit 112) loaded in step S604 (step S611).
その後、共通処理部212は、通信処理部121を介して、機器オブジェクトに含まれているプロパティの取得結果を、情報処理装置160に送信する(ステップS612)。なお、適切に取得できた場合には、取得結果はプロパティの値であり、取得できなかった場合は、取得結果はエラーが生じた旨の通知となる。
Thereafter, the common processing unit 212 transmits the acquisition result of the property included in the device object to the
本実施形態では、燃料電池の通信アダプタの例について説明したが、空調施設の通信アダプタに適用してもよい。これにより空調施設の通信アダプタと、通信装置と、の間でECHONET規格のバージョンをほぼ同時に更新することが可能となる。これにより、バージョンの更新より設定可能な温度が広がる等のメリットを享受できる。 In this embodiment, the example of the communication adapter of the fuel cell has been described. However, the communication adapter of the air conditioning facility may be applied. As a result, the version of the ECHONET standard can be updated almost simultaneously between the communication adapter of the air conditioning facility and the communication device. Thereby, the merit that the temperature which can be set spreads from the update of a version can be enjoyed.
なお、本実施形態では、電気機器間を接続するための通信規格としてECHONET規格を用いた場合について説明したが、ECHONET規格を用いた場合に制限するものではなく、他の通信規格を用いた場合に適用してもよい。 In the present embodiment, the case where the ECHONET standard is used as a communication standard for connecting between electrical devices has been described. However, the present embodiment is not limited to the case where the ECHONET standard is used, and other communication standards are used. You may apply to.
本実施形態では、ECHONET規格のバージョンに依存する構成を、外部記憶媒体105に記憶させることで、燃料電池150とともに通信アダプタ100を販売する際に、在庫品に対して、最新のバージョンが格納された外部記憶媒体105に交換して、出荷することで、消費者に対して常に最新バージョンが格納された通信アダプタ100を提供できる。
In this embodiment, by storing the configuration depending on the version of the ECHONET standard in the external storage medium 105, the latest version is stored with respect to the inventory when the
従来、最新バージョンに更新する際に、ROM等に格納されたプログラムの更新制御が行われていた。この場合に、更新制御を行う他の通信装置を通信アダプタと接続してから、更新制御を行う必要があった。しかしながら、本実施形態では、外部記憶媒体の交換でよいため、プログラム書き換えの際の負担を軽減することができる。 Conventionally, when updating to the latest version, update control of a program stored in a ROM or the like has been performed. In this case, it is necessary to perform update control after connecting another communication device that performs update control to the communication adapter. However, in the present embodiment, it is only necessary to replace the external storage medium, so that the burden at the time of rewriting the program can be reduced.
本実施形態の通信アダプタ100では、バージョンに依存しない構成と、バージョンに依存する構成と、を分けたことで、バージョンの更新があった際に、バージョンに依存する構成のみ開発すればよいため、開発負担を軽減することができる。
In the
さらに、本実施形態の通信アダプタ100では、バージョンに依存する構成を外部記憶媒体に格納することで、当該外部記憶媒体の差し替えでバージョンの更新を行うことができるため、更新負担を軽減できる。例えば、メーカー担当者が現地でプログラムの書換えを行う必要を抑止できる。また、外部記憶媒体へのプログラムのダウンロードは容易なため、さらなる更新負担を軽減できる。
Furthermore, in the
また、本実施形態の通信アダプタ100では、外部記憶媒体105のプログラムは、生産後や販売後にユーザの手でPC等からダウンロードを行い差し替えることが可能となり、更新負担を軽減できる。
Further, in the
また、本実施形態の通信アダプタ100では、動的リンクの機能を用いて、必要に応じてアクセスするようにして、常にリンクさせておく必要がないため、容易に外部記憶媒体105の交換が可能となり、更新負担を軽減できる。また、バージョンアップする際に、通信アダプタ100や接続先の電気機器(燃料電池150)を停止させる必要がないため、交換時の負担を軽減できる。
In the
本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.
100…通信アダプタ、101…接続I/F、102…制御部、103…記憶媒体用インターフェース部、104…通信I/F、105…外部記憶媒体、111…機器オブジェクト記憶領域、112…規格バージョン依存部、113…インターフェース部、121…通信処理部、150…燃料電池、160…情報処理装置、180…ネットワーク、211…OS、212…共通処理部、221…自機器オブジェクト、222…他機器オブジェクト
DESCRIPTION OF
Claims (6)
所定の通信規格で通信を行うネットワークに接続するための通信インターフェースと、
前記所定の通信規格で定められた任意のバージョンに対応した処理を行うバージョン依存プログラムと、前記バージョン依存プログラムを用いて設定された前記電子機器の属性情報と、を記憶する記憶媒体を着脱可能な接続部と、
前記ネットワークに接続された通信装置から、前記通信インターフェースを介して前記電気機器の前記属性情報の取得要求を受信した場合に、前記接続部に接続された前記記憶媒体から前記バージョン依存プログラムを呼び出して前記属性情報を取得し、前記属性情報を、前記通信装置に送信する制御部と、
を備える通信アダプタ。 A connection interface for connecting to electrical equipment;
A communication interface for connecting to a network that performs communication according to a predetermined communication standard;
A storage medium for storing a version-dependent program that performs processing corresponding to an arbitrary version defined by the predetermined communication standard and the attribute information of the electronic device set by using the version-dependent program is removable. A connection,
When receiving the attribute information acquisition request of the electrical device from the communication device connected to the network via the communication interface, the version-dependent program is called from the storage medium connected to the connection unit. A controller that acquires the attribute information and transmits the attribute information to the communication device;
Communication adapter comprising.
請求項1に記載の通信アダプタ。 The control unit further performs dynamic linking of the version-dependent program so that the attribute information can be accessed when the acquisition request is received, and after receiving the attribute information from the storage medium, the version-dependent program Unlink the program dynamically,
The communication adapter according to claim 1.
請求項1又は2に記載の通信アダプタ。 The connection unit is configured to be exchangeable with the storage medium during operation of the electronic device.
The communication adapter according to claim 1 or 2.
請求項1乃至3のいずれか一つに記載の通信アダプタ。 The predetermined communication standard is an ECHONET (registered trademark) standard.
The communication adapter according to any one of claims 1 to 3.
前記接続部が、前記燃料電池から取得した前記属性情報として、前記燃料電池の状況を計測した計測値を記憶した記憶媒体を接続可能である、
請求項1乃至4のいずれか一つに記載の通信アダプタ。 The communication interface is for connecting a fuel cell as the electronic device to the network;
The connection unit is connectable to the storage medium storing the measurement value obtained by measuring the state of the fuel cell as the attribute information acquired from the fuel cell.
The communication adapter according to any one of claims 1 to 4.
前記記憶媒体は、所定の通信規格で定められた任意のバージョンに対応した処理を行うバージョン依存プログラムと、前記バージョン依存プログラムを用いて設定された前記電子機器の属性情報と、を記憶し、
前記通信アダプタは、
電気機器と接続するための接続インターフェースと、
所定の通信規格で通信を行うネットワークに接続するための通信インターフェースと、
前記記憶媒体を着脱可能な接続部と、
前記ネットワークに接続された通信装置から、前記通信インターフェースを介して前記電気機器の前記属性情報の取得要求を受信した場合に、前記接続部に接続された前記記憶媒体から前記バージョン依存プログラムを呼び出して前記属性情報を取得し、前記属性情報を、前記通信装置に送信する制御部と、
を備える、
通信システム。 A communication system including a communication adapter and a storage medium,
The storage medium stores a version-dependent program that performs processing corresponding to an arbitrary version defined by a predetermined communication standard, and attribute information of the electronic device set using the version-dependent program,
The communication adapter is
A connection interface for connecting to electrical equipment;
A communication interface for connecting to a network that performs communication according to a predetermined communication standard;
A connection part to which the storage medium is detachable;
When receiving the attribute information acquisition request of the electrical device from the communication device connected to the network via the communication interface, the version-dependent program is called from the storage medium connected to the connection unit. A controller that acquires the attribute information and transmits the attribute information to the communication device;
Comprising
Communications system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014055652A JP6337542B2 (en) | 2014-03-18 | 2014-03-18 | Communication adapter and communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014055652A JP6337542B2 (en) | 2014-03-18 | 2014-03-18 | Communication adapter and communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015179913A true JP2015179913A (en) | 2015-10-08 |
JP6337542B2 JP6337542B2 (en) | 2018-06-06 |
Family
ID=54263700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014055652A Expired - Fee Related JP6337542B2 (en) | 2014-03-18 | 2014-03-18 | Communication adapter and communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6337542B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6146551B1 (en) * | 2016-07-01 | 2017-06-14 | 中国電力株式会社 | Device control system control method, device control system, and adapter |
JP6176418B1 (en) * | 2016-07-01 | 2017-08-09 | 中国電力株式会社 | Device control system control method, device control system, and adapter |
JP2017175828A (en) * | 2016-03-25 | 2017-09-28 | 株式会社ノーリツ | Communication adapter apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002223402A (en) * | 2001-01-29 | 2002-08-09 | Fuji Photo Film Co Ltd | Electronic device, program update method, setup file generator and its method |
JP2005184551A (en) * | 2003-12-19 | 2005-07-07 | Matsushita Electric Ind Co Ltd | Communication apparatus, communication control method and communication control program |
US20070124627A1 (en) * | 2004-03-26 | 2007-05-31 | Toshiaki Katano | Communication processing device, home electric device, and home network system |
-
2014
- 2014-03-18 JP JP2014055652A patent/JP6337542B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002223402A (en) * | 2001-01-29 | 2002-08-09 | Fuji Photo Film Co Ltd | Electronic device, program update method, setup file generator and its method |
JP2005184551A (en) * | 2003-12-19 | 2005-07-07 | Matsushita Electric Ind Co Ltd | Communication apparatus, communication control method and communication control program |
US20070124627A1 (en) * | 2004-03-26 | 2007-05-31 | Toshiaki Katano | Communication processing device, home electric device, and home network system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017175828A (en) * | 2016-03-25 | 2017-09-28 | 株式会社ノーリツ | Communication adapter apparatus |
JP6146551B1 (en) * | 2016-07-01 | 2017-06-14 | 中国電力株式会社 | Device control system control method, device control system, and adapter |
JP6176418B1 (en) * | 2016-07-01 | 2017-08-09 | 中国電力株式会社 | Device control system control method, device control system, and adapter |
WO2018003116A1 (en) * | 2016-07-01 | 2018-01-04 | 中国電力株式会社 | Control method for appliance control system, appliance control system, and adapter |
WO2018003118A1 (en) * | 2016-07-01 | 2018-01-04 | 中国電力株式会社 | Control method for appliance control system, appliance control system, and adapter |
Also Published As
Publication number | Publication date |
---|---|
JP6337542B2 (en) | 2018-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10866799B2 (en) | Remote management of electronic products | |
US11494494B2 (en) | Apparatus with exchangeable communication module and application module, application module, and method | |
CN102445928B (en) | Field device with self description | |
CN102648562B (en) | Method for setting parameters of a field device power-supply module | |
US20120060151A1 (en) | System and method for updating firmware | |
WO2017066301A1 (en) | Automatic distribution of device parameters for commissioning portions of a disconnected process control loop | |
CN105389249B (en) | Abnormal log generates configuration method and abnormal log generates configuration device | |
JP6337542B2 (en) | Communication adapter and communication system | |
JP5453344B2 (en) | Communication adapter, controller and network system | |
US9894523B2 (en) | Wireless device customization resources | |
WO2019244751A1 (en) | Device control method, control apparatus, and system | |
JP2014174755A (en) | Power consumption measurement device, power consumption measurement method, and power consumption measurement program | |
WO2020056585A1 (en) | Program file writing and running processing method, device and system | |
KR20180096333A (en) | Remote management of Smart meter Application equipped scalable DLMS/COSEM protocol | |
KR20200005130A (en) | Method And System for Updating Sensor Profile | |
WO2014016968A1 (en) | Communication adaptor, controller, and network system | |
CN117806671A (en) | Power supply system upgrading method, device, equipment and storage medium | |
WO2022177565A1 (en) | Electronic device transit mode | |
JP2019220190A (en) | Device control method, control apparatus, and system | |
JP2017146784A (en) | Measuring system and communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170214 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171211 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180130 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180301 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180313 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180402 |
|
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: 20180410 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180423 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6337542 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |