JP5975396B2 - Device management system, management device and device used therefor - Google Patents
Device management system, management device and device used therefor Download PDFInfo
- Publication number
- JP5975396B2 JP5975396B2 JP2012261873A JP2012261873A JP5975396B2 JP 5975396 B2 JP5975396 B2 JP 5975396B2 JP 2012261873 A JP2012261873 A JP 2012261873A JP 2012261873 A JP2012261873 A JP 2012261873A JP 5975396 B2 JP5975396 B2 JP 5975396B2
- Authority
- JP
- Japan
- Prior art keywords
- management
- protocol
- conversion
- conversion module
- management system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本発明は、機器を管理する機能を持つ管理装置を備えた機器管理システム、それに用いられる管理装置および機器に関する。 The present invention relates to a device management system including a management device having a function of managing devices, and a management device and a device used therefor .
従来から、複数の管理装置と、管理装置により管理される家電製品やコンピュータ等の機器(エージェント)とからなる機器管理システム(管理システム)が提案されている(たとえば特許文献1参照)。 Conventionally, a device management system (management system) including a plurality of management devices and devices (agents) such as home appliances and computers managed by the management device has been proposed (for example, see Patent Document 1).
ところで、この種の機器管理システムにおいては、異なるベンダの管理装置が用いられることがあり、このような場合に、異なるベンダの管理装置間でも通信可能となる相互接続用の標準プロトコルが用いられる。ただし、相互接続用の標準プロトコルはベンダ間で合意した約束事であるから、このような標準プロトコルを利用した通信からは最大公約数的なデータしか得られず、ベンダ独自のデータ形式や通信方式にまで完全に対応することはできない。 By the way, in this type of device management system, management devices of different vendors may be used. In such a case, a standard protocol for interconnection that enables communication between management devices of different vendors is used. However, because the standard protocol for interconnection is a convention agreed between the vendors, communication using such a standard protocol can only obtain the greatest common divisor data, and the vendor's own data format and communication method. Can not fully respond.
そこで、特許文献1では、第1の管理装置−機器間の通信プロトコルと、第2の管理装置−機器間の通信プロトコルとが異なっている場合でも、第1の管理装置−第2管理装置間で管理情報を送受信できるように、第1の管理装置が通信プロトコルの変換を行う。具体的には、第1の管理装置は、第2の管理装置との通信プロトコルを決定するように、試験用コマンドを第2の管理装置に送信し、第2の管理装置から正常な応答があればその通信プロトコルを使用することを決定する。このように、第1の管理装置は、第2の管理装置−機器間の通信プロトコルを割り出した後に、この通信プロトコルを自身の使用する通信プロトコルの形式に変換することで第2の管理装置と管理情報の送受信を行う。
Therefore, in
ところで、近年では、機器にWebサーバとしての機能を付加することにより、Webブラウザ機能を有する汎用のコンピュータ等を管理装置として使用できるようにした機器管理システムが提供されている。しかし、特許文献1に記載の構成では、第1の管理装置は、異なる通信プロトコル間でコマンドや伝送方式などを変換するための変換形式を予め複数記憶し、且つこの変換形式に従って通信プロトコルの変換を行うプロトコル変換部を有している。すなわち、第1の管理装置にてプロトコル変換を行うためには、第1の管理装置に変換形式を記憶した記憶部やプロトコル変換部が必要であるから、Webブラウザ機能を有する汎用のコンピュータ等をそのまま第1の管理装置として使用することはできない。
By the way, in recent years, a device management system has been provided in which a general-purpose computer having a web browser function can be used as a management device by adding a function as a web server to a device. However, in the configuration described in
また、管理装置ではなく機器でプロトコル変換を行わせることも考えられるが、そうすると、プロトコル変換の分だけ機器側の処理負荷が大きくなり、限られたリソースを持つ組み込み機器などでは対応できない可能性がある。 In addition, it is conceivable that protocol conversion is performed by a device instead of a management device, but in that case, the processing load on the device side increases by the amount of protocol conversion, and there is a possibility that it cannot be supported by an embedded device having limited resources. is there.
本発明は上記事由に鑑みて為されており、管理装置でプロトコル変換を行いながらも、汎用のコンピュータ等を管理装置として使用可能な機器管理システム、それに用いられる管理装置および機器を提供することを目的とする。 The present invention has been made in view of the above reasons, and provides a device management system that can use a general-purpose computer or the like as a management device while performing protocol conversion in the management device, and a management device and a device used therefor. Objective.
本発明の機器管理システムは、管理装置と、前記管理装置との間で第1のプロトコルで通信する第1の機器と、前記第1のプロトコルとは異なる第2のプロトコルで通信する第2の機器とを備え、前記第1の機器は、プロトコル変換用の関数群からなる変換モジュールと、前記変換モジュールを用いて前記第1のプロトコルと前記第2のプロトコルとの間でプロトコル変換を行うための変換情報を記憶した記憶部とを有し、前記管理装置は、前記第1の機器から前記変換モジュールおよび前記変換情報を取得する取得部と、前記第2の機器との通信時に、前記変換情報に従い前記変換モジュールを用いて、前記第1のプロトコルと前記第2のプロトコルとの間でプロトコル変換を行うように機能する処理部とを有し、前記変換モジュールを取得するためのスクリプトを含むファイルを前記第2の機器が保持しており、前記管理装置は、前記ファイルを前記第2の機器から読み込み、前記ファイル内の前記スクリプトに従って、前記取得部にて前記第1の機器から前記変換モジュールを取得することを特徴とする。 The device management system of the present invention includes a management device, a first device that communicates with the management device using a first protocol, and a second device that communicates using a second protocol different from the first protocol. and a device, wherein the first equipment performs protocol conversion between said first protocol and said second protocol using a conversion module comprising a set of functions for protocol conversion, the conversion module and a memorized storing unit conversion information for the management device includes an acquisition unit for acquiring the first equipment or we said conversion module and said conversion information, when communicating with the second device , using the conversion module in accordance with the conversion information, possess a processing unit that functions to make a protocol conversion between said first protocol and said second protocol, preparative said conversion module The second device holds a file including a script for performing the operation, and the management device reads the file from the second device, and the acquisition unit performs the first reading according to the script in the file. The conversion module is obtained from one device .
この機器管理システムにおいて、前記第1の機器および前記第2の機器は、Webページを提供するWebサーバとしての機能を有しており、前記管理装置は、前記第1の機器および前記第2の機器から提供されるWebページを表示するWebブラウザとしての機能を有することが望ましい。 In the device management system, the first device and the second device have a function as a Web server that provides a Web page, and the management device includes the first device and the second device. It is desirable to have a function as a Web browser that displays a Web page provided from the device.
この機器管理システムにおいて、前記第1の機器は、前記第2の機器と直接通信するための通信路を構築するトンネル機能を有し、前記管理装置は、前記トンネル機能にて構築される通信路を用いて、前記第1の機器を経由して前記第2の機器と通信するように構成されていることがより望ましい。
また、本発明の管理装置は、前記機器管理システムにおいて前記管理装置として用いられることを特徴とする。
また、本発明の機器は、前記機器管理システムにおいて前記第1の機器または前記第2の機器として用いられることを特徴とする。
In this equipment management system, the first equipment has a tunnel function for constructing a communication path for directly communicating with the second equipment, and the management apparatus is a communication path constructed by the tunnel function. More preferably, it is configured to communicate with the second device via the first device.
The management apparatus of the present invention is used as the management apparatus in the device management system.
The device of the present invention is used as the first device or the second device in the device management system.
本発明の構成によれば、第1の機器と第2の機器との一方は、変換モジュールと、変換情報を記憶した記憶部とを有し、管理装置は、変換モジュールおよび変換情報を取得する取得部と、処理部とを有し、処理部が、第2の機器との通信時にプロトコル変換を行うように機能する。したがって、本発明は、管理装置でプロトコル変換を行いながらも、汎用のコンピュータ等を管理装置として使用可能であるという利点がある。 According to the configuration of the present invention, one of the first device and the second device has the conversion module and the storage unit that stores the conversion information, and the management device acquires the conversion module and the conversion information. An acquisition unit and a processing unit are included, and the processing unit functions to perform protocol conversion when communicating with the second device. Therefore, the present invention has an advantage that a general-purpose computer or the like can be used as a management apparatus while performing protocol conversion in the management apparatus.
(実施形態1)
本実施形態の機器管理システムは、図1に示すように、共通の伝送路3に接続された第1の管理装置11と、第1の管理装置11との間で第1のプロトコルで通信する第1の機器21とを備えている。さらに、本実施形態では、機器管理システムは、第1のプロトコルとは異なる第2のプロトコルに対応した第2の機器22と、第2の機器22との間で第2のプロトコルで通信する第2の管理装置12とを備えている。言い換えれば、第1の管理装置11と第1のプロトコルで直接通信可能な機器が第1の機器21であり、第1の管理装置11と第1のプロトコルで通信することができない機器が第2の機器22である。
(Embodiment 1)
As shown in FIG. 1, the device management system according to the present embodiment communicates with a first protocol between a
以下、第1の管理装置11のことを単に「管理装置1」ともいい、第1の機器21と第2の機器22とを特に区別しない場合には単に「機器2」という。なお、図1の例では、管理装置と機器2とは2台ずつ設けられているが、管理装置および機器2の台数をこの例に限定する趣旨ではない。
Hereinafter, the
機器2は、被制御対象の端末4と接続されており、これらの端末4と共に、たとえばオフィスビルのような建物内の空間において種々のサブシステムを構築するサブシステムユニットである。つまり、各機器2にはそれぞれ複数台の端末4が接続されており、各機器2は、それら複数台の端末4を集中監視制御するサブシステムユニットを構築する。ここで、機器2は限られたリソースを持つ組み込み機器である。
The
より具体的には、機器2は、たとえば各種センサなどの監視端末、および照明機器や空調機器などの動作を制御する制御端末が端末4として接続されており、これらの端末4と共に照明制御システムや空調制御システムなどのサブシステムを構築する。したがって、各サブシステムにおいては、機器2が複数台の端末4を集中的に監視および制御することが可能である。
More specifically, the
ここで、第1の機器21および第2の機器22は、Webページを提供するWebサーバとしての機能を有している。機器2は、サブシステム内の電力消費量や動作状況、センサ出力などの様々な情報を、Webページとして提供する。
Here, the
なお、機器2は、それ自身がたとえば各種センサなどの監視端末、および照明機器や空調機器などの動作を制御する制御端末であってもよい。図1の例では、第2の機器22にのみ端末4が接続されており、第1の機器21には端末4は接続されていない。
Note that the
管理装置1は、Webブラウザの機能が搭載された汎用のパーソナルコンピュータからなり、これにより、建物内の各所に散在する複数のサブシステムを上位レベルで連携、連動することで全体最適化が可能な通信ネットワークを構築する。管理装置1は、第1の機器21および第2の機器22から提供されるWebページをWebブラウザにより表示する。ここで、本実施形態の機器管理システムは、オープンプロトコルに準拠しており、管理装置1は、様々なベンダの機器2と通信可能に構成されている。つまり、管理装置1は、建物内の複数のサブシステムを相互に接続することで建物全体の監視と制御を可能とする。ただし、管理装置1は、Webブラウザの機能を有する汎用のコンピュータ等であればよいので、パーソナルコンピュータに限らない。
The
なお、管理装置1は、イーサネット(登録商標)に準拠した伝送路3により機器2と有線接続されていてもよいし、機器2との間で無線通信する構成であってもよい。また、管理装置1は、インターネットなどの公衆網を介して、機器2と通信する構成であってもよい。第2の管理装置12も、基本的な構成は第1の管理装置11と同様である。
Note that the
ところで、相互接続用の標準プロトコルはベンダ間で合意した約束事であるから、このような標準プロトコルを利用した通信からは最大公約数的なデータしか得られず、ベンダ独自のデータ形式や通信方式にまで完全に対応することはできない。たとえば、機器2がサブシステム内の電力消費量を系統別に管理している場合でも、ベンダの異なる管理装置1は、標準プロトコルを利用した通信でサブシステム全体の電力消費量を表示することはできても、系統別の電力消費量までは表示できないことがある。
By the way, because the standard protocol for interconnection is an agreement agreed between vendors, only the greatest common divisor data can be obtained from communication using such a standard protocol. Can not fully respond. For example, even when the
そこで、本実施形態では、管理装置1は、プロトコル変換を行って異なるプロトコルの機器2とも通信を行うことによって、ベンダ独自のデータ形式や通信方式にまで対応するように構成されている。以下では、第1の機器21から収集した電力消費量をグラフ化して表示する機能を有する管理装置1が、本来、この機能に対応していない第2の機器22から収集した電力消費量についてもグラフ化して表示する場合を例として説明する。つまり、以下に例示する管理装置1は、第2の機器22から収集した電力消費量についても、第1の機器21から収集した電力消費量と同じように扱うことができ、両方の電力消費量を1つのグラフ内に並べて表示する。
Therefore, in the present embodiment, the
具体的には、図1に示すように、第1の機器21は、プロトコル変換用の関数群からなる変換モジュール211と、変換モジュールを用いて第1のプロトコル−第2のプロトコル間でプロトコル変換を行うための変換情報を記憶した記憶部212とを有している。また、管理装置1は、CPU(Central Processing Unit)を主構成とする処理部111と、第1の機器21から変換モジュール211および変換情報を取得する取得部112とを有している。
Specifically, as illustrated in FIG. 1, the
変換モジュール211は、少なくとも第1のプロトコル−第2のプロトコル間でのプロトコル変換に必要な関数群からなり、第1の機器21に予め設定されている。
The
記憶部212は、通信先となる第2の機器22のアドレスおよび第2の機器22との通信方式が定められた情報を変換情報として予め記憶している。ここでいう変換情報は、通信先の識別情報(たとえばIPアドレスや品番)とデータ変換方法とを対にした情報である。データ変換方法とは、第2の機器22が持つ情報(電力消費量など)を、その表現(独自プロトコルの電文、CSVファイル、HTML(Hyper Text Markup Language)中の文字列)を解釈して抽出し、第1のプロトコルに変換する方法を意味している。本実施形態では、変換情報は少なくとも第1のプロトコル−第2のプロトコル間でのプロトコル変換の手順および必要なパラメータを含むプログラムである。
The
ここで、記憶部212は、通信先として複数種類の機器2に対応できるように、それぞれ異なる種類の第2のプロトコルに対応した複数の変換情報を記憶していてもよい。この場合、いずれの変換情報を使用するかは、管理装置1の操作によりユーザが任意に選択すればよい。また、第1の機器21が、ソフトウェアのアップデートなどに対応した機器であれば、記憶部212に記憶されている変換情報は、第1の機器21のソフトウェアのアップデートに併せて更新されてもよい。
Here, the
処理部111は、第2の機器22との通信時に、変換情報に従い変換モジュール211を用いて、第1のプロトコル−第2のプロトコル間でプロトコル変換を行うように機能する。つまり、管理装置1は、第1の機器21から取得部112にて変換モジュール211および変換情報を取得し、この変換情報を処理部111にて実行することにより、処理部111が変換モジュール211を用いてプロトコル変換の処理を実施する。
The
さらに、本実施形態では、第2の機器22は、第1の機器21のHTMLファイルである「proxy.html」を保持している。このHTMLファイルには、変換モジュール211を取得部112に取得させるためのスクリプトが含まれている。
Furthermore, in the present embodiment, the
また、管理装置1は、Webブラウザの標準の機能として、メインのWebページである親ページ(メインページ)内に、任意のサイズのインラインフレーム(iframe)を表示する機能を有している。親ページ内の処理とインラインフレーム内の処理とは互いに独立しており、以下では、管理装置1の処理部111のうち、親ページ10内の処理を担う部分を基本処理部とし、インラインフレーム内の処理を担う部分を応用処理部とする。
Further, the
次に、本実施形態の機器管理システムの動作について図2〜4を参照して説明する。なお、図2では第2の管理装置12の図示を省略しており、「10」が管理装置1の親ページ、「101」がインラインフレームを表している。
Next, the operation of the device management system of this embodiment will be described with reference to FIGS. In FIG. 2, the
まず、管理装置1は、Webブラウザにより親ページ10上で第1の機器21の監視画面にログインする。それから、管理装置1は、取得部112にて第1の機器21から変換情報を取得する(図2のS1)。このとき、第1の機器21は、記憶部212内の変換情報をHTML形式にして管理装置1に送信する。管理装置1は、変換情報を受信すると、この変換情報に従って図3に示す処理を実行する。
First, the
すなわち、管理装置1は、図3に示すように第1の機器21との通信時には(S11:Yes)、第1のプロトコルでHTTP(Hyper Text Transfer Protocol)リクエストを行い、第1の機器21からの応答を待つ(S12)。第1の機器21から電力消費量の応答があれば、管理装置1は、その内容に従って第1の機器21の電力消費量をグラフ化した第1の機器21の監視画面を生成し、画面表示を更新して第1の機器21の電力消費量を親ページ10にグラフ表示する(S13)。
That is, as shown in FIG. 3, the
一方、第2の機器22との通信時には(S11:No)、管理装置1は、親ページ10中にサイズ0(ゼロ)のインラインフレーム101を生成する(S14)。なお、図2ではインラインフレーム101内の処理を明確にするためにある程度の大きさを持つインラインフレーム101を図示しているが、実際にサイズ0のインラインフレーム101は管理装置1の画面上には表示されない。ただし、応用処理部は、親ページ10のバックグラウンドで、基本処理部とは別にインラインフレーム101内の処理を継続することになる。
On the other hand, when communicating with the second device 22 (S11: No), the
そして、管理装置1は、応用処理部にて第2の機器22からHTMLファイル(proxy.html)を読み込み(図2のS2)、リクエストに必要な情報をこのHTMLファイルに送信し、インラインフレーム101からの応答を待つ(S15)。
Then, the
インラインフレーム101内での処理S15について詳しく述べると、管理装置1は、まずHTMLファイル内に埋め込まれているスクリプトタグに従って、第1の機器21から変換モジュール211をインラインフレーム101内に読み込む(図2のS3)。これにより、管理装置1は、変換モジュール(transform.js)211に定義されている処理をインラインフレーム101内で応用処理部にて実行する。図4は、変換モジュール211に定義されている処理を表している。
The processing S15 in the
すなわち、管理装置1は、応用処理部にて変換モジュール211を読み込むと、第1の機器21の監視画面(親ページ10)からのリクエストを待つ(図4のS151)。リクエストがあると(S151:Yes)、管理装置1は、応用処理部から第2の機器22に対して第2のプロトコルでのHTTPリクエストを行い、第2の機器22からの応答を待つ(S152)。ここで、リクエスト元になるHTMLファイルは第2の機器22に配置されたファイルであるから、管理装置1は第2の機器22に対して自由にHTTPリクエストを行うことができる。
In other words, when the
第2の機器22から電力消費量の応答があれば、管理装置1は、インラインフレーム101内で応用処理部にて応答の電文(第2のプロトコル)を第1のプロトコルに変換する(S153)。管理装置1は、第1のプロトコル形式に変換された第2の機器22からの応答を、親ページ10を表示している基本処理部に出力する(S154)。これにより、管理装置1は、画面表示を更新することにより、基本処理部にて第1の機器21と第2の機器22との両方の電力消費量を親ページ10に並べてグラフ表示することができる(図3のS13)。
If there is a power consumption response from the
なお、管理装置1は、第1の機器21に配置されている変換モジュール211の全部を第1の機器21から読み込んでもよいし、一部のみを第1の機器21から読み込んでもよい。一部のみを読み込む場合、管理装置1は、第1のプロトコル−第2のプロトコル間でのプロトコル変換に必要な分の変換モジュール211を変換情報から判断し、その分の変換モジュール211を選択的に読み込む。
Note that the
ここにおいて、上述したように親ページ10からインラインフレーム101へのリクエスト送信時(S151)や、インラインフレーム101から親ページ10への第2の機器22の応答の出力時(S154)には、異なるページ間でのデータの授受が必要になる。言い換えれば、基本処理部と応用処理部とが異なるドメインと通信している際に、基本処理部と応用処理部との間でデータを授受する必要がある。そのためには、Webブラウザにおけるクロスドメイン通信の技術が前提となるので、この点について簡単に説明する。
Here, as described above, it differs when the request is transmitted from the
すなわち、一般的に、Webブラウザは、異なるドメイン(プロトコル、ホスト、ポートのいずれかが自ホストと異なる通信相手)に対して、JavaScript(登録商標)による通信ができない制約がある。そのため、本実施形態では、この制約を回避して異なるドメインと通信する方法が必要であるので、一例としてwindow.name方式とPostMessage方式とのいずれかを採用する。PostMessage方式に対応したWebブラウザではPostMessage方式を使い、対応していないWebブラウザではwindow.name方式を使う。 In other words, in general, there is a restriction that a Web browser cannot perform communication using JavaScript (registered trademark) to a different domain (a communication partner whose protocol, host, or port is different from its own host). Therefore, in the present embodiment, a method for avoiding this restriction and communicating with different domains is necessary. Either the name method or the PostMessage method is adopted. The PostMessage method is used in a Web browser that supports the PostMessage method, and the window. Use the name method.
以下に、window.name方式の動作を、管理装置1がホストAの機器のWebページからホストBの機器のデータを取得して処理する場合を例に説明する。この場合、管理装置1は、ホストAのWebページにサイズ0(ゼロ)のインラインフレーム(iframe)を生成し、インラインフレームの「window.name」にホストBへのリクエスト用のパラメータを設定する。それから、管理装置1は、インラインフレームの「href」を設定する。これにより、インラインフレームにホストBの「proxy.html」が読み込まれる。「href」に設定するURLのハッシュタグには、ホストBの応答取得後に遷移するホストA上のURL(「return_URL」)を記載する。「return_URL」は、ホストA上のURLであればよく、画像ファイルのURLなどでもよい。
In the following, window. The operation of the name method will be described by taking as an example a case where the
それ以降、管理装置1は、インラインフレームの「href」が「return_URL」になるまで、定期的にポーリングして確認する。インラインフレームの「href」が「return_URL」になれば、管理装置1は、「window.name」に設定されたホストBからの応答を取得する。
Thereafter, the
一方で、管理装置1は、ホストBのページ(「proxy.html」)での処理として、まず「window.name」からホストBへのリクエストに必要なパラメータを取得する。それから、管理装置1は、ホストBにHTTPリクエストを行い、ホストBからの応答を取得し、その応答を「window.name」に設定する。そして、管理装置1は、自ページ(インラインフレーム)の「href」を「return_URL」に変更する(ページ遷移)。
On the other hand, the
なお、クロスドメイン通信を可能とする技術としては、上記の例に限らず、たとえばWebブラウザの設定変更によりクロスドメイン通信を許可する方法などもある。また、最初からクロスドメイン通信可能な環境では、HTMLファイル(proxy.html)が第2の機器22でなく第1の機器21に配置されていたとしても、管理装置1は、このHTMLファイルから第2の機器22のデータにアクセスできる。
The technology that enables cross-domain communication is not limited to the above example, and there is, for example, a method of permitting cross-domain communication by changing the setting of a Web browser. Also, in an environment where cross-domain communication is possible from the beginning, even if the HTML file (proxy.html) is arranged in the
以上説明した本実施形態の機器管理システムによれば、管理装置1は、第2の機器22との通信時に、処理部111が、変換情報に従い変換モジュール211を用いて、第1のプロトコル−第2のプロトコル間でプロトコル変換を行うように構成されている。要するに、プロトコル変換は機器2ではなく管理装置1で行われるので、機器2がたとえば限られたリソースを持つ組み込み機器である場合にも、十分対応できるという利点がある。さらに、充実した開発環境(HTML、JavaScript(登録商標)等)やライブラリを活用できるので、各種の変換モジュール211は短期間、低コストで開発できる。
According to the device management system of the present embodiment described above, the
また、プロトコル変換に必要な変換モジュール211および変換情報を記憶した記憶部212は第1の機器21が有しており、管理装置1は、第1の機器21から変換モジュール211および変換情報を取得する取得部112を有している。したがって、管理装置1は、元々、プロトコル変換を行うための変換情報を記憶した記憶部や変換モジュールを有している必要はなく、第1の機器21から取得した変換情報に従って変換モジュール211を用いてプロトコル変換を行う処理部111があればよい。すなわち、本実施形態の機器管理システムは、管理装置1にてプロトコル変換を行いながらも、Webブラウザ機能を有する汎用のコンピュータ等を管理装置1として使用することができる。
The
要するに、本実施形態に係る機器管理システムによれば、管理装置1でプロトコル変換を行いながらも、汎用のコンピュータ等を管理装置1として使用可能であるという利点がある。
In short, the device management system according to the present embodiment has an advantage that a general-purpose computer or the like can be used as the
また、本実施形態では、変換モジュール211および記憶部212を第1の機器21が有しているので、管理装置1は、特別な処理を必要とすることなく、変換モジュール211および変換情報を取得することができる。
In the present embodiment, since the
さらにまた、管理装置1は、第2の機器22から取得したHTMLファイル(proxy.html)に従って、第1の機器21から変換モジュール211を取得するので、変換モジュール211をインラインフレーム内で動作させることができる。つまり、第1の機器21に対応したHTMLファイルが第2の機器22に予め配置されていれば、管理装置1は、基本処理部とは別の応用処理部にて変換モジュール211を読み込んで変換モジュール211を動作させることができる。
Furthermore, since the
したがって、管理装置1は、メインである第1の機器21の監視画面(親ページ)においては、第2のプロトコルを意識することなく、第2の機器22を第1の機器21と同じように扱うことできる。しかも、変換モジュール211にバグがあった場合でも、管理装置1は、メインである第1の機器21の監視画面の表示動作については継続することができる。なお、この構成に限らず、管理装置1は、変換モジュール211および変換情報を、親ページとインラインフレームとの少なくとも一方に読み込むことで、プロトコル変換を行うことが可能である。すなわち、管理装置1は、変換モジュール211および変換情報を、親ページとインラインフレームとの一方にまとめて読み込んでもよいし、親ページに変換モジュール211、インラインフレームに変換情報を読み込んでもよい。
Therefore, the
ところで、本実施形態の他の構成例として、図5に示すように、第1の機器21は、第2の機器22と直接通信するための通信路を構築(トンネリング)するトンネル機能213を有していてもよい。この構成では、管理装置1は、トンネル機能213にて構築される通信路を用いて、第1の機器21を経由して第2の機器22と通信するように構成されている。そのため、第2の機器22が管理装置1のWebブラウザではアクセスできないHTTP通信以外のプロトコルを採用しているような場合でも、管理装置1は第2の機器22からの応答を取得することができる。なお、図5では第2の管理装置12の図示を省略しており、「10」が管理装置1の親ページ、「101」がインラインフレームを表している。
Incidentally, as another configuration example of the present embodiment, as shown in FIG. 5, the
具体的に説明すると、図5の構成では、管理装置1は、第1の機器21から変換情報を取得し、この変換情報に従って第1の機器21から変換モジュール211を取得する。このとき、管理装置1は、上述の例と同様に、変換モジュール211をインラインフレーム101内に読み込み、変換モジュール211の処理をインラインフレーム101内で応用処理部にて実行する。図6は、変換モジュール211の処理を表している。
Specifically, in the configuration of FIG. 5, the
すなわち、管理装置1は、変換モジュール211を読み込むと、トンネル機能213の形式に変換された第2の機器22に対するリクエスト電文を作成する(図6のS21)。そして、管理装置1は、作成されたリクエスト電文を、第1の機器21のトンネル機能213に送信し、応答を待つ(S22)。リクエスト電文は、第1の機器21のトンネル機能213を経由して第2の機器22に送信され、これに対する第2の機器22からの応答も、第1の機器21のトンネル機能213を経由して管理装置1に送信される。
That is, when the
管理装置1は、トンネル機能213から応答があれば、応用処理部にて応答の電文(第2のプロトコル)を第1のプロトコルに変換する(S23)。管理装置1は、第1のプロトコル形式に変換された第2の機器22からの応答を、第1の機器21の監視画面(親ページ10)を表示している基本処理部に出力する(S24)。これにより、管理装置1は、画面表示を更新することにより、基本処理部にて第1の機器21と第2の機器22との両方の電力消費量を親ページ10に並べてグラフ表示することができる。
If there is a response from the
なお、管理装置1−トンネル機能213間の通信プロトコル(第3のプロトコル)について簡単に説明する。一例として、基本フォーマットは「〔コマンド〕:〔IPアドレス〕:〔ポート番号〕:〔電文〕」となる。ここで、〔コマンド〕、〔IPアドレス〕、〔ポート番号〕はASCII文字列、〔電文〕は16進数表記に変換後の文字列(ASCII文字列)である。使用されるコマンドとしては、指定されたIPアドレスのポート番号にTCPで接続し、〔電文〕で指定された電文を第2の機器22に送信する「send」、第2の機器22からの応答を管理装置1に返信する「received」がある。「received」コマンドにおいては、〔IPアドレス〕、〔ポート番号〕は「send」コマンドと同じ〔IPアドレス〕、〔ポート番号〕が指定される。また、第2の機器22からの応答は16進数表記のASCII文字列に変換されている。
A communication protocol (third protocol) between the
以上説明した図5の構成によれば、第2の機器22で用いられる第2のプロトコルは電文がテキスト、転送プロトコルがHTTPに限定されることなく、たとえばバイナリ電文を扱い且つ転送プロトコルがHTTP以外のプロトコルであっても対応できる。これにより、管理装置1は、modbus/TCP等のHTTP以外のIP通信であっても、第1の通信プロトコルとの間でプロトコル変換可能になる。
According to the configuration of FIG. 5 described above, the second protocol used in the
なお、上記実施形態においては、管理装置1は、第1の機器21との通信処理と、第2の機器22との通信処理とを互いに独立した処理とするために、インラインフレームを使用している。つまり、管理装置1は、第1の機器21との通信処理を基本処理部にて親ページ内で行い、第2の機器22との通信処理を応用処理部にてインラインフレーム内で行っている。ただし、管理装置1は、第1の機器21との通信処理と、第2の機器22との通信処理とを互いに独立して実行できればよく、インラインフレーム以外の方法を使用する構成であってもよい。
In the above-described embodiment, the
(実施形態2)
本実施形態の機器管理システムは、図7に示すように変換モジュール221および記憶部222を第2の機器22が有している点で実施形態1の機器管理システムと相違する。また、本実施形態では、第2の機器22は、後述する画面書換モジュール(rewrite.js)223を有している。以下、実施形態1と同様の構成については共通の符号を付して適宜説明を省略する。
(Embodiment 2)
The device management system according to the present embodiment is different from the device management system according to the first embodiment in that the
次に、本実施形態の機器管理システムの動作について図7を参照して説明する。なお、図7では第2の管理装置12の図示を省略しており、「10」が管理装置1の親ページ、「101」がインラインフレームを表している。
Next, the operation of the device management system of this embodiment will be described with reference to FIG. In FIG. 7, the
まず、管理装置1は、Webブラウザにより親ページ10上で第1の機器21の監視画面にログインする(図7のS31)。それから、管理装置1の親ページ10上で、ユーザがブックマークレットを実行する。ここで、ブックマークレットは、第2の機器22から画面書換モジュール223を取得し(S32)、画面書換モジュール223を動作させるように記述されたスクリプトである。
First, the
管理装置1は、画面書換モジュール223を実行することにより、親ページ10中にインラインフレーム101を生成し、このインラインフレーム101に第2の機器22の監視画面を読み込む。このとき、管理装置1は、取得部112にて第2の機器22から変換情報を取得する(S33)。そして、管理装置1は、インラインフレーム101のサイズを最大化し、さらに最前面に設定することで、インラインフレーム101にて第1の機器21の監視画面(親ページ10)を覆い隠す。
The
なお、図7では親ページ10内の処理を明確にするために親ページ10内の一部にインラインフレーム101を図示しているが、実際には親ページ10はインラインフレーム101で覆われるため管理装置1の画面上には表示されない。ただし、基本処理部は、インラインフレーム101のバックグラウンドで、応用処理部とは別に親ページ10内の処理を継続することになる。
In FIG. 7, the
さらに、管理装置1は、親ページ10内にスクリプトタグを生成して変換モジュール221を読み込み(S34)、変換モジュール221を親ページ10に登録する。これにより、管理装置1は、変換モジュール(transform.js)221に定義されている処理を親ページ10内で基本処理部にて実行する。変換モジュール221に定義されている処理は、実施形態1で図4を用いて説明した処理と基本的に同様である。
Further, the
すなわち、管理装置1は、基本処理部にて変換モジュール221を読み込むと、第2の機器22の監視画面(インラインフレーム101)からのリクエストを待つ。リクエストがあると、管理装置1は、基本処理部から第1の機器21に対して第1のプロトコルでのHTTPリクエストを行い、第1の機器21からの応答を待つ。
That is, when the
第1の機器21から電力消費量の応答があれば、管理装置1は、親ページ10内で基本処理部にて応答の電文(第1のプロトコル)を第2のプロトコルに変換する。管理装置1は、第2のプロトコル形式に変換された第1の機器21からの応答を、インラインフレーム101を表示している応用処理部に出力する。これにより、管理装置1は、画面表示を更新することにより、応用処理部にて第1の機器21と第2の機器22との両方の電力消費量をインラインフレーム101に並べてグラフ表示することができる。
If there is a power consumption response from the
以上説明した本実施形態の機器管理システムによれば、第1の機器21が独自の認証方式を採用しており、またその動作仕様が不明である場合や、他の機器(第2の機器22)のHTMLファイルが第1の機器21に設定されていない場合にも対応することができる。すなわち、これらの場合でも、管理装置1は、第1の機器21だけでなくプロトコルの異なる第2の機器22についても統合管理することができる。
According to the device management system of the present embodiment described above, the
その他の構成および機能は実施形態1と同様である。 Other configurations and functions are the same as those of the first embodiment.
1 管理装置
111 処理部
112 取得部
21 第1の機器
22 第2の機器
211 変換モジュール
212 記憶部
213 トンネル機能
221 変換モジュール
222 記憶部
DESCRIPTION OF
Claims (5)
前記第1の機器は、
プロトコル変換用の関数群からなる変換モジュールと、
前記変換モジュールを用いて前記第1のプロトコルと前記第2のプロトコルとの間でプロトコル変換を行うための変換情報を記憶した記憶部とを有し、
前記管理装置は、
前記第1の機器から前記変換モジュールおよび前記変換情報を取得する取得部と、
前記第2の機器との通信時に、前記変換情報に従い前記変換モジュールを用いて、前記第1のプロトコルと前記第2のプロトコルとの間でプロトコル変換を行うように機能する処理部とを有し、
前記変換モジュールを取得するためのスクリプトを含むファイルを前記第2の機器が保持しており、
前記管理装置は、前記ファイルを前記第2の機器から読み込み、前記ファイル内の前記スクリプトに従って、前記取得部にて前記第1の機器から前記変換モジュールを取得する
ことを特徴とする機器管理システム。 A management device, a first device that communicates with the management device using a first protocol, and a second device that communicates using a second protocol different from the first protocol,
Wherein the first equipment is
A conversion module consisting of functions for protocol conversion;
A storage unit storing conversion information for performing protocol conversion between the first protocol and the second protocol using the conversion module;
The management device
An acquisition unit for acquiring the first equipment or al the conversion module and the conversion information,
When communicating with the second device, using the conversion module in accordance with the conversion information, possess a processing unit that functions to make a protocol conversion between said first protocol and said second protocol ,
The second device holds a file containing a script for obtaining the conversion module;
The management apparatus reads the file from the second device, and acquires the conversion module from the first device by the acquisition unit according to the script in the file .
前記管理装置は、前記第1の機器および前記第2の機器から提供されるWebページを表示するWebブラウザとしての機能を有する
ことを特徴とする請求項1に記載の機器管理システム。 The first device and the second device have a function as a Web server that provides a Web page,
The device management system according to claim 1, wherein the management device has a function as a Web browser that displays a Web page provided from the first device and the second device.
前記管理装置は、前記トンネル機能にて構築される通信路を用いて、前記第1の機器を経由して前記第2の機器と通信するように構成されている The management device is configured to communicate with the second device via the first device using a communication path constructed by the tunnel function.
ことを特徴とする請求項1または2に記載の機器管理システム。 The device management system according to claim 1, wherein the device management system is a device management system.
ことを特徴とする管理装置。 A management device characterized by that.
ことを特徴とする機器。 Equipment characterized by that.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012261873A JP5975396B2 (en) | 2012-11-30 | 2012-11-30 | Device management system, management device and device used therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012261873A JP5975396B2 (en) | 2012-11-30 | 2012-11-30 | Device management system, management device and device used therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014106938A JP2014106938A (en) | 2014-06-09 |
JP5975396B2 true JP5975396B2 (en) | 2016-08-23 |
Family
ID=51028317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012261873A Active JP5975396B2 (en) | 2012-11-30 | 2012-11-30 | Device management system, management device and device used therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5975396B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6175843B2 (en) * | 2013-03-27 | 2017-08-09 | 日本電気株式会社 | Content control system, content control method, and content control program |
JP6274163B2 (en) * | 2015-07-22 | 2018-02-07 | コニカミノルタ株式会社 | Image forming apparatus and information display method |
JP6656221B2 (en) * | 2017-12-25 | 2020-03-04 | 矢崎エナジーシステム株式会社 | Communications system |
CN111343134A (en) * | 2018-12-19 | 2020-06-26 | 美的集团股份有限公司 | Communication method, medium, household appliance and device based on script parsing protocol |
JP7317570B2 (en) | 2019-05-10 | 2023-07-31 | 株式会社東芝 | Supervisory control system, gateway system, and conversion method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002063086A (en) * | 2000-08-23 | 2002-02-28 | Nippon Telegr & Teleph Corp <Ntt> | Managing method and management system for network, and storage medium storing program therefor |
JP2007327656A (en) * | 2006-06-06 | 2007-12-20 | Daikin Ind Ltd | Information management system |
JP5015052B2 (en) * | 2008-03-26 | 2012-08-29 | パナソニック株式会社 | Monitoring system and monitoring server device |
-
2012
- 2012-11-30 JP JP2012261873A patent/JP5975396B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2014106938A (en) | 2014-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5975396B2 (en) | Device management system, management device and device used therefor | |
CN103262020B (en) | Virtual input/output device for printer | |
JP5935622B2 (en) | Information processing apparatus, monitoring apparatus, information processing method, and monitoring program | |
JP5321586B2 (en) | Application extension system, extension method, extension program | |
KR20130097006A (en) | Device for do it yourself m2m platform and, m2m service method thereof | |
CN105794152A (en) | Web-based interaction with building automation | |
JP2007108953A (en) | Chat program | |
US20230136504A1 (en) | Method for generating application for controlling external electronic device and electronic apparatus for supporting the same | |
WO2017041550A1 (en) | Device simulator communication method and system | |
JP5774429B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
JP2021048504A (en) | Information processing device and information processing program | |
JP2005309703A (en) | Electronic equipment system | |
Lee | Internet of things: Smart home system | |
CN115834726B (en) | Protocol conversion method, data transmission method, device, gateway and storage medium | |
Khichadi et al. | Building a cloud solution for energy management using raspberry pi | |
JP6102108B2 (en) | Information processing apparatus, data providing method, and data providing program | |
JP6108443B2 (en) | Page setting method and system for controlling terminal to remotely update setting information of controlled device via Web server | |
JP6025971B2 (en) | Communication adapter and program | |
JP2010026948A (en) | Communication equipment | |
Bo et al. | Wireless machine to machine monitoring using cross-platform smart phone for district heating | |
US9516148B2 (en) | Computer-readable recording medium, information management method and information management device | |
KR20120118866A (en) | An interface construction system and method to control low-erformance equipment using web technology | |
JP7091998B2 (en) | Authentication device, authentication method and authentication program | |
Rao et al. | Raspberry Pi 3 Model B+ Based Endure Redicting Using Web of Things (WoT) | |
JP2017187890A (en) | Gateway device and data collection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150302 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20150422 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20151225 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160119 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160322 |
|
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: 20160614 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160708 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5975396 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |