JP4087366B2 - COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD - Google Patents

COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD Download PDF

Info

Publication number
JP4087366B2
JP4087366B2 JP2004267035A JP2004267035A JP4087366B2 JP 4087366 B2 JP4087366 B2 JP 4087366B2 JP 2004267035 A JP2004267035 A JP 2004267035A JP 2004267035 A JP2004267035 A JP 2004267035A JP 4087366 B2 JP4087366 B2 JP 4087366B2
Authority
JP
Japan
Prior art keywords
address
mac address
address server
echonet
request packet
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 - Lifetime
Application number
JP2004267035A
Other languages
Japanese (ja)
Other versions
JP2005027348A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2004267035A priority Critical patent/JP4087366B2/en
Publication of JP2005027348A publication Critical patent/JP2005027348A/en
Application granted granted Critical
Publication of JP4087366B2 publication Critical patent/JP4087366B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

本発明は、エコーネット等のネットワーク上で所定の制御プロトコルを用いて通信を行う通信装置、通信システム及び通信方法に関する。   The present invention relates to a communication apparatus, a communication system, and a communication method for performing communication using a predetermined control protocol on a network such as an echo net.

近年、冷蔵庫や洗濯機等の白物家電、AV家電、パーソナルコンピュータ等の情報機器、携帯電話等のモバイル機器などに通信機能を持たせた、いわゆる情報家電の開発が盛んに行われており、各機器ごとにデジタル技術を利用した種々の機能が提案されている。   In recent years, development of so-called information home appliances in which communication functions are provided in white appliances such as refrigerators and washing machines, information appliances such as AV home appliances and personal computers, and mobile devices such as mobile phones has been actively performed. Various functions using digital technology have been proposed for each device.

情報家電の一つの応用がホームネットワークの利用である。ホームネットワークは、家庭内におけるネットワーク技術であり、上述した様々な情報家電同士を相互に接続して通信を行う。   One application of information appliances is the use of home networks. The home network is a network technology in the home, and performs communication by connecting the various information appliances described above to each other.

この種のホームネットワーク技術として、特に最近注目を集めているのがインターネット技術である。例えば、音楽配信やホームページ閲覧、電子メール等、次々とホームネットワークユーザにとって魅力的なアプリケーションが開発され、そのユーザ数は増加の一途をたどっている。   As this type of home network technology, the Internet technology has attracted particular attention recently. For example, applications that are attractive to home network users, such as music distribution, homepage browsing, and e-mail, have been developed one after another, and the number of users continues to increase.

一方、ホームネットワークの1つの応用例が設備系ネットワーク、あるいはホームオートメーションとしての利用である。これらのネットワークには、エアコンや照明、白物家電等が接続され、機器の状態監視や遠隔制御等がアプリケーションとして考えられる。   On the other hand, one application example of a home network is use as an equipment network or home automation. These networks are connected to air conditioners, lighting, white goods, etc., and device status monitoring, remote control, etc. can be considered as applications.

この種の設備系ネットワークの日本におけるデファクトスタンダードになると期待されているのがエコーネットである。エコーネットは、電灯線、ツイストペア線等の様々な物理媒体上で、設備系機器(白物家電等)を制御するためのコマンド、プロトコル、オブジェクト、API等を規定している(例えば、非特許文献1参照)。このエコーネットは、日本国内の複数の電機メーカを中心に設立されたコンソーシアムがその標準化を担っており、既にバージョン1のスペック等が発行され、商品化も始まろうとしている。
特開2000−183941号公報 http://www.echonet.or.jp
Echonet is expected to become the de facto standard in Japan for this type of equipment network. Echonet defines commands, protocols, objects, APIs, etc. for controlling equipment devices (white goods, etc.) on various physical media such as electric light wires and twisted pair wires (for example, non-patented) Reference 1). This Echonet is standardized by a consortium established mainly by a number of electrical manufacturers in Japan, and version 1 specifications have already been issued and commercialization is about to begin.
JP 2000-183941 A http://www.echonet.or.jp

エコーネットは、それ自体がアドレス体系を持ち、「インターネット」のアドレス体系の上に「エコーネット」のアドレス体系を乗せる、といった工夫を行う必要がある。エコーネットアドレスは論理的なアドレスであるため,機器の電源投入時などに、エコーネットアドレスを決定するための決定手順を行う必要がある。   The Echonet itself has an address system, and it is necessary to devise such that the “Echonet” address system is placed on top of the “Internet” address system. Since the echonet address is a logical address, it is necessary to perform a determination procedure for determining the echonet address when the device is turned on.

しかしながら、エコーネットアドレスの決定は、全てのノードが行う必要のある初期化手順であるため、「初期化時に、同じアドレスの使用を希望しているノードが、同時に複数存在する場合にはどうすればよいか」、あるいは、アドレスの決定時のみでなく、例えば特定のサーバを決定する場合に、「同時に複数のノードが、特定のサーバになろうとした場合にどうすればよいか」といった問題を考えておかないと、競合の問題が発生し、最悪の場合、アドレスやサーバの重複、あるいは初期化処理を無限に繰り返すといった事態が発生する可能性がある。   However, since the determination of the Echonet address is an initialization procedure that must be performed by all nodes, “What should I do if there are multiple nodes that want to use the same address at the time of initialization?” Or, not only when determining addresses, but when deciding on a specific server, for example, "What should I do if multiple nodes try to become specific servers at the same time?" There is a possibility that a conflict problem occurs, and in the worst case, an address or a server overlaps or the initialization process is repeated infinitely.

通信のために使用されるアドレスの決定について、公知の方法が提案されている(特許文献1参照)。   A known method has been proposed for determining an address used for communication (see Patent Document 1).

本発明は、上記事情を考慮してなされたもので、アドレスの初期化時やサーバ設定時に競合が起こった場合でも、適切な調停機構を持った通信装置、通信システム及び通信方法を提供することを目的とする。   The present invention has been made in consideration of the above circumstances, and provides a communication device, a communication system, and a communication method having an appropriate arbitration mechanism even when a conflict occurs at the time of address initialization or server setting. With the goal.

本発明の一態様によれば、ネットワーク上で、所定の制御プロトコルを用いて他の通信装置との間で通信を行う通信装置であって、前記所定の制御プロトコル上で管理されるアドレスを決定する権限をもつアドレスサーバになることを要求するためのアドレスサーバ検出要求パケットを前記ネットワーク上に同報送信するサーバ要求送信部と、前記アドレスサーバ検出要求パケットを同報送信してから第1の所定時間内に、アドレスサーバである旨を示す他の通信装置からのパケットが受信されなければ、自装置をアドレスサーバとして決定するサーバ決定部と、前記アドレスサーバ検出要求パケットを同報送信後、他の通信装置から送信されたアドレスサーバ検出要求パケットを受信した場合、前記アドレスサーバ検出要求パケットを前記第1の所定時間よりも長い第2の所定時間の後再度同報送信するように前記サーバ要求送信部を制御する制御部と、を備えることを特徴とする通信装置が提供される。   According to one aspect of the present invention, a communication device that communicates with another communication device using a predetermined control protocol on a network, and determines an address managed on the predetermined control protocol A server request transmission unit that broadcasts an address server detection request packet for requesting to become an address server having an authority to perform the transmission on the network, and a first after transmitting the address server detection request packet. If a packet from another communication device indicating that it is an address server is not received within a predetermined time, a server determination unit that determines the own device as an address server, and after sending the address server detection request packet, When an address server detection request packet transmitted from another communication device is received, the address server detection request packet is Communication device, characterized in that it comprises first and said control unit for controlling the server request transmission unit such that the second to the transmission again broadcast after a predetermined time longer than the predetermined time, is provided.

本発明によれば、ある通信装置がアドレスサーバ検出要求パケットを同報送信してから所定時間内は、他の通信装置は同パケットを同報送信しないようにしたため、アドレスサーバ検出要求がネットワーク上で競合しなくなり、アドレスサーバを一意に決定できる。   According to the present invention, since a certain communication device broadcasts the address server detection request packet and the other communication device does not broadcast the packet within a predetermined time, the address server detection request is transmitted on the network. This eliminates the conflict and can uniquely determine the address server.

以下、本発明に係る通信装置、通信システム及び通信方法について、図面を参照しながら具体的に説明する。   Hereinafter, a communication apparatus, a communication system, and a communication method according to the present invention will be specifically described with reference to the drawings.

以下では、エコーネットプロトコルをインターネットプロトコル(以下、IP)上にマッピングして、エコーネットプロトコルをIPネットワーク上にて稼動する場合を例にとって説明する。なお、IPの具体的種類は特に限定されず、IPv4でも良いし、IPv6でも良い。   In the following, a case where the Echonet protocol is mapped on the Internet protocol (hereinafter, IP) and the Echonet protocol is operated on the IP network will be described as an example. The specific type of IP is not particularly limited, and may be IPv4 or IPv6.

本実施形態では、BluetoothTMと呼ばれるローカル無線ネットワーク技術により、各ノード(例えば、各種のいわゆる白物家電等や、そのコントローラ等)を接続する構成を例にとって説明する。ここで、BluetoothTMとは、低コスト、低消費電力を特徴とするローカル無線ネットワークであり、例えば、http://www.Bluetooth.comを参照されたい。   In the present embodiment, a configuration in which each node (for example, various so-called white goods and its controller) is connected by a local wireless network technology called Bluetooth ™ will be described as an example. Here, BluetoothTM is a local wireless network characterized by low cost and low power consumption. For example, see http://www.Bluetooth.com.

Bluetooth上では、PAN(パーソナルエリアネットワーク)のプロファイルにて、「IP over Bluetooth」の方式が規定されているが、本実施形態では、この方式を用いる場合を例にとって説明する。ここで、PANとは、Bluetooth上で定義されるイーサネット(登録商標)エミュレーションの規格であり、この仕組みを用いることにより、イーサネット(登録商標)フレームのやり取りをBluetooth上で行えるようになる。   On Bluetooth, the PAN (Personal Area Network) profile defines the “IP over Bluetooth” method. In the present embodiment, an example in which this method is used will be described. Here, PAN is an Ethernet (registered trademark) emulation standard defined on Bluetooth, and by using this mechanism, an Ethernet (registered trademark) frame can be exchanged on Bluetooth.

図1は本発明に係るホームネットワークシステムの一実施形態の概略構成を示すブロック図である。図1のホームネットワークシステムは、Bluetoothを用いて相互に通信を行う基地局(以下、PAN基地局とも呼ぶ)1と、複数のエコーネット機器2(図1ではA,B,C)とを備えている。   FIG. 1 is a block diagram showing a schematic configuration of an embodiment of a home network system according to the present invention. The home network system of FIG. 1 includes a base station (hereinafter also referred to as a PAN base station) 1 that communicates with each other using Bluetooth, and a plurality of echo net devices 2 (A, B, and C in FIG. 1). ing.

基地局(PAN基地局ともいう)1は、Bluetoothピコネットのマスターにあたる。本実施形態のBluetooth基地局1は、エコーネットノードではないものとして説明している(ただし、Bluetooth基地局1がエコーネットノードであっても構わない)。   A base station (also referred to as a PAN base station) 1 is a Bluetooth piconet master. The Bluetooth base station 1 of the present embodiment is described as not being an echonet node (however, the Bluetooth base station 1 may be an echonet node).

エコーネット機器2は、エコーネットをサポートするものであれば、家電機器、AV機器、パソコンその他の情報機器など、どのような機器でもよい。   The echo net device 2 may be any device such as a home appliance, an AV device, a personal computer or other information device as long as it supports the echo net.

なお、Bluetooth基地局1は、Bluetoothを通して、エコーネット機器2の制御(あるいは監視等)を行う機能を持っていてもよい。また、図示しない他のノードがBluetoothを通して、エコーネット機器2の制御(あるいは監視等)を行う機能を持っていてもよい。   The Bluetooth base station 1 may have a function of controlling (or monitoring) the echo net device 2 through Bluetooth. Further, another node (not shown) may have a function of controlling (or monitoring) the echo net device 2 through Bluetooth.

これら全ての機器(図1では、基地局1、機器A,B,C)は、それぞれ、IPアドレスを持つ。IPアドレスは、IPv4アドレスでも良いし、IPv6アドレスでも良い。ここでは、IPアドレスは、プライベートアドレス、あるいはリンクローカルアドレスであるとして説明する。プライベートアドレスとは、プライベートなネットワーク空間に限定して使用を許可されたアドレス空間を用いるアドレスであり、他の地域のネットワークとアドレスの重複が起こっても良い。一方、リンクローカルアドレスとは、そのリンク(本例ではBluetooth)上でのみ使うことのできる、特殊なIPアドレスである。   All these devices (in FIG. 1, base station 1, devices A, B, and C) each have an IP address. The IP address may be an IPv4 address or an IPv6 address. Here, description will be made assuming that the IP address is a private address or a link local address. A private address is an address that uses an address space that is permitted to be used only in a private network space, and addresses may overlap with networks in other regions. On the other hand, the link local address is a special IP address that can be used only on the link (Bluetooth in this example).

プライベートアドレスでは、「プライベートアドレス => グローバルIPアドレス」方向の通信は可能であるが、逆方向の通信は不可能である。一方、リンクローカルアドレスでは、グローバルIPアドレスとの通信は不可能である。通信を行う双方のアドレスとしてグローバルユニークなIPアドレスを与える必要が無い一方、ローカルなネットワーク(リンクネットワーク)上で、IPの特定のアプリケーションを動作させる場合に用いられる方式である。   In the private address, communication in the direction of “private address => global IP address” is possible, but communication in the reverse direction is impossible. On the other hand, communication with a global IP address is impossible with a link local address. While there is no need to give a globally unique IP address as both addresses for communication, this is a method used when operating a specific application of IP on a local network (link network).

エコーネットプロトコルは、ローカルネットワークを前提及び対象として開発されたプロトコルであるため、IP上でも、プライベートアドレス又はリンクローカルアドレスの使用が可能であると共に、これらのアドレスを利用することにより、未然に自宅外からの家電製品、エコーネット稼動範囲への悪意のあるアクセスや間違いアクセスを未然に防ぐことができる。   Since the Echonet protocol is a protocol developed on the premise and target of a local network, it is possible to use a private address or a link local address even on the IP, and by using these addresses, the home network can be used in advance. It is possible to prevent malicious access and erroneous access to the home appliances and Echonet operating range from outside.

図2はエコーネット機器2の内部構成の一例を示す図である。図2に示されるように、エコーネット機器2は、Bluetoothにより無線通信するためのBluetoothインタフェース11と、エコーネットの処理を行うエコーネット処理部12と、所定のプロトコルの処理を行う他プロトコル処理部13とを有する。   FIG. 2 is a diagram showing an example of the internal configuration of the echo net device 2. As shown in FIG. 2, the Echonet device 2 includes a Bluetooth interface 11 for wireless communication by Bluetooth, an Echonet processing unit 12 that performs Echonet processing, and another protocol processing unit that performs predetermined protocol processing. 13.

エコーネット処理部12は、Bluetoothインタフェース11とイーサフレームの送受信のやり取りを行うイーサフレーム送受信部21と、インターネットパケットの送受信のやり取りを行なうインターネット処理部22と、エコーネット on IP/Bluetoothの初期化処理を行う初期化処理部23と、エコーネットアドレスとIPアドレスとの間のアドレス解決を行うアドレス解決部24と、IPアドレスとエコーネットアドレスとを対応付けて記憶するアドレステーブル25と、エコーネットのコマンド処理やミドルウエア処理一般を行うエコーネット制御処理部26と、液晶画面やタッチパネルやキーボード等からなるユーザインタフェース27とを有する。   The echo net processing unit 12 includes an Ethernet frame transmission / reception unit 21 for exchanging Ethernet frames with the Bluetooth interface 11, an Internet processing unit 22 for exchanging Internet packets, and an initialization process for echo net on IP / Bluetooth. , An address resolution unit 24 that performs address resolution between the echo net address and the IP address, an address table 25 that stores the IP address and the echo net address in association with each other, An echo net control processing unit 26 that performs command processing and middleware processing in general, and a user interface 27 that includes a liquid crystal screen, a touch panel, a keyboard, and the like.

図3はアドレステーブル25の内部構造の一例を示す図である。図3(a)に示すように、本実施形態のアドレステーブル25は、そのIPサブネット(具体的には、そのリンクローカルの空間)内にあるエコーネットノードのIPアドレス(本実施形態の場合、プライベートアドレス、又はリンクローカルアドレス)と、そのノードのエコーネットアドレス(のMACアドレス、またはノードID(ノード識別子))とを対応付けて記憶する。   FIG. 3 is a diagram showing an example of the internal structure of the address table 25. As shown in FIG. 3A, the address table 25 of the present embodiment includes an IP address of an Echonet node in the IP subnet (specifically, the link local space) (in this embodiment, The private address or link local address) and the echo net address (the MAC address or node ID (node identifier)) of the node are stored in association with each other.

また、エコーネット機器2は、図3(b)に示すように、ある時点で他のエコーネット機器2が既に使用しているエコーネットMACアドレス群を保持するためのテーブルを持つ。   Further, as shown in FIG. 3B, the echo net device 2 has a table for holding an echo net MAC address group already used by another echo net device 2 at a certain time.

ここで、エコーネットMACアドレスは、8ビット長の論理的な識別子であり、エコーネット仕様書にてその仕様が定められている。なお、エコーネット仕様書では、ネットIDなるネットワーク識別子も定義されているが、本実施形態では、ネットIDは固定と考えて、ノード別に割り当てられるノードID、またはMACアドレスに着目して説明する。この値も、場合によって異なる値が割り当てられる可能性がある。   Here, the Echonet MAC address is an 8-bit logical identifier, and its specification is defined in the Echonet specification. In the Echonet specification, a network identifier, which is a net ID, is also defined. In this embodiment, the net ID is assumed to be fixed, and description will be made focusing on the node ID or MAC address assigned to each node. This value may also be assigned a different value depending on circumstances.

図3(a)において、添え字の0は、図1のBluetooth基地局1に対応するものを示し、添え字のa,bは、図1のエコーネット機器A,Bに対応するものをそれぞれ示している。   In FIG. 3A, the subscript 0 indicates the one corresponding to the Bluetooth base station 1 in FIG. 1, and the subscripts a and b indicate the ones corresponding to the echo net devices A and B in FIG. Show.

なお、本実施形態において、Bluetooth基地局(PAN基地局)1がエコーネットノードである場合のBluetooth基地局1の内部構造は、基本的には、エコーネット機器2の内部構造と同様である。ただし、Bluetooth基地局1内のイーサフレーム送受信部21は、イーサフレームのルーチングを行う機能(イーサフレームルーチング部)を有する。このイーサフレームルーチング部は、受信したイーサフレームが自ノード宛のものであるかどうかを調べ、自ノード宛のものでない場合には宛先へ向けて送信し、自ノード宛のものである場合には、イーサタイプのフィールドを参照するなどして、内部の該当する処理部へ転送する。この場合、エコーネットノードである基地局1のエコーネットMACアドレスの値を、例えば0や1等の固定値としてもよい。   In the present embodiment, the internal structure of the Bluetooth base station 1 when the Bluetooth base station (PAN base station) 1 is an echonet node is basically the same as the internal structure of the echonet device 2. However, the Ethernet frame transmitting / receiving unit 21 in the Bluetooth base station 1 has a function of performing an Ethernet frame routing (an Ethernet frame routing unit). The ether frame routing unit checks whether the received ether frame is destined for the own node. If it is not destined for the own node, the ether frame is transmitted to the destination. Then, by referring to the Ether type field, it is transferred to the corresponding processing unit inside. In this case, the value of the echo net MAC address of the base station 1 that is an echo net node may be a fixed value such as 0 or 1, for example.

本実施形態のBluetoothのように、Bluetoothマスターの位置に立つノードは、エコーネットノードとして特別な役割(イーサフレームのルーチングやアドレス解決、初期化処理等)を行うことから、特別なエコーネットMACアドレスを固定的に割り当てることで処理の簡便化を図ることができる。   As in the Bluetooth of this embodiment, the node standing at the position of the Bluetooth master plays a special role as an echonet node (such as Ethernet frame routing, address resolution, initialization processing, etc.). It is possible to simplify the processing by assigning a fixed number.

以下では、エコーネットMACアドレス初期化手続きについて説明する。   Hereinafter, an Echonet MAC address initialization procedure will be described.

図4はエコーネットMACアドレスの初期化シーケンスの一例を示す図、図5はエコーネットMACアドレスの初期値(仮MACアドレス)を決定する処理手順の一例を示す図である。   FIG. 4 is a diagram illustrating an example of an initialization sequence of an echo net MAC address, and FIG. 5 is a diagram illustrating an example of a processing procedure for determining an initial value (temporary MAC address) of an echo net MAC address.

ここでは、エコーネットMACアドレスとして、ハードウエアアドレスの一部、例えば自分のBluetoothアドレスの下位8ビットの値を用いる。もし同一サブネット内にハードウエアアドレスの上記一部が重複するノードが存在する場合に、該値を用いるとエコーネットMACアドレスの値の重複がサブネット内で発生することから、本実施形態では、そのような場合において、下記に説明するような方法で、エコーネットMACアドレスの重複を回避した上で、自己のエコーネットMACアドレスを決定する。   Here, a part of the hardware address, for example, the value of the lower 8 bits of the own Bluetooth address is used as the Echonet MAC address. If there is a node with the same part of the hardware address in the same subnet, if this value is used, the value of the Echonet MAC address will be duplicated in the subnet. In such a case, the own Echonet MAC address is determined by avoiding duplication of Echonet MAC addresses by the method described below.

PAN基地局1がBluetoothのマスター(以下、BTマスター)となっているピコネットに、当初、エコーネット機器Aとエコーネット機器Bとが所属しているとする。つまり、このピコネットには、機器Aと機器Bの2つのエコーネットノードがこの時点では存在しているものとする。このような状態で、エコーネット機器Cがこのピコネットに加わろうとする場合を例にとって説明する。   Assume that the Echonet device A and Echonet device B initially belong to a piconet in which the PAN base station 1 is a Bluetooth master (hereinafter referred to as BT master). In other words, it is assumed that there are two echonet nodes, device A and device B, in this piconet at this time. An example will be described in which the Echonet device C tries to join this piconet in such a state.

図5に示すように、エコーネット機器Cは、前回稼動時のMACアドレスを保持しているか否かを判断し(ステップS51)、保持していれば、前回利用したMACアドレスを仮MACアドレスとし(ステップS52)、保持していなければ、自己のハードウェアアドレスの下位8ビットを仮MACアドレスとする(ステップS53)。   As shown in FIG. 5, the Echonet device C determines whether or not the MAC address at the previous operation is held (step S51). If it is held, the MAC address used last time is set as the temporary MAC address. (Step S52) If not held, the lower 8 bits of its own hardware address are set as a temporary MAC address (Step S53).

図4では、前回利用したエコーネットMACアドレスの値を仮MACアドレスとする例を説明する(ステップS1)。   FIG. 4 illustrates an example in which the value of the Echonet MAC address used last time is a temporary MAC address (step S1).

エコーネット機器Cは、上記のハードウエアアドレスの下位8ビットの値を含むMACアドレス初期化要求パケットを、ローカルリンクにブロードキャスト(エコーネットノードに割当てられたIPマルチキャストアドレスでもよい)して、該エコーネットアドレスの値の重複を調査する(ステップS2〜S4)。ネットワーク内での電波状態や、受信ノードの状態などにより、このパケットが届かないことを未然に防止するために、このパケットは複数回送信しても良い。本実施例の場合、2回送信している場合を図示している(ステップS5〜S7)。   The Echonet device C broadcasts a MAC address initialization request packet including the value of the lower 8 bits of the hardware address to the local link (may be an IP multicast address assigned to the Echonet node), and The duplication of the net address value is investigated (steps S2 to S4). This packet may be transmitted a plurality of times in order to prevent this packet from reaching due to the state of radio waves in the network, the state of the receiving node, and the like. In the case of the present embodiment, a case where transmission is performed twice is illustrated (steps S5 to S7).

このMACアドレス初期化要求パケットには、3つの意味が存在する。1つ目は、ネットワーク上に存在するMACアドレスサーバを検出するための意味である。ここで、MACアドレスサーバとは、要求に応じてMACアドレスの値の付与を行なうサーバノードであり、その詳細は後述する第2の実施形態を参照されたい。2つ目は、ネットワーク上に自己の仮MACアドレスの値を利用しようとしているノードが存在するかどうかを検査するための意味である。3つ目は、ネットワーク上のエコーネット機器2のIPアドレス、エコーネットMACアドレス及びハードウエアアドレスの対応関係を知るための意味である。   This MAC address initialization request packet has three meanings. The first is to detect a MAC address server existing on the network. Here, the MAC address server is a server node that assigns a MAC address value in response to a request. For details, refer to the second embodiment described later. The second meaning is to check whether or not there is a node on the network that is going to use the value of its own temporary MAC address. The third meaning is to know the correspondence between the IP address, Echonet MAC address, and hardware address of the Echonet device 2 on the network.

エコーネット機器Cが送信したMACアドレス初期化要求または後述するMACアドレス確認要求のパケットを受信した他のノードは、MACアドレス初期化要求をT2+ランダム時間送出しないようにする(ステップS8,S9)。エコーネット機器Cは、他に同一MACアドレスを使用しているエコーネットノードが存在したり、他のエコーネット機器A,Bからの、同一MACアドレスに関するMACアドレス初期化要求や、MACアドレス確認要求を受信しない限り、上述したT2+ランダム時間内に、仮MACアドレスを自己のMACアドレスとして確定する。   Other nodes that have received a MAC address initialization request or a MAC address confirmation request packet, which will be described later, transmitted from the Echonet device C do not send the MAC address initialization request for T2 + random time (steps S8 and S9). In the echo net device C, there are other echo net nodes using the same MAC address, or MAC address initialization requests and MAC address confirmation requests regarding the same MAC address from other echo net devices A and B. Unless T2 is received, the temporary MAC address is determined as its own MAC address within the T2 + random time described above.

これにより、MACアドレス決定の際の振動を未然に防止できる。すなわち、ある機器Pが、特定のMACアドレスを利用しようとしている場合に、他の機器Qが、その特定のMACアドレスの利用権を奪ったり、逆に、他の機器QのMACアドレスの利用権を機器Pが奪ったりの繰り返しを防止できる。   Thereby, the vibration at the time of MAC address determination can be prevented beforehand. That is, when a certain device P intends to use a specific MAC address, another device Q takes away the right to use the specific MAC address, or conversely, the right to use the MAC address of the other device Q. Can be prevented from being repeatedly taken by the device P.

ネットワーク上の全ノードがMACアドレス初期化要求パケットの受信に同時に応答すると、送信ノード(エコーネット機器C)にて輻輳が生じてしまう。そこで、各エコーネット機器A,B,Cは、自分のエコーネットMACアドレスの値に時間T1を掛け合わせた値の時間を待って、MACアドレス初期化要求に対する応答を返送することで、エコーネット機器Cで受信される信号の輻輳を未然に防止する(ステップS10,S11)。   If all the nodes on the network respond simultaneously to the reception of the MAC address initialization request packet, congestion occurs at the transmission node (Echonet device C). Therefore, each Echonet device A, B, C waits for a time obtained by multiplying the value of its own Echonet MAC address by time T1, and returns a response to the MAC address initialization request, thereby returning the Echonet device. The congestion of the signal received by the device C is prevented beforehand (steps S10 and S11).

ステップS10,S11で規定される時間を経た後、MACアドレス初期化要求パケットを受信したエコーネット機器2は、MACアドレス初期化応答パケットを利用して、自己のMACアドレスを返答する(ステップS12〜S15)。このとき、IPアドレス、ハードウエアアドレスも同時に返答する。自己のMACアドレスを返答する理由は、上述した2つ目及び3つ目の理由、すなわち、ネットワーク上に自己の仮MACアドレスの値を利用しようとしているノードが存在するかどうかを検査するためと、3つ目は、ネットワーク上のエコーネット機器2のIPアドレス、エコーネットMACアドレス及びハードウエアアドレスの対応関係を知るためである。   After the time specified in steps S10 and S11, the echo net device 2 that has received the MAC address initialization request packet returns its own MAC address using the MAC address initialization response packet (steps S12 to S12). S15). At this time, the IP address and hardware address are also returned simultaneously. The reason for returning its own MAC address is to check whether the second and third reasons described above, that is, whether or not there is a node on the network that is trying to use the value of its own temporary MAC address. The third is to know the correspondence relationship between the IP address, Echonet MAC address, and hardware address of the Echonet device 2 on the network.

なお、このMACアドレス初期化応答パケットには、「利用してはいけないMACアドレスの値」が搭載されていても良い。図中では「使用中MACアドレス」として記してある。この値は、このパケットを送信しているノードが現在把握している、ネットワーク上のエコーネットノードのMACアドレスや、一定時間以内に稼動していたエコーネットノードのMACアドレス(その時点で稼動していなくても良い)の値が搭載されていても良い。なお、その時点で稼動していないエコーネットノードのMACアドレスを搭載しておく場合には、非稼動を確認してから一定時間以上経過したMACアドレスについては、「使用中MACアドレス」の値として搭載してはならない。   The MAC address initialization response packet may be loaded with “a MAC address value that should not be used”. In the figure, it is written as “in-use MAC address”. This value is the MAC address of the Echonet node on the network that is currently known by the node that is sending this packet, or the MAC address of the Echonet node that has been operating within a certain period of time. May not be installed). If the MAC address of the Echonet node that is not operating at that time is installed, the MAC address that has passed for a certain period of time after confirming that it is not operating will be used as the value of the “MAC address in use”. Do not install.

エコーネット機器Cは、問い合わされた値と同一のエコーネットMACアドレス(ノードID)を使用している旨を示すMACアドレス初期化応答パケットが一定時間(T2時間)返送されなければ、重複がないと判断して、仮MACアドレスの値を使っているノードの有無を再度確認するためのMACアドレス確認要求パケットをネットワークに同報する(ステップS17)。ここで、このMACアドレス確認要求パケットに応答パケットが、更に一定時間(T2時間)転送されなければ、ネットワーク内にMACアドレスの重複は無いと判断して、仮MACアドレスの値を、自装置が使用するエコーネットMACアドレス(ノードID)として決定する(ステップS19)。この判断は、最後のMACアドレス初期化要求パケットを送信してから、T2時間、待った後に行う(ステップS18)。ここで、T2の値は、ネットワーク上に存在しえるエコーネット機器2の最大数とT1時間の積の値である。   If the Echonet device C does not return a MAC address initialization response packet indicating that it uses the same Echonet MAC address (node ID) as the inquired value for a certain period of time (T2 time), there will be no overlap. Then, a MAC address confirmation request packet for reconfirming the presence / absence of the node using the temporary MAC address value is broadcast to the network (step S17). Here, if the response packet is not transferred to the MAC address confirmation request packet for a certain time (T2 time), it is determined that there is no duplication of the MAC address in the network, and the value of the temporary MAC address is determined by the own device. The Echonet MAC address (node ID) to be used is determined (step S19). This determination is made after waiting for T2 time after transmitting the last MAC address initialization request packet (step S18). Here, the value of T2 is a product value of the maximum number of Echonet devices 2 that can exist on the network and T1 time.

図6はエコーネット機器Cが送信した仮MACアドレスと同じアドレスを他のエコーネット機器がすでに使用している場合の処理手順を示す図である。   FIG. 6 is a diagram showing a processing procedure when another echonet device already uses the same address as the temporary MAC address transmitted by the echonet device C.

図6のステップS61〜S74では、図4のステップS1〜S6、S10〜S16と同様の処理を行う。ただし、ステップS61では、エコーネット機器AのエコーネットMACアドレスであるMACaを仮MACアドレスとする。   In steps S61 to S74 in FIG. 6, the same processes as in steps S1 to S6 and S10 to S16 in FIG. 4 are performed. However, in step S61, MACa which is the Echonet MAC address of Echonet device A is set as a temporary MAC address.

エコーネット機器Cは、他のノード(エコーネット機器A)が同一のMACアドレスを利用中であることを認識すると(ステップS75)、使用していないアドレスから自己の仮MACアドレスを決定する(ステップS76)。ここでは、MACcを仮MACアドレスとして決定するものとする。   When the Echonet device C recognizes that another node (Echonet device A) is using the same MAC address (Step S75), it determines its own temporary MAC address from the unused address (Step S75). S76). Here, MACc is determined as a temporary MAC address.

次に、MACアドレスの確認要求を2回にわたって他のノード(エコーネット機器A,B)にブロードキャストする(ステップS77〜S82)。次に、一定時間T2待機した後(ステップS83)、MACcが使用されていないことを確認し、自己のエコーネットMACアドレスをMACcに決定する(ステップS84)。   Next, the MAC address confirmation request is broadcast twice to other nodes (Echonet devices A and B) (steps S77 to S82). Next, after waiting for a predetermined time T2 (step S83), it is confirmed that MACc is not used, and its own Echonet MAC address is determined to be MACc (step S84).

一方、エコーネット機器Cについても、仮MACアドレス=MACcについてのMACアドレス初期化要求を送信して、T2時間以内に、ネットワーク上の他のノードから、「仮MACアドレス=MACcについての、MACアドレス初期化要求、またはMACアドレス確認要求(後述)」を受信することがある。この場合には、エコーネット機器Cが、送信したMACアドレス初期化要求を取り下げ、T2+ランダム時間以上待った後に、再びMACアドレス初期化要求の送信のステップから、これを行い直す必要がある。この際に選択する新しい仮MACアドレスは、MACアドレスの重複の確率を未然に下げるために、先に選択した値とは別の値を選択することが望ましい。また、T2時間待っている間に受信した、MACアドレス初期化要求や、MACアドレス確認要求(後述)で要求されている仮MACアドレスについても、この値を新しい仮MACアドレスとして使用することは避けることとする。   On the other hand, the Echonet device C also transmits a MAC address initialization request for the temporary MAC address = MACc, and from another node on the network within “T2 time”, the “MAC address for the temporary MAC address = MACc”. An initialization request or a MAC address confirmation request (described later) may be received. In this case, it is necessary for the echo net device C to cancel the transmitted MAC address initialization request, wait for T2 + random time or more, and then perform this again from the step of transmitting the MAC address initialization request. As the new temporary MAC address selected at this time, it is desirable to select a value different from the previously selected value in order to reduce the MAC address duplication probability. Also, avoid using this value as a new temporary MAC address for a temporary MAC address requested by a MAC address initialization request or a MAC address confirmation request (described later) received while waiting for T2 time. I will do it.

図7は上述した図4〜図6の処理手順をまとめた状態遷移図である。まず、図5のアルゴリズムに従って仮MACアドレスを決定し(ステップS91)、ランダムな時間待機する(ステップS92)。その後、MACアドレスの初期化要求を送出し(ステップS93)、時間T2待機する(ステップS94)。   FIG. 7 is a state transition diagram summarizing the processing procedures of FIGS. 4 to 6 described above. First, a temporary MAC address is determined according to the algorithm of FIG. 5 (step S91), and a random time is waited (step S92). Thereafter, a MAC address initialization request is sent (step S93), and a time T2 is waited (step S94).

他のノードが同一MACアドレスを使用している旨のMACアドレス初期化応答を受信すると、仮MACアドレスを変更し(ステップS96)、MACアドレスの確認要求を送出する(ステップS97)。   When a MAC address initialization response indicating that another node is using the same MAC address is received, the temporary MAC address is changed (step S96), and a MAC address confirmation request is transmitted (step S97).

その後、時間T2待機し(ステップS98)、待機している間に他のノードが同一MACアドレスを使用している旨のMACアドレス確認応答を受信すると、ステップS96〜S98の処理を繰り返す。一方、ステップS97で時間T2待機しても、他のノードから同一のMACアドレスを使用している旨の確認応答がなかった場合には、仮MACアドレスをMACアドレスとして決定する(ステップS99)。   After that, the system waits for time T2 (step S98). When a MAC address confirmation response indicating that another node is using the same MAC address is received while waiting, the processing of steps S96 to S98 is repeated. On the other hand, if there is no confirmation response from the other node that the same MAC address is used even after waiting for time T2 in step S97, the temporary MAC address is determined as the MAC address (step S99).

図7の状態遷移図からわかるように、他のノードから同一のMACアドレスを使用している旨の確認応答がある限り、仮MACアドレスを繰り返し変更するため、この処理の最中は仮MACアドレスを内部のメモリ領域などに記憶しておくのが望ましい。   As can be seen from the state transition diagram of FIG. 7, the temporary MAC address is repeatedly changed as long as there is an acknowledgment from the other nodes that the same MAC address is used. Is preferably stored in an internal memory area or the like.

このように、第1の実施形態では、ネットワーク上の他のノードがMACアドレスの初期化要求を受信してから所定期間は、アドレス初期化要求を送信できないようにしたため、同一のMACアドレスに対する初期化要求が競合しなくなり、アドレスが重複して付与されるような不具合が生じなくなる。また、MACアドレス初期化要求、またはMACアドレス確認要求のパケットを、同一のMACアドレスについて送信するノードが同時に存在した場合に、これを受け取った少なくとも一方のノード(あるいは両方のノード)は、上記の通り、MACアドレス決定手順を一時中断し、所定時間はアドレス初期化要求を送信できないようにしたため、その間にもう一方のノードのMACアドレスは確定することが期待され、もってMACアドレス決定の際の振動を未然に防ぐことが可能になる。   As described above, in the first embodiment, since the address initialization request cannot be transmitted for a predetermined period after another node on the network receives the MAC address initialization request, the initial value for the same MAC address is set. Requests do not conflict, and there is no problem that addresses are assigned redundantly. In addition, when there is a node that transmits a MAC address initialization request packet or a MAC address confirmation request packet for the same MAC address at the same time, at least one node (or both nodes) that receives the packet transmits As described above, since the MAC address determination procedure is temporarily suspended and the address initialization request cannot be transmitted for a predetermined time, the MAC address of the other node is expected to be determined in the meantime. Can be prevented in advance.

また、アドレス初期化要求を受信した各ノードは、この要求を受信してから、自己のMACアドレス値×所定時間T1が経過するまでは、アドレス初期化応答を送信しないようにしたため、複数の応答が競合して受信されるような不具合を防止できる。   Since each node that has received the address initialization request does not transmit an address initialization response until the MAC address value × predetermined time T1 has elapsed after receiving this request, a plurality of responses are received. Can be prevented from being received in conflict.

(第2の実施形態)
第2の実施形態は、MACアドレスサーバを決定する場合の競合を防止するものである。
(Second Embodiment)
The second embodiment prevents contention when a MAC address server is determined.

第2の実施形態のエコーネットは、エコーネットMACアドレスの付与を要求したエコーネットノードに対して、該アドレスを付与する権限をもつノードが存在する。このようなノードはMACアドレスサーバと呼ばれる。   In the Echonet of the second embodiment, there is a node having the authority to give an Echonet node that has requested the Echonet MAC address. Such a node is called a MAC address server.

MACアドレスサーバが存在する場合には,第1の実施形態のMACアドレス初期化要求パケットを受信したMACアドレスサーバが、そのMACアドレス初期化要求パケットを送信したノードに対して、そのノード(本実施形態の場合はエコーネット機器C)が利用するべきMACアドレスの値を返す。このMACアドレスサーバは、1つのネットワーク(エコ−ネットサブネット内)に高々1つしか存在しないものとしても良い。   When there is a MAC address server, the MAC address server that has received the MAC address initialization request packet according to the first embodiment transmits the node (this embodiment) to the node that has transmitted the MAC address initialization request packet. In the case of the form, the value of the MAC address to be used by the echonet device C) is returned. Only one MAC address server may exist in one network (within the Eco-net subnet).

以下では、このMACアドレスサーバに、ネットワーク上の任意のノードがなろうとした場合の処理手順について説明する。図8はあるノード(ここでは、エコーネット機器C)がMACアドレスサーバになろうとする場合の処理手順を示す図である。   In the following, a processing procedure when an arbitrary node on the network tries to become the MAC address server will be described. FIG. 8 is a diagram showing a processing procedure when a certain node (here, Echonet device C) tries to become a MAC address server.

MACアドレスサーバになることを希望するノード(S111)は、まず、ネットワーク内にMACアドレスサーバが既に存在しているかどうかを確認するために、MACアドレスサーバ検出要求パケットを、複数回ブロードキャストする(S112〜S117)。   The node desiring to become a MAC address server (S111) first broadcasts a MAC address server detection request packet a plurality of times in order to confirm whether a MAC address server already exists in the network (S112). ~ S117).

この時点で、既にMACアドレスサーバになっているノードは、このパケットに対して、ユニキャスト(またはブロードキャスト)で応答し、既にMACアドレスサーバがこのネットワーク内にあることを通知する。このパケットを受信したエコーネット機器Cは、MACアドレスサーバになるのを、この時点であきらめる。   At this point, the node that is already the MAC address server responds to this packet by unicast (or broadcast), notifying that the MAC address server is already in the network. The Echonet device C that has received this packet gives up at this point to become a MAC address server.

一方、時間T3待機し、MACアドレスサーバからの「MACアドレスサーバ検出応答」が無い場合、サブネット内にMACアドレスサーバが存在しないものと判断する(S118)。その場合、そのノードは、MACアドレスサーバになる権利を得たものとし、その旨をサブネット内に通知し(ステップS119)、MACアドレスサーバ通知パケットを、ネットワーク内に複数回(本実施例では3回)ブロードキャストする(S120〜S128)。   On the other hand, when waiting for time T3 and there is no “MAC address server detection response” from the MAC address server, it is determined that there is no MAC address server in the subnet (S118). In that case, it is assumed that the node has obtained the right to become a MAC address server, notifies the fact within the subnet (step S119), and sends the MAC address server notification packet to the network a plurality of times (3 in this embodiment). Times) (S120 to S128).

ここで、このMACアドレスサーバ検出要求パケットを受け取った他ノードは、MACアドレスサーバになること、即ち、MACアドレスサーバ検出要求パケットを送信することを、T3+ランダム時間送出することが出来ないこととする(S129,S130)。この時間内に、エコーネット機器Cは、MACアドレスサーバになる場合は、MACアドレスサーバ通知パケットを送信することができる。このようにすることにより、MACアドレスサーバ決定の際の振動(ある機器PがMACアドレスサーバになろうとして、MACアドレスサーバ検出要求パケットを送信した後に、他の機器Qが、やはりMACアドレスサーバになろうとして、MACアドレスサーバ検出要求パケットを送信し、機器Pの権利を奪う。更に、その後、機器Pが機器Qの権利を奪う。これが繰り返されること)を未然に防ぐことが可能になる。   Here, it is assumed that another node that has received this MAC address server detection request packet becomes a MAC address server, that is, cannot transmit a MAC address server detection request packet for T3 + random time. (S129, S130). Within this time, when the Echonet device C becomes a MAC address server, it can transmit a MAC address server notification packet. By doing so, the vibration at the time of determining the MAC address server (after a certain device P tries to become a MAC address server and transmits a MAC address server detection request packet, another device Q is still connected to the MAC address server. The MAC address server detection request packet is transmitted to deprive the right of the device P. Further, the device P deprives the right of the device Q. (This is repeated).

ここで、エコーネット機器Cが、あるMACアドレスサーバ検出要求を送信した時に、ネットワーク上の別のノードが送信したMACアドレスサーバ検出要求を受信する場合がある。例えば、2つ以上のノードが、同時にMACアドレスサーバになろうとしている場合等である。この場合についても、エコーネット機器Cは、送信したMACアドレスサーバ検出要求パケットを取り下げ、T3+ランダム時間以上、待った後に、再びMACアドレスサーバ検出要求の送信のステップから、これを行い直す必要がある。以上の処理を経て、エコーネット機器Cは、MACアドレスサーバとなる。   Here, when the Echonet device C transmits a MAC address server detection request, it may receive a MAC address server detection request transmitted by another node on the network. For example, when two or more nodes are simultaneously trying to become MAC address servers. Also in this case, the Echonet device C needs to cancel the transmitted MAC address server detection request packet, wait for T3 + random time or longer, and then perform this again from the step of transmitting the MAC address server detection request. Through the above processing, the Echonet device C becomes a MAC address server.

このように、第2の実施形態では、MACアドレスサーバ検出要求を受信してから、所定時間T3+ランダム時間を経過するまでは、MACアドレスサーバ検出要求の送信を禁止するため、複数のMACアドレスサーバ検出要求がエコーネット上で競合しなくなり、MACアドレスサーバを一意に決定できる。   As described above, in the second embodiment, since the MAC address server detection request is prohibited from being transmitted until the predetermined time T3 + random time elapses after the MAC address server detection request is received, The detection request does not compete on the echo net, and the MAC address server can be uniquely determined.

以上では、ネットワークに接続された機器の制御のためのプロトコルとして、エコーネットプロトコルを用いたが、これに限定されるものではなく、本発明は、他の種々の制御プロトコルについて適用可能である。   In the above description, the ECHONET protocol is used as a protocol for controlling devices connected to the network. However, the present invention is not limited to this, and the present invention can be applied to various other control protocols.

また、以上では、ローカルエリアネットワークとしてBluetoothあるいはIP(IP over Bluetooth)を例にとったが、他の方式のネットワークであっても本発明は適用可能である。   In the above, Bluetooth or IP (IP over Bluetooth) is taken as an example of the local area network, but the present invention is applicable to other types of networks.

また、以上では、ローカルエリアネットワークとしてホームネットワークを例にとって説明したが、もちろん、企業内網など他のローカルネットワークであっても本発明は同様に適用可能である。   In the above description, the home network has been described as an example of the local area network. However, the present invention can be similarly applied to other local networks such as a corporate network.

上述した通信装置は、ハードウェアで構成してもよいし、ソフトウェアで構成してもよい。ソフトウェアで構成する場合には、通信装置の機能を実現するプログラムをフロッピーディスクやCD−ROM等の記録媒体に収納し、コンピュータに読み込ませて実行させてもよい。記録媒体は、磁気ディスクや光ディスク等の携帯可能なものに限定されず、ハードディスク装置やメモリなどの固定型の記録媒体でもよい。   The communication device described above may be configured by hardware or software. When configured by software, a program for realizing the function of the communication device may be stored in a recording medium such as a floppy disk or a CD-ROM and read and executed by a computer. The recording medium is not limited to a portable medium such as a magnetic disk or an optical disk, but may be a fixed recording medium such as a hard disk device or a memory.

また、上述した通信装置の機能を実現するプログラムを、インターネット等の通信回線(無線通信も含む)を介して頒布してもよい。さらに、同プログラムを暗号化したり、変調をかけたり、圧縮した状態で、インターネット等の有線回線や無線回線を介して、あるいは記録媒体に収納して頒布してもよい。   Further, a program for realizing the functions of the communication device described above may be distributed via a communication line (including wireless communication) such as the Internet. Furthermore, the program may be distributed through being stored in a recording medium via a wired line or a wireless line such as the Internet in a state where the program is encrypted, modulated, or compressed.

なお、この発明の実施の形態で例示した構成は一例であって、それ以外の構成を排除する趣旨のものではなく、例示した構成の一部を他のもので置き換えたり、例示した構成の一部を省いたり、例示した構成に別の機能あるいは要素を付加したり、それらを組み合わせたりすることなどによって得られる別の構成も可能である。また、例示した構成と論理的に等価な別の構成、例示した構成と論理的に等価な部分を含む別の構成、例示した構成の要部と論理的に等価な別の構成なども可能である。また、例示した構成と同一もしくは類似の目的を達成する別の構成、例示した構成と同一もしくは類似の効果を奏する別の構成なども可能である。   Note that the configuration illustrated in the embodiment of the present invention is an example, and is not intended to exclude other configurations, and a part of the illustrated configuration may be replaced with another or one of the illustrated configurations. Other configurations obtained by omitting a part, adding another function or element to the illustrated configuration, or combining them are also possible. Also, another configuration that is logically equivalent to the exemplified configuration, another configuration that includes a portion that is logically equivalent to the exemplified configuration, another configuration that is logically equivalent to the main part of the illustrated configuration, and the like are possible. is there. Further, another configuration that achieves the same or similar purpose as the illustrated configuration, another configuration that achieves the same or similar effect as the illustrated configuration, and the like are possible.

また、この発明の実施の形態で例示した各種構成部分についての各種バリエーションは、適宜組み合わせて実施することが可能である。   In addition, various variations of various components illustrated in the embodiment of the present invention can be implemented in appropriate combination.

また、この発明の実施の形態は、個別装置としての発明、関連を持つ2以上の装置についての発明、システム全体としての発明、個別装置内部の構成部分についての発明、またはそれらに対応する方法の発明等、種々の観点、段階、概念またはカテゴリに係る発明を包含・内在するものである。   Further, the embodiment of the present invention is an invention of an invention as an individual device, an invention of two or more related devices, an invention of the entire system, an invention of components within an individual device, or a method corresponding thereto. The invention includes inventions according to various viewpoints, stages, concepts, or categories.

従って、この発明の実施の形態に開示した内容からは、例示した構成に限定されることなく発明を抽出することができるものである。   Therefore, the present invention can be extracted from the contents disclosed in the embodiments of the present invention without being limited to the exemplified configuration.

本発明は、上述した実施の形態に限定されるものではなく、その技術的範囲において種々変形して実施することができる。   The present invention is not limited to the embodiment described above, and can be implemented with various modifications within the technical scope thereof.

本発明に係るホームネットワークシステムの一実施形態の概略構成を示すブロック図。1 is a block diagram showing a schematic configuration of an embodiment of a home network system according to the present invention. エコーネット機器の内部構成の一例を示す図。The figure which shows an example of the internal structure of an echo net apparatus. アドレステーブルの内部構造の一例を示す図。The figure which shows an example of the internal structure of an address table. エコーネットMACアドレスの初期化シーケンスの一例を示す図。The figure which shows an example of the initialization sequence of an echo net MAC address. エコーネットMACアドレスの初期値(仮MACアドレス)を決定する処理手順の一例を示す図。The figure which shows an example of the process sequence which determines the initial value (temporary MAC address) of an echo net MAC address. エコーネット機器Cが送信した仮MACアドレスと同じアドレスを他のエコーネット機器がすでに使用している場合の処理手順を示す図。The figure which shows the process sequence in case another Echonet apparatus has already used the same address as the temporary MAC address which Echonet apparatus C transmitted. 図4〜図6の処理手順をまとめた状態遷移図。FIG. 7 is a state transition diagram summarizing the processing procedures of FIGS. あるノードがMACアドレスサーバになろうとする場合の処理手順を示す図。The figure which shows the process sequence when a certain node tries to become a MAC address server.

符号の説明Explanation of symbols

1 PAN基地局
2 エコーネット機器
11 Bluetoothインタフェース
12 エコーネット処理部
13 他プロトコル処理部
21 イーサフレーム送受信部
22 インターネット処理部
23 初期化処理部
24 アドレス解決部
25 アドレステーブル
26 エコーネット制御処理部
27 ユーザインタフェース
DESCRIPTION OF SYMBOLS 1 PAN base station 2 Echonet apparatus 11 Bluetooth interface 12 Echonet process part 13 Other protocol process part 21 Ether frame transmission / reception part 22 Internet process part 23 Initialization process part 24 Address resolution part 25 Address table 26 Echonet control process part 27 User interface

Claims (6)

ネットワーク上で、所定の制御プロトコルを用いて他の通信装置との間で通信を行う通信装置であって、
前記所定の制御プロトコル上で管理されるアドレスを決定する権限をもつアドレスサーバになることを要求するためのアドレスサーバ検出要求パケットを前記ネットワーク上に同報送信するサーバ要求送信部と、
前記アドレスサーバ検出要求パケットを同報送信してから第1の所定時間内に、アドレスサーバである旨を示す他の通信装置からのパケットが受信されなければ、自装置をアドレスサーバとして決定するサーバ決定部と、
前記アドレスサーバ検出要求パケットを同報送信後、他の通信装置から送信されたアドレスサーバ検出要求パケットを受信した場合、前記アドレスサーバ検出要求パケットを前記第1の所定時間よりも長い第2の所定時間の後再度同報送信するように前記サーバ要求送信部を制御する制御部と、を備えることを特徴とする通信装置。
A communication device that communicates with other communication devices using a predetermined control protocol on a network,
A server request transmission unit that broadcasts on the network an address server detection request packet for requesting to become an address server having authority to determine an address managed on the predetermined control protocol;
A server that determines its own device as an address server if a packet from another communication device indicating that it is an address server is not received within a first predetermined time after broadcasting the address server detection request packet. A decision unit;
When the address server detection request packet transmitted from another communication apparatus is received after the address server detection request packet is broadcast, the address server detection request packet is sent to the second longer than the first predetermined time. And a control unit that controls the server request transmission unit so as to perform broadcast transmission again after a predetermined time .
前記アドレスサーバ検出要求パケットは、ネットワーク上に複数回同報送信されることを特徴とする請求項1に記載の通信装置。   The communication apparatus according to claim 1, wherein the address server detection request packet is broadcast on the network a plurality of times. 複数の通信装置がネットワーク上で所定の制御プロトコルを用いて互いに通信を行う通信システムであって、
前記複数の通信装置のうち少なくとも一つは、
前記所定の制御プロトコル上で管理されるアドレスを決定する権限をもつアドレスサーバになることを要求するためのアドレスサーバ検出要求パケットを前記ネットワーク上に同報送信するサーバ要求送信部と、
前記アドレスサーバ検出要求パケットを同報送信してから第1の所定時間内に、アドレスサーバである旨を示す他の通信装置からのパケットが受信されなければ、自装置をアドレスサーバとして決定するサーバ決定部と、
前記アドレスサーバ検出要求パケットを同報送信後、他の通信装置から送信されたアドレスサーバ検出要求パケットを受信した場合、前記アドレスサーバ検出要求パケットを前記第1の所定時間よりも長い第2の所定時間の後再度同報送信するように前記サーバ要求送信部を制御する制御部と、を備えることを特徴とする通信システム。
A communication system in which a plurality of communication devices communicate with each other using a predetermined control protocol on a network,
At least one of the plurality of communication devices is
A server request transmission unit that broadcasts on the network an address server detection request packet for requesting to become an address server having authority to determine an address managed on the predetermined control protocol;
A server that determines its own device as an address server if a packet from another communication device indicating that it is an address server is not received within a first predetermined time after broadcasting the address server detection request packet. A decision unit;
When the address server detection request packet transmitted from another communication apparatus is received after the address server detection request packet is broadcast, the address server detection request packet is sent to the second longer than the first predetermined time. And a control unit that controls the server request transmission unit so as to perform broadcast transmission again after a predetermined time .
前記所定の制御プロトコルはエコーネットのプロトコルであることを特徴とする、請求項3に記載の通信システム。   4. The communication system according to claim 3, wherein the predetermined control protocol is an Echonet protocol. 複数の通信装置と、これら複数の通信装置がネットワーク上で所定の制御プロトコルを用いて互いに通信を行う通信方法であって、
前記所定の制御プロトコル上で管理されるアドレスを決定する権限をもつアドレスサーバになることを要求するためのアドレスサーバ検出要求パケットを前記ネットワーク上に同報送信し、
前記アドレスサーバ検出要求パケットを同報送信してから第1の所定時間内に、アドレスサーバである旨を示す他の通信装置からのパケットが受信されなければ、前記同報送信を行った通信装置をアドレスサーバとして決定し、
該通信装置は、前記アドレスサーバ検出要求パケットを同報送信後、他の通信装置から送信されたアドレスサーバ検出要求パケットを受信した場合、前記アドレスサーバ検出要求パケットを前記第1の所定時間よりも長い第2の所定時間の後再度同報送信することを特徴とする通信方法。
A communication method in which a plurality of communication devices and the plurality of communication devices communicate with each other using a predetermined control protocol on a network,
Broadcast on the network an address server detection request packet for requesting to become an address server having authority to determine an address managed on the predetermined control protocol;
If a packet from another communication device indicating an address server is not received within a first predetermined time after broadcasting the address server detection request packet, the communication device that performed the broadcast transmission As the address server,
When the communication device receives the address server detection request packet transmitted from another communication device after broadcast transmission of the address server detection request packet, the communication device transmits the address server detection request packet from the first predetermined time. A broadcast method characterized in that broadcast transmission is performed again after a long second predetermined time .
前記所定の制御プロトコルはエコーネットのプロトコルであることを特徴とする、請求項5に記載の通信方法。   6. The communication method according to claim 5, wherein the predetermined control protocol is an Echonet protocol.
JP2004267035A 2004-09-14 2004-09-14 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD Expired - Lifetime JP4087366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004267035A JP4087366B2 (en) 2004-09-14 2004-09-14 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004267035A JP4087366B2 (en) 2004-09-14 2004-09-14 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002200247A Division JP2004048175A (en) 2002-07-09 2002-07-09 Communication apparatus, communication system, and communication method

Publications (2)

Publication Number Publication Date
JP2005027348A JP2005027348A (en) 2005-01-27
JP4087366B2 true JP4087366B2 (en) 2008-05-21

Family

ID=34191792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004267035A Expired - Lifetime JP4087366B2 (en) 2004-09-14 2004-09-14 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD

Country Status (1)

Country Link
JP (1) JP4087366B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100703511B1 (en) 2005-05-30 2007-04-03 삼성전자주식회사 Method for communication terminal's automatic entrance of mobile to home network using bluetooth and the mobile communication terminal

Also Published As

Publication number Publication date
JP2005027348A (en) 2005-01-27

Similar Documents

Publication Publication Date Title
KR100628493B1 (en) Communication device
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
US20020169886A1 (en) Communication device and communication control device for enabling operation of control protocol for one network on other types of networks
KR101442309B1 (en) Failover in a host concurrently supporting multiple virtual ip addresses across multiple adapters
CN107113892B (en) Method and device for automatically networking gateway equipment
US7430591B2 (en) Methods and arrangements for configuring functional networks
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
WO2012079461A1 (en) Method, device and system for allocating ip address
JP2011508551A (en) Apparatus and method for simultaneously accessing multiple wireless networks
US20060056408A1 (en) Method and device for universal plug and play communications
KR20040021305A (en) Secure remote access system and method for universal plug and play
CN101197776B (en) Method and system for remotely configuring a device
JP4482011B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP4087366B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP5737367B2 (en) Network mode selection method and apparatus
JP2000312211A (en) Communication unit
JP2005110309A (en) Communication apparatus
US10512026B2 (en) Technique for mediation in a residential network
JP2009071866A (en) Communication apparatus
KR101885618B1 (en) Method for automatically connecting ip based devices and the apparatus supporting the same
JP2002319949A (en) Communication controller and communication controlling method
JP2004007109A (en) Network apparatus adopting improved address setting system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070515

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080220

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

Free format text: PAYMENT UNTIL: 20110228

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4087366

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20120229

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120229

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130228

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130228

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313114

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term