JP3757669B2 - How to set up a distributed system - Google Patents

How to set up a distributed system Download PDF

Info

Publication number
JP3757669B2
JP3757669B2 JP07500499A JP7500499A JP3757669B2 JP 3757669 B2 JP3757669 B2 JP 3757669B2 JP 07500499 A JP07500499 A JP 07500499A JP 7500499 A JP7500499 A JP 7500499A JP 3757669 B2 JP3757669 B2 JP 3757669B2
Authority
JP
Japan
Prior art keywords
node
information
network
message
address
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
JP07500499A
Other languages
Japanese (ja)
Other versions
JP2000269998A (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 JP07500499A priority Critical patent/JP3757669B2/en
Publication of JP2000269998A publication Critical patent/JP2000269998A/en
Application granted granted Critical
Publication of JP3757669B2 publication Critical patent/JP3757669B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ネットワークに接続された複数の機器と計算機により構成される分散システムにおいて、これらのノード間でデータを授受するのに必要な各ノードの設定を行う分散システムにおける設定方法に関する。
【0002】
【従来の技術】
ネットワークに複数の計算機と少なくとも1つのプリンタが接続され、計算機にインストールされたアプリケーションプログラムより印刷要求があると、該計算機に接続されたローカルプリンタが存在するか否かを判断したのち、ローカルプリンタが存在しない場合には該計算機が自内のファイルを読み込んでネットワークに接続されたリモートプリンタの接続処理を自動的に行うパソコンネットワークにおけるプリンタ接続のための設定方式が、例えば特開平6−242903において示されている。
【0003】
【発明が解決しようとする課題】
従来の設定方式により機器の設定を行った場合、該機器と通信を確立するために該機器に関する情報が必要であった。例えば、新しい機器をネットワークに接続した場合、該機器と通信するためには、機器の開発メーカーより通信ドライバなどのソフトウエアやデータを入手して、該機器と通信するための接続処理を行わなければならなかった。このため、多数の機器がネットワークに接続されるシステムでは入手しなければならない機器情報が増え、該情報の入手や管理が困難になるといった問題が生じた。特に、機器の追加やリプレースが頻繁に発生するシステムでは、頻繁に機器情報を入手し、これらの情報の追加や入れ替えも頻繁に行わなければならず、機器情報の管理が一層困難になる。また、管理している機器情報を更新せずに、機器の取り外しや変更を行うことにより、実際にネットワークに接続された機器とこれらの機器に関する機器情報とが一致しなくなるといった問題が生じ、システムの管理を非常に困難なものにしていた。
【0004】
本発明では、多数の機器が接続された分散システムにおいて、機器の設定と機器の情報管理が困難であるという課題を解決することを目的とする。
【0005】
【課題を解決するための手段】
上記課題を解決するため、本発明における設定方式では、
(1)ネットワーク接続された機器を自動的に認識し、
(2)認識された該機器から該機器が保持する情報を収集し、
(3)収集された該情報に基づいて機器の設定を行うのに必要な情報を生成し、
(4)生成された該情報を機器に設定することにより機器間の通信を実現すること、を特徴とする。
【0006】
【発明の実施の形態】
本発明における第1の実施例を説明する。
【0007】
本発明における第1の実施例では、生産システムにおける機器の設定方式を例に説明する。図1は本発明におけるシステムの構成例である。コントローラ110と機器111、機器112、機器113、機器114がネットワーク100に接続されている。機器111と機器112はセンサーなどの生産ラインの情報を収集する入力機器であり、機器113と機器114はモーター制御などを行う生産ラインを動かす出力機器である。コントローラ110は、ネットワーク100を介してこれらの機器と通信を行い、例えば生産ラインのコンベアを制御する。このシステムでは、コントローラ110により機器を集中制御する。計算機120は、ネットワーク100に接続されたノードを設定するための構築ツールをインストールしており、計算機120の構築ツールはネットワーク100を介して、コントローラ100、機器111、機器112、機器113、機器114を設定する。計算機120は、ネットワーク150にも接続されている。ネットワーク150は、ゲートウエイ151を介してインターネットに接続され、他のゲートウエイ152を介して他のネットワーク160に接続された計算機161と通信することができる。ネットワーク150とネットワーク160は、例えばイーサネットなどの計算機間で通信を行うためのネットワークである。ここで、コントローラ110は制御プログラムを実行できるものであればよく、計算機であってもよい。また、機器と計算機を接続するネットワーク100はノード間で相互にデータを交換できる手段であればバス型のネットワークでなくてもよく、無線通信などの手段を用いてもよい。
【0008】
ネットワーク100に接続された機器とコントローラの構成例を図2示す。ネットワーク200に接続された機器250は、通信や機器の制御を行う制御部260と、機械的あるいは電気的に機器を駆動する機械部270により構成される。例えば、光センサーの場合、機械部270は赤外線などを送信して物体を検出する部分であり、検出結果を電気信号として制御部260に伝達する。制御部260は、この電気信号をデジタル信号に変換したり、工学値に変換するなどの処理を行い、メッセージにこの処理結果を格納してネットワーク200に送信する。制御部260は、ネットワーク100上の信号を処理するトランシーバ206、メッセージの組み立てなどの通信制御を行う通信プロセッサ201、機器の制御プログラムを実行するプロセッサ202、通信や機器の制御プログラムと種々のデータを格納するための不揮発性記憶装置であるROM203、プログラムを実行する際に使用する揮発性記憶装置であるRAM204、機械部270とデータを交換するためのI/Oインターフェース205により構成される。I/Oインターフェース205には、I/O(207)が接続され、制御部260はこのI/Oインターフェース205を介して機械部270からの信号の入力および機械部270への信号の出力を行う。プロセッサ201、プロセッサ202、ROM203、RAM204、I/Oインターフェース205は内部バス210に接続されており、相互にデータを交換することができる。コントローラは、プロセッサ202の処理能力、ROM203とRAM204の記憶容量が機器と異なる。またI/Oインターフェース205と機械部270は備えていない。他の構成は機器250と同じである。
【0009】
ネットワーク100を介して各ノードが送受信するメッセージのフォーマットを図3に示す。メッセージ300は、識別子301、アドレス302、データ303により構成される。識別子301はメッセージを識別するために付与される文字列であり、アドレス302はネットワーク100に接続された各ノードのノードアドレスであり、データ303はセンサーの測定結果やモーターを制御するための制御データなどである。アドレス302には、メッセージを送信したノードのノードアドレス、あるいはメッセージを送信する先のノードアドレスなどが設定される。メッセージ300を受信したノードは、メッセージの識別子301により、アドレス302に設定されるノードアドレスが何を示すかを判断する。ネットワーク100に接続された各ノードは、メッセージ300に付与された識別子301、あるいは識別子301とアドレス302により、メッセージ300を受信するか否かを判断する。
【0010】
各ノードの設定を行う構築ツールは、ネットワーク100に接続されたノードを自動的に認識する。このときのデータの流れを図4に示す。構築ツールは処理を開始すると、まずネットワークに接続されているノードを全て検出する。図4(a)に示すように、ネットワーク400にコントローラ410、入力機器411、入力機器412、出力機器413、構築ツール430をインストールした計算機420が接続されている。ネットワーク400に接続される各ノードには重複しないようノードアドレスが付与される。ノードアドレスは、ディプスイッチまたはローカルな端末などにより各ノードに事前に設定される。構築ツール430は、起動されるとメッセージ401をネットワーク400に送信する。メッセージ401には、識別子301としてノード確認メッセージであることを示す識別子Aが付与され、アドレス302には構築ツールが適当なノードアドレスを設定する。データ303は付与されない。
【0011】
ネットワーク400に接続された各ノードはメッセージ401を受信すると、メッセージ401の識別子301によりメッセージ401がノード確認メッセージであると判断する。これにより、ノード確認メッセージに適した処理を実行する。各ノードはメッセージ401内のアドレス302を読み出し、自ノードのノードアドレスと比較する。もしも、メッセージ401内のアドレス302と自ノードのノードアドレスが一致した場合、アドレス302に自ノードアドレスを設定し、メッセージ確認メッセージであることを示す識別子Aを付与して応答メッセージ402をネットワーク400に送信する。構築ツール430は、他ノードからの応答メッセージ402を受信することにより、自分がメッセージ401に設定したノードアドレスと同じノードアドレスを持つノードがネットワーク400に接続されていると判断する。図4(a)の例では、構築ツール430がノード確認メッセージ401にノードアドレス1番を設定してネットワーク400にブロードキャストしている。これを受信した各ノードは自ノードのノードアドレスがノードアドレス1番であるか否かを判断する。入力機器411には、ノードアドレス1番が割り当てられており、入力機器411は自ノードのノードアドレス1番を応答メッセージ402に設定してブロードキャストする。構築ツールは、ノードアドレス1番が設定された応答メッセージ402を受信することにより、ノードアドレス1番が設定されたノードがネットワーク400に接続されていることを検出する。構築ツール430は、ノードアドレスの最小値からノードアドレスの最大値までの全てのアドレスに対して同じ処理を順次繰り返すことにより、ネットワークに接続されている全てのノードのノードアドレスを検出することができる。
【0012】
また、定期的にこの処理を繰り返してネットワークに接続されている全ノードを検出し、新たに検出したノードと前回検出したノードとを比較することにより、ネットワークから切り離されたノードを検出できる。ここで、図3にて示したメッセージの識別子やアドレスのサイズは事前に決まっており、例えば各2バイトである。ノード確認メッセージであることを示す識別子Aも事前に決まっており、例えば数次の1000で表される。各ノードはメッセージの最初の2バイトに1000が付与されたメッセージを受信すると、そのメッセージがノード確認メッセージであると判断する。ノード確認メッセージのメッセージフォーマットは事前に定義されており、ノード確認メッセージではアドレスとして2バイトのノードアドレスが設定され、データは存在しないことが事前に決まっている。新しいノードがネットワーク400に接続されると、構築ツール430はこのノードを自動的に検出する。図4(b)に示すように、図4(a)のシステム構成に新たに出力機器414が追加された場合、出力機器414は自ノードのノードアドレスにノード確認メッセージであることを示す識別子Aを付与したメッセージ403をネットワーク400にブロードキャストする。構築ツール430は、このメッセージを受信することにより、新しくノードが追加されたことを検出し、そのノードのノードアドレスを知ることができる。新たにネットワーク400に接続されたノードは、必ず自ノードのノードアドレスを設定したノード確認メッセージを送信する。
【0013】
構築ツール430は、ネットワーク400に接続されたノードのノードアドレスを検出すると、そのノードアドレスを使い、そのノードにメッセージを送信する。メッセージのアドレスとして送信先ノードアドレスを指定してメッセージを送信することにより、そのノードに対してメッセージを送信することができる。そのノードに対してデータ送信を要求することにより、ノードが保持する情報を読み込む。機器を生産するメーカーは、機器の出荷時に機器に関する種々の情報をROM203に格納している。機器に格納されたこれらの情報は、ネットワーク200に接続された他のノードからトランシーバ206を介してプロセッサ201にデータ読み込み要求を送信することにより読み込むことができる。これらの情報へのアクセス方式は、標準規格などにより予め決められており、各メーカーから提供される機器の情報を同じように読み込むことが可能である。例えば、機器を開発したメーカー名は30バイトで表現し、その情報の番号が3番であることが予め決まっている。機器Aの開発メーカー名をネットワーク経由で読み込むためには、識別子としてデータを要求するメッセージであることを示す識別子、アドレスとして機器Aのノードアドレス、そしてデータとして情報の番号を示す3というデータ(情報番号3番を指定)を設定してメッセージをブロードキャストする。これを受信した機器Aの通信プロセッサ201は、ROM203より開発メーカー名を読み出す。データを要求するメッセージの応答メッセージであることを示す識別子、自ノードのノードアドレス、データとして読み出した開発メーカー名をメッセージに設定してネットワークにブロードキャストする。
【0014】
構築ツールは識別子とアドレスをもとに、この応答メッセージを受信し、機器Aの開発メーカー名を受信することができる。このアクセス方式を用いて構築ツール430は検出したネットワークに接続される全てのノードからノードが保持する情報を読み出す。読み出された情報は、図5に示したノード管理テーブル500に登録される。ノードアドレス501には検出したノードのノードアドレスが登録され、これらのノードより読み出した情報を順次ノード管理テーブル500に登録する。入出力区分502は、ノードが入力機器であるか、出力機器であるかを示す情報であり、データ長503はノードが送信または受信できるデータのデータ長であり、メーカー504はノードを開発したメーカーのメーカー名であり、ファイルアドレス505は機器の情報が十分である場合にアクセスするファイルのインターネット上のアドレスであり、カタログ番号506はノードのカタログ番号であり、時間間隔507はノードがメッセージを送信する時間間隔またはメッセージを受信処理可能な時間間隔である。センサーのような機器の場合、コストや実装スペースの問題から計算機のように十分なROMを備えていない。このため、構築ツールが必要とする全てのデータをROMに格納しているとは限らない。したがって、構築ツールが必要とする情報を機器が保持していない場合もある。
【0015】
生産ラインのようなシステムを動かすには、センサーなどの入力機器からの情報を読み込みんで処理し、その処理結果をモーターなどの出力機器に送ってモーターを駆動する。これを実行するには、センサーのプログラム、コントローラの制御プログラム、モーターのプログラム間で通信を行う必要がある。つまり、プログラム間の通信設定を行わなければならない。構築ツールはノード管理テーブルに登録された情報をもとに、通信設定を行うのに必要な構築情報を生成する。構築ツールの設定例を図6に示す。図6に示したシステムは、コントローラ610、入力機器620、出力機器630により構成され、これらのノードはネットワーク600を介してメッセージを送受信する。このネットワーク600には、構築ツールをインストールした計算機も接続されているが図中には記していない。コントローラ610にはプログラムがインストールされている。これらのプログラムは、機器を制御するための制御プログラムであるアプリケーションプログラム611と、通信を制御するプログラムであるプロトコル処理プログラム612である。同様に入力機器620には、入力機器を制御するアプリケーションプログラム621とプロトコル処理プログラム622がインストールされており、出力機器630には、出力機器を制御するアプリケーションプログラム631とプロトコル処理プログラム632がインストールされている。これらのプログラムはROM203からプロセッサ202によりRAM204にインストールされるか、あるいはネットワークよりRAM204に直接インストールされる。入力機器620のアプリケーションプログラム621にて測定されたデータは、プロトコル処理プログラム622を介してネットワーク600に送信される。このデータはコントローラ610のプロトコル処理プログラム612にて受信され、アプリケーションプログラム611にて処理される。処理結果はプロトコル処理プログラム612によりネットワーク600に送信され、出力機器630のプロトコル処理プログラム632にて受信される。受信された処理結果は、アプリケーションプログラム631に渡され、出力機器630はこの処理結果をもとにモーターの回転数を変更するなどの制御を行う。
【0016】
構築ツールは、構築情報に基づいてプロトコル処理プログラム612、622、632に情報を設定し、このデータの流れを実現する。情報の設定方法は、各ノードの情報へのアクセス方式と同様に、標準規格などにより予め決まっているものとする。入力機器620のプロトコル処理プログラム622には、構築ツールにより送信するメッセージの識別子、メッセージの送信時間間隔などが設定される。コントローラ610のプロトコル処理プログラム612には、入力機器620が送信したメッセージを受信するために必要な情報として、入力機器620が送信するメッセージの識別子、入力機器620のノードアドレス、メッセージのデータ長、メッセージの送信時間間隔などが設定される。これらの情報を設定することにより、入力機器620が送信したメッセージをコントローラ610が識別して受信することができ、通信が確立する。送信時間間隔は、入力機器620がメッセージを送信する時間間隔であり、コントローラ610では入力機器620のタイムアウト監視などを行うのに使用する。プロトコル処理プログラム612により受信されたメッセージは、アプリケーションプログラム611にて受信される。
【0017】
アプリケーションプログラムは、receive(id, address,data)といった関数を使って受信メッセージを受け取る。idはメッセージの識別子であり、例えばセンサーの情報であることを示す。addressは入力機器620のノードアドレスであり、例えばどのセンサーが測定した情報であるかを示す。dataは、例えばセンサーの測定結果である。アプリケーションプログラム611は、入力機器620からのデータを処理し、出力機器630に送信する。コントローラ610から出力機器630へメッセージを送信するには、入力機器620からコントローラ610にメッセージを送信したときと同様に、コントローラ610のプロトコル処理プログラム612と出力機器630のプロトコル処理プログラム632に構築ツールが必要な情報を設定する。コントローラ610から出力機器630にメッセージを送信する場合、コントローラ610は出力機器630の時間間隔507以上の時間間隔を空けてメッセージを送信することにより、出力機器630の受信頻度が高まり、メッセージを受信しきれなくなるという状況を回避する。構築ツールがプロトコル処理プログラムに設定するこれらの構築情報は、ノード管理テーブル500より構築ツールが自動的に生成する。
【0018】
以下、この生成方式を説明する。まずノードの入出力区分502により、ノードがコントローラであるか、入力機器であるか、出力機器であるかを判断する。コントローラである場合には、入力と出力が設定されている。次にデータ長503を読み込み、入力機器が送信するデータ長と出力機器が受信するデータ長を判断する。コントローラの送受信データ長は、機器側のデータ長に合わせて設定する。例えば、入力機器の送信データ長が2バイトであった場合、コントローラの受信データ長は2バイトにする。さらに、時間間隔507を読みこむ。時間間隔507も機器に合わせてコントローラを設定する。例えば、入力機器の時間間隔507が100ミリ秒であった場合、コントローラには受信時間間隔100ミリ秒が設定され、この時間間隔をもとに入力機器のタイムアウト監視を行う。出力機器の時間間隔507が500ミリ秒であった場合、出力機器の受信限界性能が500ミリ秒であるため、コントローラには送信時間間隔として500ミリ秒が設定され、コントローラは500ミリ秒以上の時間間隔を空けて出力機器にメッセージを送信する。コントローラの設定を機器に合わせるのは、コントローラのプロセッサ性能の方が高く、ROMやRAMといったリソースを十分持っているからである。さらにコントローラと機器間の通信に識別子を割り当てる。メッセージの識別子が、ノード確認メッセージを示す識別子やノード情報の読み込みを要求するメッセージであることを示す識別子のように、事前に決められていない場合、構築ツールが自動的に識別子を割り当てる。コントローラが入力機器Aと入力機器Bからメッセージを受信して、出力機器Cと出力機器Dにメッセージを送信する場合、例えばメッセージの識別子を番号で表し、1番から順に番号で割り当てる。つまり、入力機器Aからコントローラに送信するメッセージには識別子1を割り当て、入力機器Bからコントローラに送信するメッセージには識別子2を割り当てる。以上のようにして、構築情報が生成される。例えば、入力機器Aでは送信するメッセージの識別子は1、2バイトのデータを100ミリ秒間隔で送信するといった構築情報が生成される。入力機器Aとコントローラのプロトコル処理プログラムに設定する。またコントローラ側に関しては、識別子1とノードアドレス1番が付与されたメッセージを受信し、データのデータ長は2バイトであり、100ミリ秒周期で受信するという構築情報を生成する。これらの構築情報を入力機器Aとコントローラに設定することにより、入力機器Aより送信されたメッセージをコントローラにて受信できる。
【0019】
構築ツールの処理フローを図7と図8に示す。構築ツールの処理は大きく4つのステップに分けられる。
【0020】
(1)ネットワークに接続されたノードを自動的に検出するステップ1。
【0021】
(2)検出したノードより情報を読み込むステップ2。
【0022】
(3)読み込んだ情報をもとに構築情報を生成するステップ3。
【0023】
(4)生成された構築情報を各ノードに設定するステップ4。
【0024】
図7にステップ1とステップ2の処理を、図8にステップ3とステップ4の処理を示す。
【0025】
構築ツールは起動すると、ノードのノード番号を表す変数Nに0を設定して初期化し(ステップ701)、ノードアドレスとしてNを設定したノード確認メッセージをネットワークに送信する(ステップ702)。もしも、ノード確認メッセージの応答メッセージを受信できた場合、つまりノードアドレスNのノードがネットワークに接続されていた場合(ステップ703)、ノードアドレスNをノード管理テーブルに登録する(ステップ704)。もしも一定時間応答が得られなかった場合(ステップ703)、ノードアドレスNはノード管理テーブルに登録されない。ノードアドレスNが最後のノードアドレスでなければ(ステップ705)、ノードアドレスNに1を加え(ステップ706)、次のノードアドレスに対して同じ処理を繰り返す。もしも最後のノードアドレスであった場合(ステップ705)、ノード管理テーブルに登録されたノードアドレスを1つ読み出し(ステップ707)、読み出したノードアドレスが示すノードよりネットワークを介して必要な情報を読み込む(ステップ708)。ノード管理テーブルに登録された全てのノードアドレスが示すノードに対して情報を読み込む処理を終了しているか否かを判断する(ステップ709)。全てのノードから読み込んでいなかった場合、次のノードアドレスを読み込んで同じ処理を繰り返す。ノード管理テーブルに登録された全てのノードアドレスが示すノードより情報を読み込む処理を終了した場合(ステップ709)、図8に示した次のステップに移行する。
【0026】
ネットワークに接続したノードより収集した情報を登録したノード管理テーブルをもとに、まずマスターノードを決める(ステップ801)。マスターノードとは、機器を制御するコントローラや計算機であり、入出力区分502が入出力であることから判断される。スレーブとは、マスターノードにより制御される機器である。本実施例におけるシステムは集中制御システムであり、マスターノードとなりうるノードは1つしか存在しない。もしも、マスターノードとなりうるノードが2つ以上存在した場合(ステップ802)、つまり入出力区分502に入出力が登録されたノードが2つ以上存在した場合、オペレータに対して異常を通知し(ステップ807)、処理を終了する。マスターノードが識別できた場合(ステップ802)、スレーブノードの通信条件を確認する(ステップ803)。つまり、入出力機器のデータ長や時間間隔など、構築情報を生成するのに必要な情報が全て揃っているか否かを判断する。もしも必要な情報が揃っていない場合(ステップ804)、インターネットにアクセスして不足している情報を収集することを試みる(ステップ805)。各機器は保持できる情報量が限られているため、不足している情報を補うデータを格納したファイルにアクセスするためのファイルアドレス505を保持している。このファイルは、例えば機器を開発したメーカーが自社のサーバー上に保持している。ファイル名は、例えばカタログ番号506である。ファイルアドレス505は、例えばftp://www.hitachi.co.jp/Device/Data/であり、構築ツールはこのファイルアドレス505をもとにインターネットを介して図1で示された開発したメーカーのファイルサーバーである計算機161にアクセスする。機器に関する情報はカタログ番号506と同じ名称のH―XY3.TXTというテキストファイルで保存されている。このファイルフォーマットは各社同じであり、標準規格などで予め規定されている。構築ツールは、例えば機器が時間間隔507を保持していなかった場合、ファイルアドレス505で示されたアドレスよりファイルを読み込んで時間間隔507をノード管理テーブル500に登録する。
【0027】
もしも、ファイルが存在しないなどの理由により、構築情報を生成するのに必要なスレーブノードの情報が入手できなかった場合(ステップ806)、ノードの構築が行えないことをオペレータに通知し(ステップ807)、処理を終了する。もしも、必要な情報が入手できた場合には(ステップ806)、処理を継続する。構築情報を生成するのに必要なスレーブ情報が揃った場合(ステップ804、ステップ806)、図6で説明したように、構築情報を生成する(ステップ808)。生成された構築情報をもとにマスターノードのリソースが十分であるかを判断する。もしもリソースが不足している場合(ステップ809)、オペレータに対してリソースが不足していることを通知し(ステップ807)、処理を終了する。例えば、通信を行う機器の数が多く、マスターノードのプロトコル処理プログラムを実行するのに必要なメモリ容量が足りない場合、リソースが不足していると見なす。最後に、生成した構築情報を各ノードに設定し(ステップ810)、処理を終了する。なお、ここでは必要な情報が不足している場合、インターネットを介してファイルを読み込む例を示したが、この情報は構築ツールがインストールされている計算機のローカルなデータベース上にあってもよい。この場合、ファイルアドレス505は、例えばfile://c:¥/Device/Data/となりローカルなディレクトリを指定する。
【0028】
図7と図8では、ネットワークに接続しているノードを自動的に検出し、これらのノードからノードが保持する情報を読み出し、これらのノードより読み込んだ情報をもとに構築情報を生成し、ノードを設定する方式を説明した。しかし、実際のシステムでは一旦ノードを設定したあとでシステムの拡張に伴うノードの追加が発生したり、機器の劣化に伴うリプレースが発生し、システムの状態は常に変化する。システム構成が変化により追加・変更されたノードを自動的に設定する方式がもとめられる。追加されたノードを自動的に検出して構築する処理を表す処理フローを図9に示す。図9の処理は、図7と図8で示した処理が終了したのち、継続して行われる。図4(b)で説明したように構築ツールは常にネットワークを流れるメッセージを受信し、ノード確認メッセージが流れていないかを判断している。構築ツールは、ノード確認メッセージを受信すると(ステップ901)、ノード管理テーブル500より受信したノード確認メッセージに設定してあるアドレスと同じノードアドレスがすでにノード管理テーブル500に登録されているか否かを判断する。もしも、すでに同じアドレスが存在している場合(ステップ902)、追加されたノードのノードアドレスの設定が間違っているため、ノードの構築が行えない。ノードアドレスの設定が間違っていることをオペレータに通知し(ステップ903)、処理を終了する。アドレスが重複していない場合(ステップ902)、ノード管理テーブルにノードアドレスを追加する(ステップ904)。そして、ノードアドレスが示すノードより情報を収集してノード管理テーブルに登録する(ステップ905)。必要な情報が収集できたかどうかを判断し(ステップ906)、もしも必要な情報がない場合には(ステップ907)、インターネットにアクセスして(ステップ908)、不足している情報をファイルより読み込むことを試みる。もしも必要な情報を入手できない場合には(ステップ909)、必要情報が入手できないことをオペレータに通知し(ステップ903)、処理を終了する。もしも必要な情報が揃った場合(ステップ907、ステップ909)、構築情報を生成する(ステップ910)。新しくノードが追加されたことにより、マスターノードのリソースが不足するか否かを判断し、もしもリソースが不足する場合には(ステップ911)、その旨をオペレータに通知して(ステップ903)、処理を終了する。もしも、リソースが不足しない場合には(ステップ911)、各ノードに構築情報を設定し(ステップ912)、処理を終了する。
【0029】
機器のリプレースは、ノードのネットワークからの切り離しとノードの追加という2つの処理が発生したと捉える。ノードの追加が行われた場合、図9に示したノード追加時の設定方式を用いればよい。切り離されたノードの検出は、先に説明した通り図7に示したネットワークに接続されたノードの自動検出を一定時間間隔で繰り返せばよい。ただし、自動検出されたノードのノードアドレスはノード管理テーブル500とは別のテーブルを準備して管理する。ノード管理テーブル500のノードアドレス501と新たに準備したテーブルに登録されたノードアドレスを比較し、前回の検出時に検出したノードと、新たに検出したノードを比較することにより、検出できなくなったノードが存在しないかを確認する。もしも、検出できなくなったノードが存在した場合、このノードはネットワークから切り離されたと見なし、ノード管理テーブル500に登録されているこのノードに関する情報を消去する。このようにして切り離されたノードの情報をノード管理テーブル500より消去したのち、図9に示した追加ノードの自動設定方式を用いれば、リプレースされた機器も自動的に設定することができる。
【0030】
この実施例によれば、複数の機器を制御する1つのコントローラあるいは計算機と生産ラインを制御する複数の機器により構成される分散システムにおいて、構築ツールがネットワークに接続されたノードを自動検出するステップと、検出されたノードの情報を収集するステップと、この情報によりシステムの構築情報を生成するステップと、生成された構築情報を各ノードに設定するステップにより、分散システムを自動的に設定することができる。これにより、従来事前に通信ドライバや機器に関するデータファイルを準備しなければならなかった機器の通信設定が、事前情報を準備しなくても自動的に実行され、システム開発者の情報管理を行う負担が軽減される。また、通信ノウハウのないシステム開発者であってもシステムの構築を容易に行うことができ、システム開発者の通信に関する学習期間と学習コストが削減され、またシステム構築のための作業期間が大幅に短縮され、生産システム導入後すぐに生産を開始することができる。
【0031】
本発明における第2の実施例を説明する。
【0032】
本発明における第2の実施例は、集中制御を行うコントローラや計算機が存在しない点において第1の実施例と異なる。ネットワークに接続されたノードを自動検出する第1のステップと、検出されたノードより情報を収集する第2のステップは、第1の実施例と同じである。
【0033】
第2の実施例では、家庭内の電化製品をネットワークで接続して制御するホームオートメーションシステムを例に説明する。システム構成を図10に示す。監視パネル1010、AV機器コントローラ1011、テレビ1012、ビデオ1013、オーディオ1014、照明スイッチ1(1015)、照明スイッチ2(1016)、照明1(1017)、照明2(1018)、照明3(1019)がネットワーク1000に接続され、ネットワーク1000を介して相互にデータを交換することができる。各機器は図2にて説明した機器250と同様に、通信インターフェースを備え、機器を制御するプログラムを内蔵する。AV機器コントローラ1011は、テレビやオーディオなどのAV機器を制御するコントローラであり、オーディオ1014はミニコンポのようなオーディオ機器である。監視パネル1010は、機器の動作状況を表示したり、機器を操作するためのコントローラであり、液晶ディスプレイのような表示装置を備える。監視パネル1010には構築ツール1050がインストールされており、この構築ツール1050が各ノードを構築する。ここでは、構築ツール1050が監視パネル1010にインストールされている例を示したが、表示装置を備え、ネットワークに接続されているノードであれば、テレビやパーソナルコンピュータなどの他の機器や計算機にインストールされていてもよい。また、ここではネットワーク1000としてバス型のネットワークを使った例を示したが、データを送受信できる手段であれば無線通信や電力線を使った通信を用いてもよい。構築ツール1050がネットワーク1000に接続されたノードを自動的に検出するステップと、検出されたノードより情報を読み込むステップは第1の実施例と同じである。しかし、ノードより読み出す情報は異なる。
【0034】
第2の実施例におけるノード管理テーブルを図11に示す。ノードアドレス1101は、ネットワークより自動的に検出されたノードのノードアドレスである。機器種別1102は、AV機器、照明機器、空調機器、セキュリティ機器といった機器の種類を表す。入出力区分1103、データ長1104、メーカー1106は、第1の実施例と同じである。設定位置1105は、機器の設置された場所を示す。機器名称1107は、機器の名称を表し、例えば「インバーターエアコン白くまくん」といった製品名称である。ノードアドレス1101、機器種別1102、入出力区分1103、データ長1104、メーカー1106、機器名称1107は、製品出荷時にROMに格納される情報であり、第1の実施例と同じ方式により構築ツールは機器より読み込むことができる。ノードアドレス1101は、例えば8バイトのアドレスであり、最初の4バイトがメーカー番号、次の4バイトが各メーカーにて管理する製品番号である。メーカー番号を各メーカー間で重複しないように調整することにより、全ての機器に重複しないノードアドレスを出荷時に割り当てることができる。
【0035】
設置位置1105は機器のユーザが機器を購入し、設置したあとでないと決めることができない。設置位置1105の取得方式を図12に示す。機器の設置位置は、各機器毎に自動的に取得し、自ノード内に保存する。家の中の部屋であるB室1200には、赤外線通信の発信機能を持つ位置発信機器1220、照明スイッチ1(1221)、照明1(1222)、照明2(1223)、照明3(1224)が設置されている。照明スイッチ1(1221)、照明1(1222)、照明2(1223)、照明3(1224)は赤外線通信の受信機を備え、赤外線通信により得られたデータを自内に読み込み、内部のRAMに格納する。位置発信機器1220は、位置発信機器1220出荷時に異なる識別子が割り当てられており、電源が供給されるとこの識別子を周期的に送信する。各部屋には、この位置発信機器1220が設置されており、異なる識別子を発信している。以下、この識別子を位置識別子と呼ぶ。照明スイッチ1(1221)、照明1(1222)、照明2(1223)、照明3(1224)は、位置発信機器1220が送信する位置識別子1250を受信し、ノード管理テーブル1100に設置位置1105として登録する。これにより、同じ部屋に設置された機器は同じ設置位置1105を保持することができる。
【0036】
構築ツールの処理フローを図13に示す。ネットワークに接続されたノードを自動的に検出するステップと、検出されたノードより情報を読み出すステップは図7と同じである。構築ツールは、ノード管理テーブル1100の情報をもとに各機器の設定を行う。まず、各ノードを機器種別1102により分類する(ステップ1301)。次に、入出力区分1103を読み込み、機器種別により分類した機器グループ毎に構築情報の生成を試みる(ステップ1302)。各グループに入力機器が1つで出力機器が複数、あるいは入力機器が複数で出力機器が1つであれば、通信する相手は一意に決まる。このため、データ長1104などの情報をもとに第1の実施例と同じように各機器グループ毎に構築情報を生成できる。しかし、入力機器と出力機器が各々複数存在する場合には、通信の関係が一意に決まらず、機器の設定を行えない。例えば、図10に示したシステム構成例では、AV機器はAV機器コントローラ1011、テレビ1012、ビデオ1013、オーディオ1014である。メッセージを送信する入力機器はAV機器コントローラ1011のみであり、他は全てメッセージを受信する出力機器である。
【0037】
このため、AV機器コントローラ1011より、テレビ1012、ビデオ1013、オーディオ1014にメッセージを送信するという通信の関係が一意に決まり、各機器の設定を行うことができる。しかし照明機器は、照明スイッチ1(1015)、照明スイッチ2(1016)、照明1(1017)、照明2(1018)、照明3(1019)があり、入力機器が照明スイッチ1(1015)、照明スイッチ2(1016)の2つであるのに対し、出力機器は照明1(1017)、照明2(1018)、照明3(1019)の3つである。このため、どの照明スイッチが送信したメッセージをどの照明が受信するのかが判断できず、通信の関係を一意に定義することができない。このように、機器種別1102と入出力区分1103により通信の関係が一意に決まり構築情報を生成できる場合(ステップ1303)、構築情報を各ノードに設定し(ステップ1311)、処理を終了する。もしも、構築情報を生成できない場合(ステップ1303)、さらに設置位置1105を使って通信の関係を判断する(ステップ1304)。機器種別1102、入出力区分1103、設置位置1105により、構築情報を生成できる場合(ステップ1306)、構築情報を各ノードに設定し(ステップ1311)、処理を終了する。例えば、図10に示した照明スイッチ1(1015)、照明スイッチ2(1016)、照明1(1017)、照明2(1018)、照明3(1019)の中で、照明スイッチ1(1015)と照明1(1017)が同じ部屋に設置されていて、同じ位置識別子が設置位置1105としてノード管理テーブル1100に登録されており、照明スイッチ2(1016)、照明2(1018)、照明3(1019)が同じ部屋に設置されていて、同じ位置識別子が設置位置1105としてノード管理テーブル1100に登録されている場合、同じ部屋に設置している機器間で通信を行うと判断して構築情報を生成する。これらの2つの部屋には入力機器が1つずつしかなく、一意に通信の関係を定義できる。しかし、これらの機器が同じ部屋に設置されている場合、どの照明スイッチとどの照明で通信を行うかが判断できない。このように構築情報を生成できない場合(ステップ1306)、構築ツールはシステム構成を仮定して構築情報を生成する(ステップ1307)。
【0038】
例えば、照明スイッチ1(1015)と照明スイッチ2(1016)が同数の照明を制御すると仮定し、照明1(1017)、照明2(1018)、照明3(1019)のうち、2つを照明スイッチ1(1015)に、1つを照明スイッチ2(1016)にて制御すると判断する。ノードアドレスの小さいに順に自動的に入力機器に対して出力機器を割り当てる。例えば、照明スイッチ1(1015)より照明1(1017)と照明2(1018)にメッセージを送信し、照明スイッチ2(1016)より照明3(1019)にメッセージを送信すると判断し、構築情報を生成する。しかし、このような仮定により判断した通信の関係が必ずしもユーザーの要求と一致するとは限らない。このため、ユーザーに通信の関係を提示し、判断結果が正しいか否かを確認する(ステップ1308)。ユーザーが正しいと判断した場合(ステップ1309)、生成した構築情報を各ノードに設置する(ステップ1311)。もしも、ユーザーが正しくないと判断した場合(ステップ1309)、ユーザーは通信の関係を変更する(ステップ1310)。構築ツールは、この変更結果により構築情報を修正し、この修正された構築情報を各ノードに設定し(ステップ1311)、処理を終了する。
【0039】
ステップ1309におけるユーザーへの構築情報の確認画面の構成例を図14に、ステップ1310における構築情報の変更画面の構成例を図15に示す。図14は、ユーザに対して構築ツールが生成した構築情報を表示する構築情報表示画面1400である。ユーザーが構築情報が正しいか否かを判断するのに不要な識別子やメッセージのデータ長などは表示していないが、これらの情報を表示してもよい。構築情報表示画面1400では、ノードを識別するための情報としてノード管理テーブル1100に登録されているメーカー1106と機器名称1107を各機器毎に表示している。構築情報表示画面1400は、A社製AVリモコン1401がA社製Xテレビ1402、B社製Yビデオ1403、C社製Zカセットプレーヤー1404にメッセージを送信して制御することを示している。同様に、N社製Y照明スイッチ1405はH社製Y照明1407とJ社製Z照明1408にメッセージを送信して制御し、M社製X照明スイッチ1406はK社製X照明スイッチ1409にメッセージを送信して制御する。ここで、制御とは電源のオン/オフ制御などである。この内容が正しければ、ユーザーはマウスやタッチパネルなどの入力手段を用いて「はい」を選択し、この内容が正しくなければ「いいえ」を選択する。「いいえ」が選択されると図15に示す構築情報変更画面1500に移行する。
【0040】
構築情報変更画面1500は、構築情報表示画面1400と同じ情報を表示しているが、構築内容を変更できる点が異なる。例えば、J社製Z照明をN社製Y照明スイッチが押されたときに点灯されるのではなく、M社製X照明スイッチが押されたときに点灯するようにしたい場合には、マウスやタッチパネルなどの入力手段により、M社製X照明スイッチを示す図(1551)とJ社製Z照明を示す図(1552)を選択する。これにより、J社製Z照明が通信する相手がN社製Y照明スイッチからM社製X照明スイッチに変更される。構築ツールは、ユーザーにより終了ボタンが選択され、構築内容の変更作業が終了すると、ユーザーが変更した内容にしたがって構築情報を修正する。
【0041】
この実施例によれば、複数の機器により構成される分散システムにおいて、構築ツールがネットワークに接続されたノードを自動検出するステップと、検出されたノードの情報を収集するステップと、この情報によりシステムの構築情報を生成するステップと、構築情報が生成できない場合にはユーザーが構築情報を変更するステップと、生成された構築情報を各ノードに設定するステップにより、分散システムを自動的に設定することができる。従来では、機器の通信設定を行うには通信に関する知識や機器自体に関する知識を必要としたが、これらの設定が自動的に行われるようになり、システムエンジニアなどのサポートなしにシステムを構築することができ、一般家庭などにもシステムを容易に導入できる。仮に、システムが複雑な構成をしているために自動設定が行えず、ユーザーによる設定補助を必要とした場合でも、ユーザーに分かりやすい形で構築内容を表示し、特別な通信や機器に関する知識無しに設定変更が行える。
【0042】
【発明の効果】
本発明によれば、多数の機器が接続された分散システムにおいて、機器の設定と機器の管理を容易にすることができる。
【図面の簡単な説明】
【図1】本発明における第1の実施例を適応したシステムの構成図である。
【図2】第1の実施例を適応した機器の構成図である。
【図3】第1の実施例におけるメッセージのフォーマットである。
【図4】第1の実施例におけるノードの自動検出を説明する図である。
【図5】第1の実施例におけるノード管理テーブルの構成図である。
【図6】第1の実施例における各ノードに設定する構築情報である。
【図7】第1の実施例における構築ツールの処理フローである。
【図8】第1の実施例における構築ツールの処理フローである。
【図9】第1の実施例における構築ツールの処理フローである。
【図10】本発明における第2の実施例を適用したシステム構成図である。
【図11】第2の実施例におけるノード管理テーブルの構成図である。
【図12】第2の実施例における機器の設置位置を検出するための説明図である。
【図13】第2の実施例における構築ツールの処理フローである。
【図14】第2の実施例におけるユーザーが構築ツールが生成した構築情報を確認する構築情報確認画面である。
【図15】第2の実施例におけるユーザーが構築ツールが生成した構築情報を変更する構築情報変更画面である。
【符号の説明】
100…ネットワーク、110…コントローラ、120…計算機。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a setting method in a distributed system configured to set each node necessary to exchange data between these nodes in a distributed system composed of a plurality of devices and computers connected to a network.
[0002]
[Prior art]
When a plurality of computers and at least one printer are connected to the network and there is a print request from an application program installed in the computer, it is determined whether or not there is a local printer connected to the computer. If the computer does not exist, a setting method for printer connection in a personal computer network in which the computer reads a file in the computer and automatically performs connection processing of a remote printer connected to the network is disclosed in, for example, Japanese Patent Laid-Open No. 6-242903. Has been.
[0003]
[Problems to be solved by the invention]
When a device is set by a conventional setting method, information about the device is necessary to establish communication with the device. For example, when a new device is connected to the network, in order to communicate with the device, software and data such as a communication driver must be obtained from the device manufacturer, and connection processing for communicating with the device must be performed. I had to. For this reason, in a system in which a large number of devices are connected to a network, device information that must be obtained increases, and it is difficult to obtain and manage the information. In particular, in a system in which addition and replacement of devices frequently occur, device information must be obtained frequently, and addition and replacement of these information must be performed frequently, which makes management of device information more difficult. Also, by removing or changing devices without updating the managed device information, there is a problem that the devices that are actually connected to the network do not match the device information related to these devices. It was very difficult to manage.
[0004]
An object of the present invention is to solve the problem that device setting and device information management are difficult in a distributed system in which many devices are connected.
[0005]
[Means for Solving the Problems]
In order to solve the above problem, in the setting method of the present invention,
(1) Automatically recognize devices connected to the network,
(2) Collect information held by the device from the recognized device,
(3) Generate information necessary to configure the device based on the collected information,
(4) Communication between devices is realized by setting the generated information in the devices.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
A first embodiment of the present invention will be described.
[0007]
In the first embodiment of the present invention, an apparatus setting method in a production system will be described as an example. FIG. 1 shows a configuration example of a system according to the present invention. A controller 110, a device 111, a device 112, a device 113, and a device 114 are connected to the network 100. The devices 111 and 112 are input devices that collect production line information such as sensors, and the devices 113 and 114 are output devices that move the production line that performs motor control and the like. The controller 110 communicates with these devices via the network 100 and controls, for example, a conveyor of the production line. In this system, the controller 110 centrally controls the devices. The computer 120 has installed a construction tool for setting a node connected to the network 100, and the construction tool of the computer 120 is connected to the controller 100, the device 111, the device 112, the device 113, and the device 114 via the network 100. Set. The computer 120 is also connected to the network 150. The network 150 is connected to the Internet via a gateway 151 and can communicate with a computer 161 connected to another network 160 via another gateway 152. The network 150 and the network 160 are networks for performing communication between computers such as Ethernet. Here, the controller 110 may be a computer that can execute a control program, and may be a computer. Further, the network 100 connecting the devices and the computer may not be a bus type network as long as it is a means capable of exchanging data between nodes, and means such as wireless communication may be used.
[0008]
A configuration example of devices and controllers connected to the network 100 is shown in FIG. The device 250 connected to the network 200 includes a control unit 260 that performs communication and device control, and a machine unit 270 that mechanically or electrically drives the device. For example, in the case of an optical sensor, the mechanical unit 270 is a part that detects an object by transmitting infrared rays or the like, and transmits the detection result to the control unit 260 as an electrical signal. The control unit 260 performs processing such as conversion of the electrical signal into a digital signal or conversion into an engineering value, stores the processing result in a message, and transmits the message to the network 200. The control unit 260 includes a transceiver 206 that processes signals on the network 100, a communication processor 201 that performs communication control such as message assembly, a processor 202 that executes a device control program, a communication and device control program, and various data. A ROM 203 which is a nonvolatile storage device for storing, a RAM 204 which is a volatile storage device used when executing a program, and an I / O interface 205 for exchanging data with the machine unit 270 are configured. An I / O (207) is connected to the I / O interface 205, and the control unit 260 inputs a signal from the machine unit 270 and outputs a signal to the machine unit 270 via the I / O interface 205. . The processor 201, the processor 202, the ROM 203, the RAM 204, and the I / O interface 205 are connected to the internal bus 210 and can exchange data with each other. The controller differs from the device in the processing capacity of the processor 202 and the storage capacity of the ROM 203 and RAM 204. Further, the I / O interface 205 and the machine unit 270 are not provided. Other configurations are the same as those of the device 250.
[0009]
A format of a message transmitted and received by each node via the network 100 is shown in FIG. The message 300 includes an identifier 301, an address 302, and data 303. An identifier 301 is a character string assigned to identify a message, an address 302 is a node address of each node connected to the network 100, and data 303 is control data for controlling sensor measurement results and motors. Etc. In the address 302, the node address of the node that transmitted the message or the node address of the destination of the message is set. The node that has received the message 300 determines what the node address set in the address 302 indicates by the message identifier 301. Each node connected to the network 100 determines whether to receive the message 300 based on the identifier 301 attached to the message 300 or the identifier 301 and the address 302.
[0010]
The construction tool that sets each node automatically recognizes the node connected to the network 100. The data flow at this time is shown in FIG. When the construction tool starts processing, it first detects all nodes connected to the network. As shown in FIG. 4A, a computer 420 in which a controller 410, an input device 411, an input device 412, an output device 413, and a construction tool 430 are installed is connected to a network 400. Each node connected to the network 400 is given a node address so as not to overlap. The node address is set in advance in each node by a dip switch or a local terminal. When the construction tool 430 is activated, the construction tool 430 transmits a message 401 to the network 400. An identifier A indicating that the message 401 is a node confirmation message is assigned to the message 401, and the construction tool sets an appropriate node address to the address 302. Data 303 is not given.
[0011]
Upon receiving the message 401, each node connected to the network 400 determines that the message 401 is a node confirmation message based on the identifier 301 of the message 401. As a result, processing suitable for the node confirmation message is executed. Each node reads the address 302 in the message 401 and compares it with the node address of its own node. If the address 302 in the message 401 matches the node address of the own node, the own node address is set in the address 302, the identifier A indicating that it is a message confirmation message is added, and the response message 402 is sent to the network 400. Send. The construction tool 430 determines that a node having the same node address as that set in the message 401 is connected to the network 400 by receiving the response message 402 from another node. In the example of FIG. 4A, the construction tool 430 sets the node address 1 in the node confirmation message 401 and broadcasts it to the network 400. Each node that has received this determines whether or not the node address of its own node is node address 1. The input device 411 is assigned node address No. 1, and the input device 411 sets the node address No. 1 of its own node in the response message 402 and broadcasts it. By receiving the response message 402 in which the node address No. 1 is set, the construction tool detects that the node in which the node address No. 1 is set is connected to the network 400. The construction tool 430 can detect the node addresses of all nodes connected to the network by sequentially repeating the same process for all addresses from the minimum value of the node addresses to the maximum value of the node addresses. .
[0012]
Further, it is possible to detect a node disconnected from the network by periodically repeating this process to detect all nodes connected to the network and comparing the newly detected node with the previously detected node. Here, the message identifier and the address size shown in FIG. 3 are determined in advance, for example, 2 bytes each. An identifier A indicating a node confirmation message is also determined in advance, and is represented by, for example, 1000 of several orders. When each node receives a message in which 1000 is added to the first two bytes of the message, the node determines that the message is a node confirmation message. The message format of the node confirmation message is defined in advance. In the node confirmation message, a 2-byte node address is set as an address, and it is determined in advance that no data exists. When a new node is connected to the network 400, the construction tool 430 automatically detects this node. As shown in FIG. 4B, when the output device 414 is newly added to the system configuration of FIG. 4A, the output device 414 has an identifier A indicating that it is a node confirmation message at the node address of its own node. Is broadcast to the network 400. By receiving this message, the construction tool 430 can detect that a new node has been added and know the node address of the node. A node newly connected to the network 400 always transmits a node confirmation message in which the node address of the own node is set.
[0013]
When the construction tool 430 detects a node address of a node connected to the network 400, the construction tool 430 uses the node address to transmit a message to the node. By transmitting a message by designating a destination node address as the message address, the message can be transmitted to that node. By requesting data transmission to the node, information held by the node is read. The manufacturer that produces the device stores various information about the device in the ROM 203 when the device is shipped. These pieces of information stored in the device can be read by transmitting a data read request from another node connected to the network 200 to the processor 201 via the transceiver 206. The access method to these pieces of information is determined in advance according to the standard and the like, and it is possible to read the device information provided by each manufacturer in the same way. For example, the name of the manufacturer that developed the device is represented by 30 bytes, and the information number is determined to be number 3. In order to read the development manufacturer name of the device A via the network, an identifier indicating that the message is a message requesting data as an identifier, a node address of the device A as an address, and data 3 indicating information number as data (information Set number 3) and broadcast the message. Receiving this, the communication processor 201 of the device A reads the development manufacturer name from the ROM 203. An identifier indicating that it is a response message for a message requesting data, a node address of the own node, and a developer manufacturer name read as data are set in the message and broadcast to the network.
[0014]
The construction tool can receive this response message based on the identifier and the address, and can receive the name of the development manufacturer of the device A. Using this access method, the construction tool 430 reads information held by the node from all nodes connected to the detected network. The read information is registered in the node management table 500 shown in FIG. Node addresses of the detected nodes are registered in the node address 501, and information read from these nodes is sequentially registered in the node management table 500. The input / output classification 502 is information indicating whether the node is an input device or an output device, the data length 503 is the data length of data that can be transmitted or received by the node, and the manufacturer 504 is the manufacturer that developed the node. The file address 505 is the Internet address of the file to be accessed when the device information is sufficient, the catalog number 506 is the catalog number of the node, and the time interval 507 is the node sending a message. Or a time interval at which a message can be received. In the case of a device such as a sensor, a sufficient ROM is not provided like a computer because of cost and mounting space problems. For this reason, not all data required by the construction tool is stored in the ROM. Therefore, the device may not hold information required by the construction tool.
[0015]
In order to operate a system such as a production line, information from input devices such as sensors is read and processed, and the processing result is sent to an output device such as a motor to drive the motor. To do this, it is necessary to communicate between the sensor program, the controller control program, and the motor program. That is, communication settings between programs must be performed. The construction tool generates construction information necessary for communication setting based on information registered in the node management table. An example of setting the construction tool is shown in FIG. The system shown in FIG. 6 includes a controller 610, an input device 620, and an output device 630, and these nodes transmit and receive messages via the network 600. The network 600 is also connected to a computer in which the construction tool is installed, but is not shown in the figure. A program is installed in the controller 610. These programs are an application program 611 that is a control program for controlling devices and a protocol processing program 612 that is a program for controlling communication. Similarly, an application program 621 and a protocol processing program 622 that control the input device are installed in the input device 620, and an application program 631 and a protocol processing program 632 that control the output device are installed in the output device 630. Yes. These programs are installed in the RAM 204 by the processor 202 from the ROM 203 or directly installed in the RAM 204 from the network. Data measured by the application program 621 of the input device 620 is transmitted to the network 600 via the protocol processing program 622. This data is received by the protocol processing program 612 of the controller 610 and processed by the application program 611. The processing result is transmitted to the network 600 by the protocol processing program 612 and received by the protocol processing program 632 of the output device 630. The received processing result is passed to the application program 631, and the output device 630 performs control such as changing the rotational speed of the motor based on the processing result.
[0016]
The construction tool sets information in the protocol processing programs 612, 622, and 632 based on the construction information, and realizes this data flow. It is assumed that the information setting method is determined in advance by a standard or the like as in the method of accessing information of each node. In the protocol processing program 622 of the input device 620, an identifier of a message transmitted by the construction tool, a message transmission time interval, and the like are set. In the protocol processing program 612 of the controller 610, as information necessary for receiving the message transmitted by the input device 620, the identifier of the message transmitted by the input device 620, the node address of the input device 620, the data length of the message, the message The transmission time interval is set. By setting these pieces of information, the controller 610 can identify and receive the message transmitted from the input device 620, and communication is established. The transmission time interval is a time interval at which the input device 620 transmits a message, and is used by the controller 610 to monitor a timeout of the input device 620 and the like. The message received by the protocol processing program 612 is received by the application program 611.
[0017]
The application program receives the received message using a function such as receive (id, address, data). id is an identifier of a message and indicates, for example, sensor information. The address is a node address of the input device 620 and indicates, for example, which sensor is the measured information. For example, data is a measurement result of the sensor. The application program 611 processes data from the input device 620 and transmits it to the output device 630. In order to transmit a message from the controller 610 to the output device 630, the construction tool is included in the protocol processing program 612 of the controller 610 and the protocol processing program 632 of the output device 630 in the same manner as when the message is transmitted from the input device 620 to the controller 610. Set the necessary information. When a message is transmitted from the controller 610 to the output device 630, the controller 610 transmits a message with a time interval equal to or greater than the time interval 507 of the output device 630, thereby increasing the reception frequency of the output device 630 and receiving the message. Avoid situations where you can't understand. Such construction information set by the construction tool in the protocol processing program is automatically generated from the node management table 500 by the construction tool.
[0018]
Hereinafter, this generation method will be described. First, it is determined from the node input / output classification 502 whether the node is a controller, an input device, or an output device. In the case of a controller, input and output are set. Next, the data length 503 is read, and the data length transmitted by the input device and the data length received by the output device are determined. The transmission / reception data length of the controller is set according to the data length on the device side. For example, if the transmission data length of the input device is 2 bytes, the reception data length of the controller is 2 bytes. Further, the time interval 507 is read. The time interval 507 is also set in accordance with the device. For example, when the time interval 507 of the input device is 100 milliseconds, a reception time interval of 100 milliseconds is set in the controller, and the timeout of the input device is monitored based on this time interval. When the time interval 507 of the output device is 500 milliseconds, the reception limit performance of the output device is 500 milliseconds. Therefore, 500 milliseconds is set as the transmission time interval in the controller, and the controller has 500 milliseconds or more. Send a message to the output device after a time interval. The reason why the controller setting is matched to the device is that the processor performance of the controller is higher and there are sufficient resources such as ROM and RAM. Furthermore, an identifier is assigned to communication between the controller and the device. When the identifier of the message is not determined in advance, such as an identifier indicating a node confirmation message or an identifier indicating a message requesting reading of node information, the construction tool automatically assigns the identifier. When the controller receives a message from the input device A and the input device B and transmits the message to the output device C and the output device D, for example, the identifier of the message is represented by a number and assigned sequentially from the first. That is, identifier 1 is assigned to a message transmitted from input device A to the controller, and identifier 2 is assigned to a message transmitted from input device B to the controller. As described above, construction information is generated. For example, in the input device A, construction information is generated such that the identifier of the message to be transmitted is 1 or 2 bytes of data transmitted at intervals of 100 milliseconds. Set in the protocol processing program of input device A and controller. On the controller side, a message to which identifier 1 and node address 1 are assigned is received, and the data length of the data is 2 bytes, and construction information is received that is received at a cycle of 100 milliseconds. By setting these construction information in the input device A and the controller, the message transmitted from the input device A can be received by the controller.
[0019]
The processing flow of the construction tool is shown in FIGS. The process of the construction tool is roughly divided into four steps.
[0020]
(1) Step 1 of automatically detecting a node connected to the network.
[0021]
(2) Step 2 of reading information from the detected node.
[0022]
(3) Step 3 of generating construction information based on the read information.
[0023]
(4) Step 4 for setting the generated construction information in each node.
[0024]
FIG. 7 shows the processing of Step 1 and Step 2, and FIG. 8 shows the processing of Step 3 and Step 4.
[0025]
When the construction tool is activated, the variable N representing the node number of the node is initialized by setting 0 (step 701), and a node confirmation message in which N is set as the node address is transmitted to the network (step 702). If a response message for the node confirmation message is received, that is, if the node with the node address N is connected to the network (step 703), the node address N is registered in the node management table (step 704). If no response is obtained for a certain time (step 703), the node address N is not registered in the node management table. If the node address N is not the last node address (step 705), 1 is added to the node address N (step 706), and the same processing is repeated for the next node address. If it is the last node address (step 705), one node address registered in the node management table is read (step 707), and necessary information is read from the node indicated by the read node address via the network (step 707). Step 708). It is determined whether or not the process of reading information has been completed for the nodes indicated by all the node addresses registered in the node management table (step 709). If not read from all nodes, the next node address is read and the same process is repeated. When the process of reading information from the nodes indicated by all the node addresses registered in the node management table is completed (step 709), the process proceeds to the next step shown in FIG.
[0026]
First, a master node is determined based on a node management table in which information collected from nodes connected to the network is registered (step 801). The master node is a controller or computer that controls the device, and is determined from the fact that the input / output section 502 is input / output. A slave is a device controlled by a master node. The system in this embodiment is a centralized control system, and there is only one node that can be a master node. If there are two or more nodes that can become master nodes (step 802), that is, if there are two or more nodes whose inputs / outputs are registered in the input / output section 502, the operator is notified of the abnormality (steps). 807), the process is terminated. When the master node can be identified (step 802), the communication condition of the slave node is confirmed (step 803). That is, it is determined whether or not all the information necessary for generating the construction information, such as the data length of the input / output device and the time interval, is available. If necessary information is not available (step 804), an attempt is made to access the Internet and collect the missing information (step 805). Since each device has a limited amount of information that can be held, it holds a file address 505 for accessing a file that stores data that supplements the missing information. This file is maintained on its own server by the manufacturer who developed the device, for example. The file name is, for example, catalog number 506. The file address 505 is, for example, ftp: // www. hitachi. co. jp / Device / Data /, and the construction tool accesses the computer 161, which is the file server of the developed manufacturer shown in FIG. 1, via the Internet based on the file address 505. Information on the device is H-XY3. It is saved as a text file called TXT. This file format is the same for each company, and is defined in advance by standards and the like. For example, when the device does not hold the time interval 507, the construction tool reads the file from the address indicated by the file address 505 and registers the time interval 507 in the node management table 500.
[0027]
If the slave node information necessary for generating the construction information cannot be obtained because the file does not exist (step 806), the operator is notified that the node cannot be constructed (step 807). ), The process is terminated. If necessary information is available (step 806), the process is continued. When slave information necessary for generating construction information is prepared (steps 804 and 806), construction information is generated (step 808) as described with reference to FIG. Based on the generated construction information, it is determined whether the resources of the master node are sufficient. If the resource is insufficient (step 809), the operator is notified that the resource is insufficient (step 807), and the process is terminated. For example, if the number of devices that perform communication is large and the memory capacity necessary to execute the protocol processing program of the master node is insufficient, it is considered that the resources are insufficient. Finally, the generated construction information is set in each node (step 810), and the process ends. In addition, although the example which reads a file via the internet when necessary information is insufficient was shown here, this information may exist on the local database of the computer in which the construction tool is installed. In this case, the file address 505 is, for example, file: // c: ¥ / Device / Data / and designates a local directory.
[0028]
In FIG. 7 and FIG. 8, nodes connected to the network are automatically detected, information held by the nodes is read from these nodes, construction information is generated based on the information read from these nodes, Explained how to set up nodes. However, in an actual system, once a node is set, a node is added as the system expands, or a replacement occurs due to device degradation, and the system state constantly changes. A method for automatically setting a node added or changed due to a change in the system configuration is required. FIG. 9 shows a process flow representing a process of automatically detecting and constructing the added node. The processing in FIG. 9 is continuously performed after the processing shown in FIGS. 7 and 8 is completed. As described with reference to FIG. 4B, the construction tool always receives a message flowing through the network, and determines whether a node confirmation message is not flowing. Upon receiving the node confirmation message (step 901), the construction tool determines whether or not the same node address as that set in the node confirmation message received from the node management table 500 is already registered in the node management table 500. To do. If the same address already exists (step 902), the node cannot be constructed because the node address setting of the added node is incorrect. The operator is notified that the node address setting is incorrect (step 903), and the process is terminated. If the addresses do not overlap (step 902), the node address is added to the node management table (step 904). Then, information is collected from the node indicated by the node address and registered in the node management table (step 905). It is determined whether necessary information has been collected (step 906). If there is no necessary information (step 907), the Internet is accessed (step 908), and the missing information is read from the file. Try. If the necessary information cannot be obtained (step 909), the operator is notified that the necessary information cannot be obtained (step 903), and the process is terminated. If necessary information is prepared (steps 907 and 909), construction information is generated (step 910). It is determined whether or not the resource of the master node is insufficient due to the addition of a new node. If the resource is insufficient (step 911), the operator is notified of this (step 903), and processing is performed. Exit. If there is no shortage of resources (step 911), the construction information is set in each node (step 912), and the process is terminated.
[0029]
The replacement of the device is considered to have occurred two processes of disconnecting the node from the network and adding the node. When a node is added, the setting method at the time of node addition shown in FIG. 9 may be used. For the detection of the disconnected node, the automatic detection of the node connected to the network shown in FIG. 7 as described above may be repeated at regular time intervals. However, the node address of the automatically detected node is managed by preparing a table different from the node management table 500. The node address 501 of the node management table 500 is compared with the node address registered in the newly prepared table, and the node detected at the previous detection is compared with the newly detected node. Check whether it exists. If there is a node that can no longer be detected, this node is regarded as disconnected from the network, and information related to this node registered in the node management table 500 is deleted. After deleting the information of the separated node from the node management table 500, the replaced device can be automatically set by using the automatic setting method of the additional node shown in FIG.
[0030]
According to this embodiment, in a distributed system composed of a single controller for controlling a plurality of devices or a computer and a plurality of devices for controlling a production line, the construction tool automatically detects nodes connected to the network; The distributed system can be automatically set by collecting information on detected nodes, generating system construction information based on this information, and setting the generated construction information in each node. it can. As a result, communication settings for devices that previously had to prepare data files related to communication drivers and devices in advance were automatically executed without preparing advance information, and the burden of managing information for system developers. Is reduced. In addition, even system developers without communication know-how can easily construct a system, reducing the learning period and learning costs related to communication for system developers, and greatly increasing the work period for system construction. It is shortened and production can be started immediately after the production system is introduced.
[0031]
A second embodiment of the present invention will be described.
[0032]
The second embodiment of the present invention differs from the first embodiment in that there is no controller or computer that performs centralized control. The first step of automatically detecting a node connected to the network and the second step of collecting information from the detected node are the same as in the first embodiment.
[0033]
In the second embodiment, a home automation system that controls home appliances connected via a network will be described as an example. The system configuration is shown in FIG. A monitoring panel 1010, an AV device controller 1011, a television 1012, a video 1013, an audio 1014, an illumination switch 1 (1015), an illumination switch 2 (1016), an illumination 1 (1017), an illumination 2 (1018), and an illumination 3 (1019). It is connected to the network 1000 and can exchange data with each other via the network 1000. Each device has a communication interface and has a built-in program for controlling the device, similar to the device 250 described in FIG. The AV device controller 1011 is a controller that controls AV devices such as a television and audio, and the audio 1014 is an audio device such as a mini component. The monitoring panel 1010 is a controller for displaying the operation status of the device and operating the device, and includes a display device such as a liquid crystal display. A construction tool 1050 is installed in the monitoring panel 1010, and the construction tool 1050 constructs each node. Here, an example in which the construction tool 1050 is installed in the monitoring panel 1010 is shown. However, if the node is a node that includes a display device and is connected to the network, the construction tool 1050 is installed in another device or computer such as a television or a personal computer. May be. Although an example using a bus network as the network 1000 is shown here, wireless communication or communication using a power line may be used as long as it is a means capable of transmitting and receiving data. The steps of automatically detecting the node connected to the network 1000 by the construction tool 1050 and the step of reading information from the detected node are the same as in the first embodiment. However, the information read from the node is different.
[0034]
A node management table in the second embodiment is shown in FIG. The node address 1101 is a node address of a node automatically detected from the network. The device type 1102 represents a device type such as an AV device, a lighting device, an air conditioning device, or a security device. The input / output section 1103, the data length 1104, and the manufacturer 1106 are the same as those in the first embodiment. A setting position 1105 indicates a place where the device is installed. The device name 1107 represents the name of the device, and is a product name such as “inverter air conditioner white bear”, for example. The node address 1101, the device type 1102, the input / output classification 1103, the data length 1104, the manufacturer 1106, and the device name 1107 are information stored in the ROM at the time of product shipment, and the construction tool uses the same method as in the first embodiment. You can read more. The node address 1101 is, for example, an 8-byte address. The first 4 bytes are a manufacturer number, and the next 4 bytes are a product number managed by each manufacturer. By adjusting the manufacturer number so that it does not overlap among manufacturers, a node address that does not overlap all devices can be assigned at the time of shipment.
[0035]
The installation position 1105 can be determined only after the user of the device has purchased and installed the device. An acquisition method of the installation position 1105 is shown in FIG. The installation position of the device is automatically acquired for each device and stored in the own node. In the room B 1200 which is a room in the house, a position transmission device 1220 having an infrared communication transmission function, an illumination switch 1 (1221), an illumination 1 (1222), an illumination 2 (1223), and an illumination 3 (1224). is set up. Illumination switch 1 (1221), illumination 1 (1222), illumination 2 (1223), illumination 3 (1224) are equipped with receivers for infrared communication, read data obtained by infrared communication into their own RAM, and store them in internal RAM. Store. The location transmission device 1220 is assigned a different identifier at the time of shipment of the location transmission device 1220, and periodically transmits this identifier when power is supplied. Each room is provided with this position transmission device 1220 and transmits different identifiers. Hereinafter, this identifier is referred to as a position identifier. The lighting switch 1 (1221), the lighting 1 (1222), the lighting 2 (1223), and the lighting 3 (1224) receive the position identifier 1250 transmitted by the position transmitting device 1220 and register it as the installation position 1105 in the node management table 1100. To do. As a result, devices installed in the same room can hold the same installation position 1105.
[0036]
The processing flow of the construction tool is shown in FIG. The step of automatically detecting a node connected to the network and the step of reading information from the detected node are the same as in FIG. The construction tool sets each device based on information in the node management table 1100. First, each node is classified by the device type 1102 (step 1301). Next, the input / output classification 1103 is read, and generation of construction information is attempted for each device group classified by the device type (step 1302). If each group has one input device and a plurality of output devices, or a plurality of input devices and one output device, the communication partner is uniquely determined. Therefore, construction information can be generated for each device group based on information such as the data length 1104 as in the first embodiment. However, when there are a plurality of input devices and a plurality of output devices, the communication relationship is not uniquely determined, and the device cannot be set. For example, in the system configuration example illustrated in FIG. 10, the AV devices are the AV device controller 1011, the television 1012, the video 1013, and the audio 1014. The only input device that transmits a message is the AV device controller 1011, and the other input devices are all output devices that receive the message.
[0037]
Therefore, the communication relationship of transmitting a message from the AV device controller 1011 to the television 1012, the video 1013, and the audio 1014 is uniquely determined, and each device can be set. However, the lighting devices include the lighting switch 1 (1015), the lighting switch 2 (1016), the lighting 1 (1017), the lighting 2 (1018), and the lighting 3 (1019), the input device is the lighting switch 1 (1015), the lighting While there are two switches 2 (1016), there are three output devices, illumination 1 (1017), illumination 2 (1018), and illumination 3 (1019). For this reason, it is impossible to determine which illumination receives a message transmitted by which illumination switch, and the communication relationship cannot be uniquely defined. As described above, when the communication relationship is uniquely determined by the device type 1102 and the input / output classification 1103 and construction information can be generated (step 1303), the construction information is set in each node (step 1311), and the process is terminated. If construction information cannot be generated (step 1303), the communication position is further determined using the installation position 1105 (step 1304). If the construction information can be generated by the device type 1102, the input / output classification 1103, and the installation position 1105 (step 1306), the construction information is set in each node (step 1311), and the process ends. For example, among the illumination switch 1 (1015), illumination switch 2 (1016), illumination 1 (1017), illumination 2 (1018), illumination 3 (1019) shown in FIG. 1 (1017) is installed in the same room, the same position identifier is registered in the node management table 1100 as the installation position 1105, and the illumination switch 2 (1016), illumination 2 (1018), and illumination 3 (1019) are If they are installed in the same room and the same location identifier is registered in the node management table 1100 as the installation location 1105, it is determined that communication is performed between devices installed in the same room, and construction information is generated. These two rooms have only one input device and can uniquely define a communication relationship. However, when these devices are installed in the same room, it cannot be determined which lighting switch communicates with which lighting. When construction information cannot be generated in this way (step 1306), the construction tool generates construction information assuming a system configuration (step 1307).
[0038]
For example, assuming that illumination switch 1 (1015) and illumination switch 2 (1016) control the same number of illuminations, two of illumination 1 (1017), illumination 2 (1018), and illumination 3 (1019) are illuminated switches. 1 (1015) is determined to be controlled by the illumination switch 2 (1016). The output device is automatically assigned to the input device in order from the smallest node address. For example, it is determined that a message is transmitted from the lighting switch 1 (1015) to the lighting 1 (1017) and the lighting 2 (1018), and a message is transmitted from the lighting switch 2 (1016) to the lighting 3 (1019), and construction information is generated. To do. However, the communication relationship determined based on such assumptions does not always match the user's request. Therefore, the communication relationship is presented to the user, and it is confirmed whether the determination result is correct (step 1308). If it is determined that the user is correct (step 1309), the generated construction information is installed in each node (step 1311). If it is determined that the user is not correct (step 1309), the user changes the communication relationship (step 1310). The construction tool modifies the construction information based on the change result, sets the modified construction information in each node (step 1311), and ends the process.
[0039]
An example of the configuration information confirmation screen for the user in step 1309 is shown in FIG. 14, and an example of the configuration information change screen in step 1310 is shown in FIG. FIG. 14 is a construction information display screen 1400 that displays construction information generated by the construction tool to the user. An identifier that is unnecessary for the user to determine whether the construction information is correct or a message data length is not displayed, but such information may be displayed. In the construction information display screen 1400, a manufacturer 1106 and a device name 1107 registered in the node management table 1100 as information for identifying a node are displayed for each device. The construction information display screen 1400 indicates that the AV remote controller 1401 manufactured by A sends a message to the X TV 1402 manufactured by A, Y video 1403 manufactured by B, and Z cassette player 1404 manufactured by C. Similarly, the Y lighting switch 1405 manufactured by the N company sends a message to the Y lighting 1407 manufactured by the H company and the Z lighting 1408 manufactured by the J company, and the X lighting switch 1406 manufactured by the M company sends a message to the X lighting switch 1409 manufactured by the K company. Send to control. Here, the control is power on / off control or the like. If this content is correct, the user selects “Yes” using an input means such as a mouse or a touch panel. If this content is not correct, the user selects “No”. When “No” is selected, the screen shifts to a construction information change screen 1500 shown in FIG.
[0040]
The construction information change screen 1500 displays the same information as the construction information display screen 1400, except that the construction content can be changed. For example, when it is desired to turn on the Z lighting manufactured by J company not when the Y lighting switch manufactured by N company is pressed, but when the X lighting switch manufactured by M company is pressed, The figure (1551) which shows X illumination switch made from M company, and the figure (1552) which shows Z illumination made from J company are selected by input means, such as a touch panel. As a result, the communication partner of the Z lighting manufactured by J company is changed from the Y lighting switch manufactured by N company to the X lighting switch manufactured by M company. When the end button is selected by the user and the construction content changing operation is completed, the construction tool corrects the construction information according to the content changed by the user.
[0041]
According to this embodiment, in a distributed system composed of a plurality of devices, the construction tool automatically detects a node connected to the network, collects information of the detected node, and the system uses this information. The distributed system is automatically set by the steps of generating the build information, the user changing the build information if the build information cannot be generated, and the step of setting the generated build information in each node. Can do. In the past, knowledge of communication and knowledge of the device itself were required to configure the communication settings of the device. However, these settings are automatically performed, and a system can be built without the support of a system engineer or the like. The system can be easily introduced into ordinary homes. Even if the system has a complicated configuration, automatic settings cannot be made, and even if user assistance is required, the contents of the configuration are displayed in a user-friendly manner, and there is no knowledge about special communications or equipment. You can change the setting.
[0042]
【The invention's effect】
ADVANTAGE OF THE INVENTION According to this invention, the setting of an apparatus and management of an apparatus can be made easy in the distributed system with which many apparatuses were connected.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a system to which a first embodiment of the present invention is applied.
FIG. 2 is a block diagram of a device to which the first embodiment is applied.
FIG. 3 is a message format in the first embodiment;
FIG. 4 is a diagram for explaining automatic node detection in the first embodiment;
FIG. 5 is a configuration diagram of a node management table in the first embodiment.
FIG. 6 is construction information set in each node in the first embodiment.
FIG. 7 is a processing flow of the construction tool in the first embodiment.
FIG. 8 is a processing flow of the construction tool in the first embodiment.
FIG. 9 is a processing flow of the construction tool in the first embodiment.
FIG. 10 is a system configuration diagram to which a second embodiment of the present invention is applied.
FIG. 11 is a configuration diagram of a node management table in the second embodiment;
FIG. 12 is an explanatory diagram for detecting an installation position of a device in the second embodiment.
FIG. 13 is a processing flow of the construction tool in the second embodiment.
FIG. 14 is a construction information confirmation screen for confirming construction information generated by a construction tool by a user in the second embodiment.
FIG. 15 is a construction information change screen for changing construction information generated by the construction tool by the user in the second embodiment.
[Explanation of symbols]
100 ... Network, 110 ... Controller, 120 ... Computer.

Claims (4)

ネットワークに接続された複数の機器により構成される分散システムの設定方法であって、前記ネットワークに接続された機器を検出するステップと、検出された機器より情報を収集するステップと、収集された情報をもとに機器に設定する情報を判断するステップと、判断された情報を機器に設定するステップとからなり、
前記収集するステップは、ノードが前記ネットワークに接続されていた場合、前記ノードのアドレスをノード管理テーブルに登録するステップを含み、
前記判断するステップは、前記ノード管理テーブルに基づいてマスターノードを識別するステップと、前記マスターノードが識別できない場合、異常を通知するステップを含む、分散システムの設定方法。
Information A method of setting configured distributed system of a plurality of devices connected to a network, detecting a device connected to the network, the step of collecting information from the detected device, collected And determining the information to be set in the device based on the step, and setting the determined information in the device ,
The step of collecting includes registering an address of the node in a node management table when the node is connected to the network;
The method of setting a distributed system, wherein the determining step includes a step of identifying a master node based on the node management table and a step of notifying an abnormality when the master node cannot be identified .
前記ネットワークに計算機を接続し、該計算機にインストールされた構築ツールにより機器を設定する、請求項1記載の分散システムの設定方法。 The network connecting the computer to set the device by the installed construction tool to the computer, setting a distributed system of claim 1, wherein. 前記構築ツールが機器に関する情報を持たず、前記機器より収集した情報のみに基づいて前記機器の設定を行う、請求項2記載の分散システムの設定方法。 It said construction tool has no information about the device, to set the device based only on information collected from the device, setting a distributed system of claim 2. 前記ネットワーク上にノードアドレスを格納したメッセージをブロードキャストし、該メッセージのノードアドレスと同じノードアドレスが設定されたノードが応答を送信し、該応答を受信することにより該ノードアドレスが設定されたノードがネットワークに接続されていると判断することにより、ネットワーク接続されたノードを自動的に検出する、請求項1記載の分散システムの設定方法。Broadcasts a message containing the node address on the network, the node node address with the same node address is set in the message transmits a response, the node in which the node address is set by receiving the response 2. The distributed system setting method according to claim 1, wherein a node connected to the network is automatically detected by determining that the node is connected to the network.
JP07500499A 1999-03-19 1999-03-19 How to set up a distributed system Expired - Fee Related JP3757669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07500499A JP3757669B2 (en) 1999-03-19 1999-03-19 How to set up a distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07500499A JP3757669B2 (en) 1999-03-19 1999-03-19 How to set up a distributed system

Publications (2)

Publication Number Publication Date
JP2000269998A JP2000269998A (en) 2000-09-29
JP3757669B2 true JP3757669B2 (en) 2006-03-22

Family

ID=13563634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07500499A Expired - Fee Related JP3757669B2 (en) 1999-03-19 1999-03-19 How to set up a distributed system

Country Status (1)

Country Link
JP (1) JP3757669B2 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002305470A (en) * 2001-04-06 2002-10-18 Matsushita Electric Works Ltd Power line carrier communication system
JP2002374250A (en) * 2001-06-15 2002-12-26 Nec Corp Method for registration/revision setting of network configuration information in communication system, and the communication system, and program
JP2003289589A (en) * 2002-01-09 2003-10-10 Matsushita Electric Ind Co Ltd Appliance data collecting system
JP4153216B2 (en) * 2002-02-18 2008-09-24 日本電信電話株式会社 Correlation information processing method, correlation information processing apparatus, program, and recording medium
JP4123838B2 (en) * 2002-06-20 2008-07-23 ダイキン工業株式会社 Equipment control system
JP2004140814A (en) * 2002-09-27 2004-05-13 Matsushita Electric Ind Co Ltd Resources management system
TWI318831B (en) 2002-09-27 2009-12-21 Panasonic Corp Resource management system
JP2004295873A (en) * 2003-03-12 2004-10-21 Matsushita Electric Ind Co Ltd Remote control device, remote control method, and remote controlled device
US20040260404A1 (en) * 2003-06-23 2004-12-23 Russell Thomas C. Method and apparatus for self-configuring supervisory control and data acquisition (SCADA) system for distributed control
JP2005062952A (en) * 2003-08-13 2005-03-10 Toshiba Corp Content management method and device
JP2005079691A (en) * 2003-08-28 2005-03-24 Nippon Telegraph & Telephone East Corp Automatic discrimation setting apparatus of router and method, and program
US8151280B2 (en) 2003-10-27 2012-04-03 Microsoft Corporation Simple and dynamic configuration of network devices
JP4622527B2 (en) * 2005-01-11 2011-02-02 パナソニック電工株式会社 Gateway device and remote monitoring control system
KR101576684B1 (en) * 2009-10-12 2015-12-11 삼성전자주식회사 The apparatus and method of multiple input device based home network
JP2013168076A (en) * 2012-02-16 2013-08-29 Nomura Research Institute Ltd System, method, and program for management
JP6111965B2 (en) 2012-12-10 2017-04-12 富士通株式会社 Management device, management method, program
CN106373396A (en) * 2016-09-26 2017-02-01 北京东土科技股份有限公司 Intelligent traffic cloud control system-based control server
JP6859794B2 (en) * 2017-03-28 2021-04-14 日本電気株式会社 Communication system setting method, communication system setting device and communication system setting program
JP7485989B2 (en) 2020-09-16 2024-05-17 日本電信電話株式会社 COMMUNICATION SYSTEM, CONTROL METHOD, CONTROL DEVICE, AND PROGRAM

Also Published As

Publication number Publication date
JP2000269998A (en) 2000-09-29

Similar Documents

Publication Publication Date Title
JP3757669B2 (en) How to set up a distributed system
KR100596758B1 (en) Home network system
US7761563B2 (en) BACnet communication Status objects and methods of determining communication status of BACnet devices
US7650323B2 (en) CAN communication for building automation system
JP4065434B2 (en) Router device and method for starting up router device
KR20040005598A (en) Domestic electrification appliance and apparatus, method, program for controlling the same
US8484323B2 (en) Network system connected with multiple master devices and method for operating the same
JP4698129B2 (en) Control device
JP4792964B2 (en) Location information system
JP4715499B2 (en) Remote monitoring and control system
JP2013207705A (en) Control device
JP4792963B2 (en) Location information system
JP4039457B2 (en) IDENTIFICATION INFORMATION AUTOMATIC GENERATION DEVICE, INFORMATION STORAGE SYSTEM, AND INFORMATION STORAGE SYSTEM INFORMATION ACQUISITION METHOD
JP4404619B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
JP4955736B2 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
JP4635523B2 (en) POSITION INFORMATION SYSTEM AND DEVICE USED IN THE SYSTEM, CONCENTRATOR, AND DEVICE MANAGEMENT DEVICE
JP2007257137A (en) User interface control apparatus and user interface control system
WO2006134650A1 (en) Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
JP5789722B2 (en) Building sensor network construction apparatus and method
WO2006030697A1 (en) Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
Zhou et al. A Plug-and-Play Framework for an HVAC Air-Conditioning Unit and Temperature Sensor Auto Recognition Technique--Part I: Review of Critical Technologies.
CN101164294A (en) Network control protocol device and net connecting method thereof
JP2009032276A (en) Remote controller
WO1999024881A1 (en) Control system using sequence control apparatus, sequence control apparatus, and method of controlling transmission and reception of signals by control system using sequence control apparatus
JP2014127041A (en) Apparatus management device, apparatus management method and apparatus management program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050426

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050623

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051219

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

Free format text: PAYMENT UNTIL: 20090113

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100113

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100113

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110113

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110113

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120113

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130113

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees