JP2008148029A - Radio communication system and device - Google Patents
Radio communication system and device Download PDFInfo
- Publication number
- JP2008148029A JP2008148029A JP2006333246A JP2006333246A JP2008148029A JP 2008148029 A JP2008148029 A JP 2008148029A JP 2006333246 A JP2006333246 A JP 2006333246A JP 2006333246 A JP2006333246 A JP 2006333246A JP 2008148029 A JP2008148029 A JP 2008148029A
- Authority
- JP
- Japan
- Prior art keywords
- address
- duplicate
- memory
- router
- transmitted
- 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.)
- Pending
Links
Images
Abstract
Description
この発明は、ツリー構造の無線通信システムおよびこの無線通信システムに用いられるデバイスに関するものである。 The present invention relates to a radio communication system having a tree structure and a device used in the radio communication system.
近年、無線通信を利用して、環境計測・監視・制御などを行うシステムが増加している。この環境計測・監視・制御などを行う無線通信システムでは、対象エリアが比較的広い、又は、対象エリア内に無線通信の障害物が多々存在する場合が多い。このような場合、対象エリアをカバーするためには、受信器と送信器の設置位置や電波状況等の環境により直接通信できなくても、他のデバイスを中継して通信を行うことができる無線通信ネットワークを利用することが有利である。 In recent years, systems that perform environmental measurement, monitoring, control, and the like using wireless communication are increasing. In a wireless communication system that performs environmental measurement, monitoring, control, and the like, there are many cases where the target area is relatively wide or there are many obstacles for wireless communication in the target area. In such a case, in order to cover the target area, even if it is not possible to communicate directly depending on the environment such as the installation position of the receiver and the transmitter and the radio wave condition, it is possible to perform communication by relaying other devices. It is advantageous to use a communication network.
この種の無線通信ネットワークとして、ジグビー(Zigbee(登録商標))プロトコルを利用した無線通信ネットワークが考えられている(例えば、特許文献1、特許文献2参照)。以下、このジグビープロトコルを利用した無線通信ネットワークをジグビーネットワークと呼ぶ。
As this type of wireless communication network, a wireless communication network using a Zigbee (registered trademark) protocol is considered (for example, see
ジグビーネットワークは、ツリー構造の無線通信ネットワークであり、次のような3種類のデバイスによって構成される。
〔デバイスA(ノードA)〕
コーディネータと呼ばれ、ネットワークの基層(最上位)に唯一存在し、下位デバイスと接続通信でき、ネットワーク内の全てのデバイスに対して命令するとともに、各デバイス固有の情報および各デバイスから送られてくる情報の収集を統括する。また、ネットワーク全体の総合親局の役割を果たすとともに、自己と親子関係を結ぶデバイスにアドレスを付番する。
The ZigBee network is a tree-structured wireless communication network, and is composed of the following three types of devices.
[Device A (Node A)]
It is called a coordinator and exists only in the base layer (top layer) of the network, can communicate with lower-level devices, commands all devices in the network, and is sent from each device-specific information and each device. Supervise the collection of information. In addition to acting as a general master station for the entire network, it also assigns addresses to devices that have a parent-child relationship with itself.
〔デバイスB(ノードB)〕
ルータと呼ばれ、コーディネータよりも下層に存在し、上位デバイスおよび下位デバイスと接続通信でき、コーディネータからの命令を受けるとともに、下位デバイス(ルータ、又はエンドデバイス)を接続することができ、それらデバイスに対しては局地的な親局の役割を果たす。また、自己と親子関係を結ぶデバイスにアドレスを付番する。
[Device B (Node B)]
It is called a router and exists below the coordinator. It can communicate with upper devices and lower devices, receives commands from the coordinator, and can connect lower devices (routers or end devices) to these devices. On the other hand, it plays the role of a local master station. Also, addresses are assigned to devices that have a parent-child relationship with themselves.
〔デバイスC(ノードC)〕
エンドデバイスと呼ばれ、ネットワークの末端(最下位)に存在し、上位デバイスと接続通信でき、他のデバイスの親局にはならない。例えば、空調制御システムでは、温度センサや湿度センサなどのセンサがエンドデバイスとされる。
[Device C (Node C)]
It is called an end device, exists at the end (lowest level) of the network, can communicate with a higher level device, and does not become a master station of other devices. For example, in an air conditioning control system, a sensor such as a temperature sensor or a humidity sensor is an end device.
なお、ジグビーネットワークの各デバイスには、接続可能な下位デバイスの最大個数Cmと、ツリー構造の階層の最深度Lmがネットワークパラメータとして定められる。 For each device of the ZigBee network, the maximum number Cm of lower devices that can be connected and the lowest depth Lm of the hierarchy of the tree structure are determined as network parameters.
図13にジグビーネットワークの単純な例を示す。同図において、1は最上位(第0層)に位置するコーディネータ、2−1,2−2はコーディネータ1の下層(第1層)に位置するルータ、3−1,3−2および3−3,3−4はルータ2−1および2−2の下層(第2層(最下位))に位置するエンドデバイスである。
FIG. 13 shows a simple example of a ZigBee network. In the figure, 1 is a coordinator located at the highest level (0th layer), 2-1 and 2-2 are routers located at the lower layer (first layer) of
なお、この例において、コーディネータ1の識別番号は#0、ルータ2−1,2−2の識別番号は#1,#2、エンドデバイス3−1〜3−4の識別番号は#3〜#6として設定されているものとする。これらの識別番号#0〜#6は、デバイス毎に固有に定められたものであり、変わることはない。また、このジグビーネットワークにおいて、コーディネータ1には、ネットワーク全体に対して付番可能なアドレスとしてアドレスブロックAD0〜AD6が定められ、このアドレスブロックのうち「AD0」が自己のアドレスとして割り当てられるものとする。
In this example, the identification number of the
コーディネータ1に対して、ルータ2−1を接続する場合、ルータ2−1をコーディネータ1に近づけて電源をオンとする。すると、ルータ2−1からコーディネータ1へアソシエイト(参加申請)と呼ばれる接続要求(以下、アソシエイト接続要求と呼ぶ)が送られる。コーディネータ1は、ルータ2−1からのアソシエイト接続要求を受けて、ルータ2−1に対してアドレスAD1を割り当てるとともに、ルータ2−1の識別番号#1とルータ2−1に割り当てたアドレスAD1とを対応づけて親子関係有り(「○」)として接続情報テーブルT0に書き込む。また、ルータ2−1へ、下位のデバイスへ付番可能なアドレスとして、アドレスAD1を含むアドレスブロック「AD1〜AD3」を送る。
When connecting the router 2-1 to the
次に、ルータ2−2をコーディネータ1に近づけて電源をオンとすると、ルータ2−2からコーディネータ1へアソシエイト接続要求が送られる。コーディネータ1は、ルータ2−2からのアソシエイト接続要求を受けて、ルータ2−2に対してアドレスAD4を割り当てるとともに、ルータ2−2の識別番号#2とルータ2−2に割り当てたアドレスAD4とを対応づけて親子関係有りとして接続情報テーブルT0に書き込む。また、ルータ2−2へ、下位のデバイスへ付番可能なアドレスとして、アドレスAD4を含むアドレスブロック「AD4〜AD6」を送る。
Next, when the router 2-2 is brought close to the
エンドデバイス3−1をルータ2−1に近づけて電源をオンとすると、エンドデバイス3−1からルータ2−1へアソシエイト接続要求が送られる。ルータ2−1は、エンドデバイス3−1からのアソシエイト接続要求を受けて、エンドデバイス3−1に対してアドレスAD2を割り当てるとともに、エンドデバイス3−1の識別番号#3とエンドデバイス3−1に割り当てたアドレスAD2とを対応づけて親子関係有りとして接続情報テーブルT1に書き込む。
When the end device 3-1 is brought close to the router 2-1 and the power is turned on, an associate connection request is sent from the end device 3-1 to the router 2-1. The router 2-1 receives the associate connection request from the end device 3-1, assigns the
エンドデバイス3−2をルータ2−1に近づけて電源をオンとすると、エンドデバイス3−2からルータ2−1へアソシエイト接続要求が送られる。ルータ2−1は、エンドデバイス3−2からのアソシエイト接続要求を受けて、エンドデバイス3−2に対してアドレスAD3を割り当てるとともに、エンドデバイス3−2の識別番号#4とエンドデバイス3−2に割り当てたアドレスAD3とを対応づけて親子関係有りとして接続情報テーブルT1に書き込む。以下同様にして、各デバイスにアドレスが割り当てられる。
When the end device 3-2 is brought close to the router 2-1 and the power is turned on, an associate connection request is sent from the end device 3-2 to the router 2-1. The router 2-1 receives the associate connection request from the end device 3-2, assigns the
このジグビーネットワークでは、例えばエンドデバイス3−1の電源がオフとされると、エンドデバイス3−1に割り当てられたアドレスAD2が消失する。この場合、電源をオンとし、再起動すると、エンドデバイス3−1からルータ2−1へオーファンと呼ばれる接続要求(以下、オーファン接続要求と呼ぶ)が送られ、ルータ2−1が記憶している接続情報テーブルT1中のエンドデバイス3−1の識別番号#3に対応するアドレスAD2が読み出され、エンドデバイス3−1に再度割り当てられる。
In this ZigBee network, for example, when the power of the end device 3-1 is turned off, the address AD2 assigned to the end device 3-1 disappears. In this case, when the power is turned on and restarted, a connection request called orphan (hereinafter referred to as orphan connection request) is sent from the end device 3-1 to the router 2-1 and stored in the router 2-1. The address AD2 corresponding to the
また、このジグビーネットワークでは、例えばエンドデバイス3−1とルータ2−1との間の伝送路に電波障害などが発生した場合、エンドデバイス3−1からの情報(例えば、温度計測値、湿度計測値など)がルータ2−1で受信できなくなる。この場合、エンドデバイス3−1は人手によって、ルータ2−2が送信圏内にあれば、新たにルータ2−2とエンドデバイス3−1とで親子関係を結び、エンドデバイス3−1は自己の情報をルータ2−2へ送り、さらにその情報は上位のデバイスに送られる。これにより、通信経路が新たに規定され、エンドデバイス3−1からの情報が継続してコーディネータ1へ送られるものとなる。
Further, in this ZigBee network, for example, when a radio wave interference or the like occurs in the transmission path between the end device 3-1 and the router 2-1, information from the end device 3-1 (for example, temperature measurement value, humidity measurement) Value) cannot be received by the router 2-1. In this case, if the end device 3-1 is manually placed and the router 2-2 is within the transmission range, a new parent-child relationship is established between the router 2-2 and the end device 3-1, and the end device 3-1 Information is sent to the router 2-2, and the information is sent to a higher-level device. As a result, a new communication path is defined, and information from the end device 3-1 is continuously sent to the
なお、図13には単純な例を示したが、実際には最上位のコーディネータ1と最下位のエンドデバイス3との間にはルータ2が何層も位置し、さらにルータ2の数やエンドデバイス3の数も増大し、大規模なネットワークとされる。
Although a simple example is shown in FIG. 13, there are actually several layers of
しかしながら、上述したジグビーネットワークでは、ルータ2が下位のデバイスにアドレスを割り当てた後に、故障等によりルータ2内の接続情報テーブルT1が失われることがある。ここで、接続情報テーブルT1が失われたルータ2に新たなデバイスが親子接続を求めた場合、既に割り当てられているアドレスをその親子接続を求めたデバイスに重複して割り当ててしまう可能性がある。
However, in the ZigBee network described above, after the
例えば、今、図14(a)に示すように、ルータ2−1の接続情報テーブルT1には、エンドデバイス3−1との親子関係が定められているが、エンドデバイス3−2との親子関係はまだ定められていないものとする。ここで、何らかの異常によりルータ2−1内の接続情報テーブルT1が消失し(図14(b))、ルータ2−1とエンドデバイス3−1との親子関係が失われたとする。このような状態で、例えばエンドデバイス3−2をルータ2−1に近づけて電源をオンとすると(図14(c))、エンドデバイス3−2からルータ2−1へアソシエイト接続要求が送られ、ルータ2−1との間で親子関係が結ばれる。 For example, as shown in FIG. 14A, the connection information table T1 of the router 2-1 has a parent-child relationship with the end device 3-1, but the parent-child with the end device 3-2. The relationship has not yet been established. Here, it is assumed that the connection information table T1 in the router 2-1 is lost due to some abnormality (FIG. 14B), and the parent-child relationship between the router 2-1 and the end device 3-1 is lost. In this state, for example, when the end device 3-2 is brought close to the router 2-1 and the power is turned on (FIG. 14C), an associate connection request is sent from the end device 3-2 to the router 2-1. A parent-child relationship is established with the router 2-1.
この場合、ルータ2−1は、下位のデバイスへ割り当て可能なアドレスとしてアドレスAD2とAD3が残されているものと判断し、エンドデバイス3−2に対してアドレスAD2を割り当てるとともに、エンドデバイス3−2の識別番号#4とエンドデバイス3−2に割り当てたアドレスAD2とを対応づけて親子関係有りとして接続情報テーブルT1に書き込む。 In this case, the router 2-1 determines that the addresses AD2 and AD3 remain as addresses that can be assigned to the lower device, assigns the address AD2 to the end device 3-2, and also assigns the end device 3- 2 is associated with the address AD2 assigned to the end device 3-2 and written in the connection information table T1 as having a parent-child relationship.
このため、エンドデバイス3−1のアドレスとエンドデバイス3−2のアドレスとが同じアドレスAD2となり、アドレスの重複が生じ、コーディネータ1への情報が混乱してしまう。このようなアドレスの重複は、ルータ2−1,2−2との間でも同様にして生じる虞れがある。
For this reason, the address of the end device 3-1 and the address of the end device 3-2 become the same address AD <b> 2, duplication of addresses occurs, and information to the
なお、ジグビーネットワークではないが、特許文献3や特許文献4には、アドレスの重複の問題を解決するための技術が示されている。これらの特許文献では、他のデバイスと自由に接続可能なデバイスの内部に、重複アドレス検出機能を設けている。この技術を上述したジグビーネットワークに応用すると、全てのデバイスに重複アドレス検出機能を付加することになり、非常に高価なシステムとなってしまう。
Although it is not a ZigBee network,
本発明は、このような課題を解決するためになされたもので、その目的とするところは、安価な構成で、システム内の全てのアドレスの重複を検出することができる無線通信システムを提供することにある。 The present invention has been made to solve such problems, and an object of the present invention is to provide a wireless communication system capable of detecting duplication of all addresses in the system with an inexpensive configuration. There is.
このような目的を達成するために、第1発明(請求項1に係る発明)は、最上位に位置する第1のデバイスと、最下位に位置し自己のメモリに自己に割り当てられたアドレスを記憶する第2のデバイスとを少なくとも備えたツリー構造の無線通信システムにおいて、第2のデバイスに、自己に割り当てられたアドレスに自己の識別情報を付加して第1のデバイスへ定期的に送信する手段を設け、第1のデバイスに、第2のデバイスより送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、第2のデバイスより送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設けたものである。 In order to achieve such an object, the first invention (the invention according to claim 1) includes a first device located at the highest level and an address assigned to the own memory located at the lowest level. In a tree-structured wireless communication system including at least a second device to be stored, the second device is periodically transmitted to the first device by adding its own identification information to an address assigned to the second device. Means for storing the address transmitted from the second device in the memory in association with the identification information added to the address, and transmitted from the second device. When the address is already stored in the memory, the identification information stored corresponding to the address is compared with the identification information added to the transmitted address. If is different, it is provided with a means for detecting the address transmitted as a duplicate address.
この第1発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをルータもしくはエンドデバイスとする2層のツリー構造の無線通信システムとした場合、ルータもしくはエンドデバイスからコーディネータへ、自己に割り当てられたアドレスが自己の識別情報を付加して定期的に送信される。コーディネータは、ルータもしくはエンドデバイスからアドレスが送信されてきた場合、そのアドレスとそのアドレスに付加されている識別情報とを対応づけてメモリに保存する。また、コーディネータは、ルータもしくはエンドデバイスからアドレスが送信されてきた場合、そのアドレスが既にメモリに保存されているか否かを確認し、メモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較する。ここで、両者が異なっていれば、送信されてきたアドレスを重複アドレスとして検出する。この場合、重複アドレスを検出する機能はコーディネータのみに設ければよく、他のデバイス(ルータ、エンドデバイス)には不要なので、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。 According to the first aspect of the invention, for example, when a wireless communication system having a two-layer tree structure in which the first device is a coordinator and the second device is a router or an end device, the router or the end device sends a self- The address assigned to is periodically transmitted with its own identification information. When an address is transmitted from a router or an end device, the coordinator stores the address and identification information added to the address in association with each other. If the address is sent from the router or end device, the coordinator checks whether the address is already stored in the memory. If it is stored in the memory, the coordinator stores it in correspondence with the address. And the identification information added to the transmitted address are compared. Here, if both are different, the transmitted address is detected as a duplicate address. In this case, the function to detect duplicate addresses need only be provided in the coordinator, and is not required for other devices (routers and end devices), so it is possible to detect duplication of all addresses in the system with an inexpensive configuration. It becomes.
第2発明(請求項2に係る発明)は、第1発明において、第1のデバイスに、重複アドレスが検出された場合、その重複アドレスをメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を設け、第2のデバイスに、第1のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、重複アドレスを削除した後、上位のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段とを設けたものである。 According to a second invention (invention according to claim 2), in the first invention, when a duplicate address is detected in the first device, the duplicate address is deleted from the memory, and the duplicate address is deleted in a lower device. A means for sending a request by broadcasting is provided, and when the second device receives a request for deleting a duplicate address from the first device and the address assigned to the second device is a duplicate address, A means for deleting from the memory and a means for making a reconnection request to a higher-level device after acquiring a duplicate address and acquiring an address from the device are provided.
この第2発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをルータもしくはエンドデバイスとする2層のツリー構造の無線通信システムとした場合、コーディネータは、重複アドレスを検出すると、その重複アドレスをメモリより削除し、下位のデバイス(ルータ、エンドデバイス)に重複アドレスの削除要求をブロードキャストで送る。
ルータもしくはエンドデバイスは、コーディネータからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する。そして、この重複アドレスの削除後、上位の任意のデバイス(コーディネータ)に再接続要求を行い、そのデバイスからアドレスを取得する。
これにより、同じアドレスが割り当てられていたデバイスに異なるアドレスが与えられ、システム内のアドレスの重複が自動的に解消される。
According to the second invention, for example, when the wireless communication system has a two-layer tree structure in which the first device is a coordinator and the second device is a router or an end device, the coordinator detects a duplicate address, The duplicate address is deleted from the memory, and a duplicate address deletion request is sent by broadcast to lower devices (routers and end devices).
When the router or end device receives a duplicate address deletion request from the coordinator and the address assigned to it is a duplicate address, the router or end device deletes the address from its own memory. After deleting the duplicate address, a reconnection request is made to an arbitrary upper device (coordinator), and the address is acquired from the device.
As a result, different addresses are given to devices to which the same address is assigned, and address duplication in the system is automatically resolved.
第3発明(請求項3に係る発明)は、最上位に位置する第1のデバイスと、最下位に位置し自己のメモリに自己に割り当てられたアドレスを記憶する第2のデバイスと、この第1のデバイスと第2のデバイスとの間に位置し自己のメモリに自己に割り当てられたアドレスを記憶する第3のデバイスとを少なくとも備えたツリー構造の無線通信システムにおいて、第2のデバイスおよび第3のデバイスに、自己に割り当てられたアドレスに自己の識別情報を付加して第1のデバイスへ定期的に送信する手段を設け、第1のデバイスに、第2のデバイスおよび第3のデバイスより送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、第2のデバイスおよび第3のデバイスより送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設けたものである。
A third invention (invention according to claim 3) includes a first device located at the highest level, a second device located at the lowest level and storing an address assigned to the memory in its own memory, In a tree-structured wireless communication system comprising at least a third device that is located between one device and a second device and stores a self-assigned address in its own memory, the second device and the
この第3発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをエンドデバイス、第3のデバイスをルータとする3層のツリー構造の無線通信システムとした場合、ルータからコーディネータへ、またエンドデバイスからルータを介してコーディネータへ、自己に割り当てられたアドレスが自己の識別情報を付加して定期的に送信される。コーディネータは、ルータやエンドデバイスからアドレスが送信されてきた場合、そのアドレスとそのアドレスに付加されている識別情報とを対応づけてメモリに保存する。また、コーディネータは、ルータやエンドデバイスからアドレスが送信されてきた場合、そのアドレスが既にメモリに保存されているか否かを確認し、メモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較する。ここで、両者が異なっていれば、送信されてきたアドレスを重複アドレスとして検出する。この場合、重複アドレスを検出する機能はコーディネータのみに設ければよく、他のデバイス(ルータ、エンドデバイス)には不要なので、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。 According to the third invention, for example, when a wireless communication system having a three-layer tree structure in which the first device is a coordinator, the second device is an end device, and the third device is a router, the router to the coordinator. In addition, the address assigned to itself is periodically transmitted from the end device to the coordinator via the router with its own identification information added. When an address is transmitted from a router or an end device, the coordinator stores the address and identification information added to the address in association with each other. In addition, when an address is sent from a router or end device, the coordinator checks whether or not the address is already stored in the memory. If it is stored in the memory, the coordinator is stored corresponding to the address. And the identification information added to the transmitted address are compared. Here, if both are different, the transmitted address is detected as a duplicate address. In this case, the function to detect duplicate addresses need only be provided in the coordinator, and is not required for other devices (routers and end devices), so it is possible to detect duplication of all addresses in the system with an inexpensive configuration. It becomes.
第4発明(請求項4に係る発明)は、第3発明において、第1のデバイスに、重複アドレスが検出された場合、その重複アドレスをメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を設け、第2および第3のデバイスに、第1のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段とを設けたものである。 According to a fourth invention (invention according to claim 4), in the third invention, when a duplicate address is detected in the first device, the duplicate address is deleted from the memory, and the duplicate address is deleted in a lower device. A means for sending a request by broadcast is provided, and when the second and third devices receive a duplicate address deletion request from the first device and the address assigned to the second and third devices is a duplicate address, the address Is deleted from its own memory, and after deleting the duplicate address, a reconnection request is made to an arbitrary upper device, and an address is acquired from the device.
この第4発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをエンドデバイス、第3のデバイスをルータとする3層のツリー構造の無線通信システムとした場合、コーディネータは、重複アドレスを検出すると、その重複アドレスをメモリより削除し、下位のデバイス(ルータ、エンドデバイス)に重複アドレスの削除要求をブロードキャストで送る。
ルータは、コーディネータからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する。そして、この重複アドレスの削除後、上位の任意のデバイス(コーディネータ)に再接続要求を行い、そのデバイスからアドレスを取得する。
エンドデバイスもルータと同様に、コーディネータからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する。そして、この重複アドレスの削除後、上位の任意のデバイス(ルータ)に再接続要求を行い、そのデバイスからアドレスを取得する。
これにより、同じアドレスが割り当てられていたデバイスに異なるアドレスが与えられ、システム内のアドレスの重複が自動的に解消される。
According to the fourth aspect of the present invention, for example, when the wireless communication system has a three-layer tree structure in which the first device is a coordinator, the second device is an end device, and the third device is a router, When the address is detected, the duplicate address is deleted from the memory, and a duplicate address deletion request is sent by broadcast to a lower device (router, end device).
In response to a duplicate address deletion request from the coordinator, the router deletes the address from its own memory if the address assigned to it is a duplicate address. After deleting the duplicate address, a reconnection request is made to an arbitrary upper device (coordinator), and the address is acquired from the device.
Similarly to the router, the end device receives a duplicate address deletion request from the coordinator, and when the address assigned to itself is a duplicate address, the end device deletes the address from its own memory. After deleting the duplicate address, a reconnection request is made to an arbitrary upper device (router), and the address is acquired from the device.
As a result, different addresses are given to devices to which the same address is assigned, and address duplication in the system is automatically resolved.
第5発明(請求項5に係る発明)は、最上位に位置する第1のデバイスと、最下位に位置し自己のメモリに自己に割り当てられたアドレスを記憶する第2のデバイスと、この第1のデバイスと第2のデバイスとの間に位置し自己のメモリに自己に割り当てられたアドレスを記憶する第3のデバイスとを少なくとも備えたツリー構造の無線通信システムにおいて、第2のデバイスに、自己に割り当てられたアドレスに自己の識別情報を付加して上位のデバイスへ定期的に送信する手段を設け、第3のデバイスに、自己に割り当てられたアドレスに自己の識別情報を付加して上位のデバイスへ定期的に送信する手段と、1階層下のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけて第1のメモリに保存する手段と、1階層下のデバイスより定期的に送信されてきたアドレスが既に第1のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設け、第1のデバイスに、1階層下のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけて第2のメモリに保存する手段と、1階層下のデバイスより定期的に送信されてきたアドレスが既に第2のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設けたものである。 A fifth invention (invention according to claim 5) is a first device positioned at the highest level, a second device positioned at the lowest level and storing an address assigned to itself in its own memory, In a tree-structured wireless communication system comprising at least a third device that is located between one device and a second device and stores a self-assigned address in its own memory, the second device includes: A means for periodically transmitting the identification information to the higher-order device by adding the identification information to the self-assigned address is provided, and the third device is added with the identification information to the higher-order address. Means for periodically transmitting to a device of the first memory, and an address periodically transmitted from a device one layer below is associated with identification information added to the address in the first memory In the case where the storing means and the address periodically transmitted from the device one layer below are already stored in the first memory, the identification information stored corresponding to the address and the transmitted address Is compared with the identification information added to the device, and if both are different, a means for detecting the transmitted address as a duplicate address is provided. Means for storing the transmitted address in the second memory in association with the identification information added to the address, and the address periodically transmitted from the device one layer below is already stored in the second memory. If it was stored, the identification information stored corresponding to the address was compared with the identification information added to the transmitted address, and both were different. If, it is provided with a means for detecting the address transmitted as a duplicate address.
この第5発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをエンドデバイス、第3のデバイスをルータとする3層のツリー構造の無線通信システムとした場合、エンドデバイスから上位のデバイス(ルータ)へ、自己に割り当てられたアドレスが自己の識別情報を付加して定期的に送信される。また、ルータから上位のデバイス(コーディネータ)へ、自己に割り当てられたアドレスが自己の識別情報を付加して定期的に送信される。
ルータは、1階層下のデバイス(エンドデバイス)からアドレスが送信されてきた場合、そのアドレスとそのアドレスに付加されている識別情報とを対応づけて第1のメモリに保存する。また、ルータは、1階層下のデバイス(エンドデバイス)からアドレスが送信されてきた場合、そのアドレスが既に第1のメモリに保存されているか否かを確認し、第1のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較する。ここで、両者が異なっていれば、送信されてきたアドレスを重複アドレスとして検出する。
コーディネータは、1階層下のデバイス(ルータ)からアドレスが送信されてきた場合、そのアドレスとそのアドレスに付加されている識別情報とを対応づけて第2のメモリに保存する。また、コーディネータは、1階層下のデバイス(ルータ)からアドレスが送信されてきた場合、そのアドレスが既に第2のメモリに保存されているか否かを確認し、第2のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較する。ここで、両者が異なっていれば、送信されてきたアドレスを重複アドレスとして検出する。
この場合、重複アドレスを検出する機能はコーディネータおよびルータのみに設ければよく、エンドデバイスには不要なので、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。
According to the fifth aspect of the present invention, for example, in the case of a wireless communication system having a three-layer tree structure in which the first device is a coordinator, the second device is an end device, and the third device is a router, The address assigned to itself is periodically transmitted to the other device (router) with its own identification information added. Also, the address assigned to itself is periodically transmitted from the router to the higher-level device (coordinator) with its own identification information added.
When an address is transmitted from a device (end device) one level below, the router associates the address with identification information added to the address and stores it in the first memory. In addition, when an address is transmitted from a device (end device) one layer below, the router checks whether the address is already stored in the first memory, and is stored in the first memory. In the case where the address is stored, the identification information stored corresponding to the address is compared with the identification information added to the transmitted address. Here, if both are different, the transmitted address is detected as a duplicate address.
When an address is transmitted from a device (router) one layer below, the coordinator associates the address with the identification information added to the address and stores it in the second memory. In addition, when an address is transmitted from a device (router) one layer below, the coordinator checks whether or not the address is already stored in the second memory, and is stored in the second memory. In this case, the identification information stored corresponding to the address is compared with the identification information added to the transmitted address. Here, if both are different, the transmitted address is detected as a duplicate address.
In this case, the function for detecting duplicate addresses need only be provided in the coordinator and router, and is not necessary for the end device, so that duplication of all addresses in the system can be detected with an inexpensive configuration.
第6発明(請求項6に係る発明)は、第5発明において、第1のデバイスに、重複アドレスが検出された場合、その重複アドレスを第2のメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を設け、第3のデバイスに、重複アドレスが検出された場合、その重複アドレスを第1のメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段と、上位のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段とを設け、第2のデバイスに、上位のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段を設けたものである。 According to a sixth invention (invention according to claim 6), in the fifth invention, when a duplicate address is detected in the first device, the duplicate address is deleted from the second memory and duplicated in a lower device. A means for sending an address deletion request by broadcasting is provided. When a duplicate address is detected in the third device, the duplicate address is deleted from the first memory, and a duplicate address deletion request is broadcast to the lower device. If the address assigned to itself is a duplicate address in response to a request for deleting a duplicate address from a higher-level device, the means for deleting the address from its own memory and the duplicate address are deleted. After that, there is a means for requesting reconnection to any upper device and obtaining an address from that device. When the second device receives a duplicate address deletion request from a higher-level device and the assigned address is a duplicate address, means for deleting the address from its own memory, and a duplicate address After deletion, a means for making a reconnection request to an arbitrary upper device and acquiring an address from the device is provided.
この第6発明によれば、例えば、第1のデバイスをコーディネータ、第2のデバイスをエンドデバイス、第3のデバイスをルータとする3層のツリー構造の無線通信システムとした場合、コーディネータは、重複アドレスを検出すると、その重複アドレスを第2のメモリより削除し、下位のデバイス(ルータ)に重複アドレスの削除要求をブロードキャストで送る。ルータは、重複アドレスを検出すると、その重複アドレスを第1のメモリより削除し、下位のデバイス(エンドデバイス)に重複アドレスの削除要求をブロードキャストで送る。
ルータは、コーディネータからの重複アドレスの削除要求を受けると、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する。そして、重複アドレスの削除後、上位の任意のデバイス(コーディネータ)に再接続要求を行い、そのデバイスからアドレスを取得する。
エンドデバイスは、ルータからの重複アドレスの削除要求を受けると、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する。そして、重複アドレスの削除後、上位の任意のデバイス(ルータ)に再接続要求を行い、そのデバイスからアドレスを取得する。
これにより、同じアドレスが割り当てられていたデバイスに異なるアドレスが与えられ、システム内のアドレスの重複が自動的に解消される。
According to the sixth aspect of the present invention, for example, when the wireless communication system has a three-layer tree structure in which the first device is a coordinator, the second device is an end device, and the third device is a router, the coordinator When the address is detected, the duplicate address is deleted from the second memory, and a duplicate address deletion request is broadcasted to a lower device (router). When the router detects the duplicate address, the router deletes the duplicate address from the first memory and sends a duplicate address deletion request to the lower device (end device) by broadcast.
When the router receives a duplicate address deletion request from the coordinator, if the address assigned to the router is a duplicate address, the router deletes the address from its own memory. After the duplicate address is deleted, a reconnection request is made to an arbitrary upper device (coordinator), and the address is acquired from the device.
When the end device receives a duplicate address deletion request from the router, if the address assigned to the end device is a duplicate address, the end device deletes the address from its own memory. After the duplicate address is deleted, a reconnection request is made to an arbitrary upper device (router), and the address is acquired from the device.
As a result, different addresses are given to devices to which the same address is assigned, and address duplication in the system is automatically resolved.
なお、本発明において、ツリー構造の無線通信システムは、3層のツリー構造に限られるものではなく、第1のデバイスと第2のデバイスで構成された2層のツリー構造としてもよく、また、第1のデバイスと第2のデバイスとの間に第3のデバイスを何層も設けた4層以上のツリー構造としてもよい。更に、このツリー構造の無線通信システムにおいて、第1のデバイスは1つであるが、第2のデバイスや第3のデバイスは状況に応じて多数設けられる。また、本発明は、無線通信システムとしてではなく、デバイス単体として構成することもできる。この場合、デバイスに、下位のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、下位のデバイスより送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設ける(第7発明(請求項7に係る発明))。また、重複アドレスが検出された場合、その重複アドレスをメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を設ける(第8発明(請求項8に係る発明))。この場合、デバイスは、コーディネータであってもよいし、ルータであってもよい。 In the present invention, the tree-structured wireless communication system is not limited to a three-layer tree structure, and may be a two-layer tree structure including a first device and a second device. A tree structure having four or more layers in which a plurality of third devices are provided between the first device and the second device may be used. Furthermore, in this tree-structured wireless communication system, there is one first device, but many second devices and third devices are provided depending on the situation. In addition, the present invention can be configured as a single device, not as a wireless communication system. In this case, the device periodically stores the address transmitted from the lower device in association with the identification information added to the address and the address transmitted from the lower device. If it is stored in the memory, the identification information stored corresponding to that address is compared with the identification information added to the transmitted address, and if they are different, the transmitted address Is provided as a duplicate address (seventh invention (invention according to claim 7)). In addition, when a duplicate address is detected, the duplicate address is deleted from the memory, and a means for broadcasting a duplicate address deletion request to a lower device is provided (eighth invention (invention according to claim 8)). In this case, the device may be a coordinator or a router.
第1発明によれば、第2のデバイスから自己に割り当てられたアドレスを自己の識別情報を付加して第1のデバイスへ定期的に送信するようにし、第1のデバイスにおいて、第2のデバイスより送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出するようにしたので、重複アドレスを検出する機能を第1のデバイスのみに設けるようにして、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。
第2発明によれば、第1のデバイスにおいて重複アドレスが検出された場合、第1のデバイスより下位のデバイスへ重複アドレスの削除要求をブロードキャストで送ることにより、重複アドレスを削除し、同じアドレスが割り当てられていたデバイスに異なるアドレスを与えるようにして、システム内の全てのアドレスの重複を自動的に解消することが可能となる。
According to the first invention, the address assigned to itself from the second device is periodically transmitted to the first device with its own identification information added, and the second device If the transmitted address is already stored in the memory, the identification information stored corresponding to the address is compared with the identification information added to the transmitted address, and the two are different. In this case, since the transmitted address is detected as a duplicate address, a function for detecting the duplicate address is provided only in the first device, so that all addresses in the system are duplicated with an inexpensive configuration. It becomes possible to detect.
According to the second invention, when a duplicate address is detected in the first device, the duplicate address is deleted by broadcasting a duplicate address deletion request to a device lower than the first device. By giving different addresses to assigned devices, it becomes possible to automatically eliminate duplication of all addresses in the system.
第3発明によれば、第2のデバイスおよび第3のデバイスから自己に割り当てられたアドレスを自己の識別情報を付加して第1のデバイスへ定期的に送信するようにし、第1のデバイスにおいて、第2のデバイスおよび第3のデバイスより送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出するようにしたので、重複アドレスを検出する機能を第1のデバイスのみに設けるようにして、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。
第4発明によれば、第1のデバイスにおいて重複アドレスが検出された場合、第1のデバイスより下位のデバイスへ重複アドレスの削除要求をブロードキャストで送ることにより、重複アドレスを削除し、同じアドレスが割り当てられていたデバイスに異なるアドレスを与えるようにして、システム内の全てのアドレスの重複を自動的に解消することが可能となる。
According to the third invention, the address assigned to itself from the second device and the third device is periodically transmitted to the first device by adding its own identification information, and in the first device When the addresses transmitted from the second device and the third device are already stored in the memory, the identification information stored corresponding to the addresses and the identification added to the transmitted address Compared with the information, if they are different, the transmitted address is detected as a duplicate address. Therefore, the function for detecting the duplicate address is provided only in the first device. It becomes possible to detect duplication of all addresses with an inexpensive configuration.
According to the fourth invention, when a duplicate address is detected in the first device, the duplicate address is deleted by broadcasting a duplicate address deletion request to a device lower than the first device, and the same address is By giving different addresses to assigned devices, it becomes possible to automatically eliminate duplication of all addresses in the system.
第5発明によれば、第2のデバイスおよび第3のデバイスから自己に割り当てられたアドレスを自己の識別情報を付加して上位のデバイスへ定期的に送信するようにし、第1のデバイスおよび第3のデバイスにおいて、1階層下のデバイスより定期的に送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出するようにしたので、重複アドレスを検出する機能をコーディネータおよびルータのみに設けるようにして、システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。
第6発明によれば、第1のデバイスにおいて重複アドレスが検出された場合、第1のデバイスより下位のデバイスへ重複アドレスの削除要求をブロードキャストで送ることにより、また第3のデバイスにおいて重複アドレスが検出された場合、第3のデバイスより下位のデバイスへ重複アドレスの削除要求をブロードキャストで送ることにより、重複アドレスを削除し、同じアドレスが割り当てられていたデバイスに異なるアドレスを与えるようにして、システム内の全てのアドレスの重複を自動的に解消することが可能となる。
According to the fifth aspect of the invention, the addresses assigned to itself from the second device and the third device are periodically transmitted to the higher-level device with the identification information added thereto, In the
According to the sixth invention, when a duplicate address is detected in the first device, a duplicate address deletion request is broadcasted to a device lower than the first device, and the duplicate address is also found in the third device. If detected, a duplicate address deletion request is broadcasted to a device lower than the third device, so that the duplicate address is deleted and a different address is given to the device to which the same address is assigned. It becomes possible to automatically eliminate duplication of all addresses.
第7発明によれば、デバイスに、下位のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、送信されてきたアドレスが既にメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送信されてきたアドレスを重複アドレスとして検出する手段とを設けるようにしたので、重複アドレスを検出する機能をコーディネータのみに設けたり、コーディネータおよびルータのみに設けたりして、ツリー構造の無線通信システム内の全てのアドレスの重複を安価な構成で検出することが可能となる。 According to the seventh aspect of the invention, the device stores the address periodically transmitted from the lower-level device in association with the identification information added to the address, and the transmitted address is already stored. If it is stored in the memory, the identification information stored corresponding to that address is compared with the identification information added to the transmitted address, and if they are different, the transmitted address Is provided as a duplicate address, so that a function for detecting duplicate addresses is provided only in the coordinator, or only in the coordinator and router, so that all addresses in the tree-structured wireless communication system can be detected. Duplication can be detected with an inexpensive configuration.
第8発明によれば、第7発明のデバイスに、重複アドレスが検出された場合、その重複アドレスをメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を設けるようにしたので、コーディネータより下位のデバイスへ重複アドレスの削除要求を与えたり、ルータより下位のデバイスへ重複アドレスの削除要求を与えたりして、重複アドレスを削除し、同じアドレスが割り当てられていたデバイスに異なるアドレスを与えるようにして、ツリー構造の無線通信システム内の全てのアドレスの重複を自動的に解消することが可能となる。 According to the eighth invention, when a duplicate address is detected in the device of the seventh invention, means for deleting the duplicate address from the memory and sending a duplicate address deletion request to the lower device by broadcasting are provided. Therefore, a duplicate address deletion request is given to a device lower than the coordinator, or a duplicate address deletion request is given to a device lower than the router, and the duplicate address is deleted. By giving different addresses, it becomes possible to automatically eliminate duplication of all addresses in the tree-structured wireless communication system.
以下、本発明を図面に基づいて詳細に説明する。
〔実施の形態1:重複検出機能をコーディネータのみに設けたシステム〕
図1はこの発明に係る無線通信システムの一例(実施の形態1)を示す概略図である。この無線通信システムは、ジグビーネットワークを利用した単純な例であり、最上位(第0層)に位置するコーディネータ10と、最下位(第2層)に位置するエンドデバイス30と、コーディネータ10とエンドデバイス30との間(第1層)に位置するルータ20とによって構成される。
Hereinafter, the present invention will be described in detail with reference to the drawings.
[Embodiment 1: System in which duplicate detection function is provided only in coordinator]
FIG. 1 is a schematic diagram showing an example (Embodiment 1) of a wireless communication system according to the present invention. This wireless communication system is a simple example using a ZigBee network. The
なお、この例において、コーディネータ10の識別番号は#0、ルータ20−1,20−2の識別番号は#1,#2、エンドデバイス30−1〜30−4の識別番号は#3〜#6として設定されているものとする。また、この無線通信システムにおいて、コーディネータ10には、ネットワーク全体に対して付番可能なアドレスとしてアドレスブロックAD0〜AD6が定められ、このアドレスブロックのうち「AD0」が自己のアドレスとして割り当てられるものとする。
In this example, the identification number of the
この無線通信システムにおいても、図13に示したジグビーネットワークと同様に、コーディネータ10に対して、ルータ20−1を接続する場合、ルータ20−1をコーディネータ10に近づけて電源をオンとする。すると、ルータ20−1からコーディネータ10へアソシエイト接続要求が送られ、コーディネータ10との間で親子関係が結ばれる。これにより、ルータ20−1へアドレスAD1が割り当てられるとともに、コーディネータ10の接続情報テーブルT0にルータ20−1に割り当てたアドレスAD1と識別番号#1との対応関係が書き込まれる。
Also in this wireless communication system, similarly to the ZigBee network shown in FIG. 13, when the router 20-1 is connected to the
同様にして、コーディネータ10とルータ20−2との間、ルータ20−1とエンドデバイス30−1,30−2との間、ルータ20−2とエンドデバイス30−3,30−4との間で親子関係が結ばれる。これにより、ルータ20−2へアドレスAD4が割り当てられるとともに、コーディネータ10の接続情報テーブルT0にルータ20−2に割り当てたアドレスAD4と識別番号#2との対応関係が書き込まれる。また、エンドデバイス30−1,30−2にアドレスAD2,AD3が割り当てられるとともに、ルータ20−1の接続情報テーブルT1にエンドデバイス30−1,30−2に割り当てたアドレスAD2,AD3と識別番号#3,#4との対応関係が書き込まれる。また、エンドデバイス30−3,30−4にアドレスAD5,AD6が割り当てられるとともに、ルータ20−2の接続情報テーブルT1にエンドデバイス30−3,30−4に割り当てたアドレスAD5,AD6と識別番号#5,#6との対応関係が書き込まれる。
Similarly, between the
この無線通信システムにおいて、ルータ20およびエンドデバイス30は、自己に割り当てられたアドレスに自己の識別情報を付加し、コーディネータ10に定期的に送信する機能を備えている。例えば、エンドデバイス30−1は、自己に割り当てられたアドレスAD2に自己の識別番号#3を付加し、ルータ20−1を経由し、コーディネータ10に送る。ルータ20−1は、自己に割り当てられたアドレスAD1に自己の識別番号#1を付加し、コーディネータ10に送る。
In this wireless communication system, the
また、この無線通信システムにおいて、コーディネータ10は、ルータ20およびエンドデバイス30から定期的に送られてくるアドレスをそのアドレスに付加されている識別番号と対応づけて重複検出用アドレステーブルTAに書き込む機能(重複検出用アドレス保存機能)、ルータ20およびエンドデバイス30から定期的に送られてきたアドレスが既にテーブルTAに書き込まれていた場合、そのアドレスと対応して書き込まれている識別情報と通知アドレスに付加されている識別情報とを比較し、両者が異なっていた場合、送られてきたアドレスを重複アドレスとして検出する機能(重複アドレス検出機能)、重複アドレスが検出された場合、その重複アドレスを重複検出用アドレステーブルTAより削除するとともに、そのアドレスを要求アドレスとして、下位のデバイス(ルータ20,エンドデバイス30)に重複アドレスの削除要求をブロードキャストで与える機能(重複アドレス削除要求機能)、および下位のデバイスとの親子関係を定めた接続情報テーブルT0に重複アドレスが含まれていた場合、そのアドレスを含む接続情報を削除する機能(接続情報削除機能)を備えている。
In this wireless communication system, the
また、この無線通信システムにおいて、ルータ20およびエンドデバイス30は、コーディネータ10からの重複アドレスの削除要求を受けて、自己に割り当てられているアドレス(自アドレス)が重複アドレスであった場合、そのアドレスを削除する機能(重複アドレス削除機能)と、重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する機能(アドレス再取得機能)を有している。また、ルータ20は、上述した重複アドレス削除機能、アドレス再取得機能に加えて、コーディネータ10からの重複アドレスの削除要求を受けて、下位のデバイスとの親子関係を定めた接続情報テーブルT1に重複アドレスが含まれていた場合、そのアドレスを含む接続情報を削除する機能(接続情報削除機能)を有している。
Also, in this wireless communication system, when the
図2にコーディネータ10の概略的なブロック図を示す。コーディネータ10は、処理部10Aと、RAM10Bと、EEPROM10Cと、RF回路(無線送受信回路)10Dとを備えている。処理部10Aは、上述した重複検出用アドレス保存機能、重複アドレス検出機能、重複アドレス削除要求機能、接続情報削除機能の他、基本的な機能として、ネットワーク宣言機能、親ノード機能、通信機能(ノード間通信機能、通信中継機能)などを備えている。これらの機能は、処理部10Aが実行するプログラムに従う処理動作として得られる。なお、EEPROM10Cには、コーディネータ10の識別番号、ネットワーク全体に対して付番可能なアドレスブロック、コーディネータ10に対して割り当てられるアドレス、接続情報テーブルT0、重複検出用アドレステーブルTAなどが格納される。
FIG. 2 shows a schematic block diagram of the
図3にルータ20の概略的なブロック図を示す。ルータ20は、処理部20Aと、RAM20Bと、EEPROM20Cと、RF回路20Dとを備えている。処理部20Aは、上述した重複アドレス削除機能、アドレス再取得機能、接続情報削除機能の他、基本的な機能として、親ノード機能、通信機能(ノード間通信機能、通信中継機能)などを備えている。これらの機能は、処理部20Aが実行するプログラムに従う処理動作として得られる。なお、EEPROM20Cには、ルータ20の識別番号、上位のデバイスから送られてくる下位のデバイスに対して付番可能なアドレスブロック、接続情報テーブルT1などが格納される。RAM20Bには、ルータ20に対して割り当てられるアドレスなどが格納される。
FIG. 3 shows a schematic block diagram of the
図4にエンドデバイス30の概略的なブロック図を示す。エンドデバイス30は、処理部30Aと、RAM30Bと、EEPROM30Cと、RF回路30Dとを備えている。処理部30Aは、上述した重複アドレス削除機能、アドレス再取得機能の他、基本的な機能として、子ノード機能、通信機能(ノード間通信機能)などを備えている。これらの機能は、処理部30Aが実行するプログラムに従う処理動作として得られる。なお、EEPROM30Cには、エンドデバイス30の識別番号などが格納される。RAM30Bには、エンドデバイス30に対して割り当てられるアドレスなどが格納される。
FIG. 4 shows a schematic block diagram of the
〔アドレスの重複〕
この無線通信システムでは、ルータ20が下位のデバイスにアドレスを割り当てた後に、何らかのアクシデントによりルータ20内の接続情報テーブルT1が失われることがある。ここで、接続情報テーブルT1が失われたルータ20に新たなデバイスが親子接続を求めた場合、既に割り当てられているアドレスをその親子接続を求めたデバイスに重複して割り当ててしまう可能性がある。
[Duplicate address]
In this wireless communication system, after the
例えば、今、図5(a)に示すように、ルータ20−1の接続情報テーブルT1には、エンドデバイス30−1との親子関係が定められているが、エンドデバイス30−2との親子関係はまだ定められていないものとする。ここで、何らかの異常によりルータ20−1内の接続情報テーブルT1が消失し(図5(b))、ルータ20−1とエンドデバイス30−1との親子関係が失われたとする。このような状態で、例えばエンドデバイス30−2をルータ20−1に近づけて電源をオンとすると(図5(c))、エンドデバイス30−2からルータ20−1へアソシエイト接続要求が送られ、ルータ20−1との間で親子関係が結ばれる。 For example, as shown in FIG. 5A, the connection information table T1 of the router 20-1 has a parent-child relationship with the end device 30-1, but the parent-child relationship with the end device 30-2. The relationship has not yet been established. Here, it is assumed that the connection information table T1 in the router 20-1 is lost due to some abnormality (FIG. 5B), and the parent-child relationship between the router 20-1 and the end device 30-1 is lost. In this state, for example, when the end device 30-2 is brought close to the router 20-1 and the power is turned on (FIG. 5C), an associate connection request is sent from the end device 30-2 to the router 20-1. A parent-child relationship is established with the router 20-1.
この場合、ルータ20−1は、下位のデバイスへ割り当て可能なアドレスとしてアドレスAD2とAD3が残されているものと判断し、エンドデバイス30−2に対してアドレスAD2を割り当てるとともに、エンドデバイス30−2の識別番号#4とエンドデバイス30−2に割り当てたアドレスAD2とを対応づけて親子関係有りとして接続情報テーブルT1に書き込む。このため、エンドデバイス30−1のアドレスとエンドデバイス30−2のアドレスとが同じアドレスAD2となり、アドレスの重複が生じる。 In this case, the router 20-1 determines that the addresses AD2 and AD3 remain as addresses that can be assigned to the lower device, assigns the address AD2 to the end device 30-2, and also assigns the end device 30- 2 is associated with the address AD2 assigned to the end device 30-2 and written in the connection information table T1 as having a parent-child relationship. For this reason, the address of the end device 30-1 and the address of the end device 30-2 become the same address AD2, and address duplication occurs.
〔重複アドレスの検出〕
エンドデバイス30−2は、ルータ20−1からアドレスAD2が割り当てられると、定期的に、自己に割り当てられたアドレスAD2に自己の識別番号#4を付加し、ルータ20−1を経由して、コーディネータ10に送る(図5(d))。
[Duplicate address detection]
When the address AD2 is assigned from the router 20-1, the end device 30-2 periodically adds its own
コーディネータ10は、エンドデバイス30−2から送られてくるアドレス(通知アドレス+識別番号)を受信し(図6に示すステップ101のYES)、エンドデバイス30−2からの通知アドレスが重複検出用アドレステーブルTAに書き込まれているか否かをチェックする(ステップ102)。ここで、通知されたアドレスが重複検出用アドレステーブルTAに書き込まれていなかった場合には、通知されたアドレスをそのアドレスに付加されている識別番号と対応して重複検出用アドレステーブルTAに書き込む(ステップ103)。
The
通知されたアドレスが重複検出用アドレステーブルTAに書き込まれていた場合には、そのアドレスに対応する識別番号を重複検出用アドレステーブルTAから読み出して、通知されたアドレスに付加されている識別番号と比較する。ここで、識別番号が異なっていれば、通知されたアドレスを重複アドレスと判断し(ステップ104)、そのアドレスを対応する識別番号とともに重複検出用アドレステーブルTAから削除する(ステップ105)。 When the notified address is written in the duplicate detection address table TA, the identification number corresponding to the address is read from the duplicate detection address table TA, and the identification number added to the notified address and Compare. If the identification numbers are different, the notified address is determined as a duplicate address (step 104), and the address is deleted from the duplicate detection address table TA together with the corresponding identification number (step 105).
そして、重複アドレスと判断したアドレスが接続情報テーブルT0に含まれているか否かをチェックし(ステップ106)、接続情報テーブルT0に含まれていた場合には、その重複アドレスを含む接続情報を接続情報テーブルT0から削除したうえ(ステップ107)、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る(ステップ108)。 Then, it is checked whether or not the address determined to be a duplicate address is included in the connection information table T0 (step 106). If it is included in the connection information table T0, the connection information including the duplicate address is connected. After deleting from the information table T0 (step 107), a duplicate address deletion request is sent by broadcast to the lower device (step 108).
なお、アドレスが同じで、識別番号も同じであれば、何もせずに、ステップ101へ戻る。また、識別番号が同じで、アドレスが異なる場合には、そのアドレスを重複検出用アドレステーブルTAから削除し(ステップ109)、通知されたアドレスをその識別番号に対応する新しいアドレスとして重複検出用アドレステーブルTAに書き込む(ステップ103)。 If the addresses are the same and the identification numbers are the same, the process returns to step 101 without doing anything. If the identification numbers are the same and the addresses are different, the addresses are deleted from the duplicate detection address table TA (step 109), and the notified address is used as a new address corresponding to the identification number. Write to table TA (step 103).
図5(d)に示した例では、コーディネータ10は、エンドデバイス30−2からのアドレスAD2を受信する(ステップ101のYES)。この場合、通知されたアドレスAD2は重複検出用アドレステーブルTAに書き込まれているので、そのアドレスに対応する識別番号#3を重複検出用アドレステーブルTAから読み出して、通知アドレスAD2に付加されている識別番号#4と比較する。
In the example shown in FIG. 5D, the
この比較の結果、識別番号が異なるので、コーディネータ10は、通知されたアドレスAD2を重複アドレスと判断し(ステップ104)、そのアドレスAD2を対応する識別番号とともに重複検出用アドレステーブルTAから削除する(ステップ105:図7(a))。
As a result of this comparison, since the identification numbers are different, the
そして、通知されたアドレスAD2が接続情報テーブルT0に含まれていないことを確認のうえ(ステップ106のNO)、アドレスAD2を要求アドレスとして、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る(ステップ108、図7(a))。
Then, after confirming that the notified address AD2 is not included in the connection information table T0 (NO in step 106), the address AD2 is used as a request address, and a duplicate address deletion request is broadcasted to a lower-level device (
なお、この例では、重複アドレスと判断されたアドレスAD2に対応づけられている識別番号#3も重複検出用アドレステーブルTAから削除するようにしたが、識別番号は削除せずに残しておくようにしてもよい。
In this example, the
〔アドレスの重複解消〕
ルータ20は、コーディネータ10からの重複アドレスの削除要求を受けて(図8:ステップ201のYES)、要求アドレスが自アドレスであるか否かをチェックする(ステップ202)。要求アドレスが自アドレスであれば(ステップ202のYES)、自アドレスを削除する(ステップ203)。要求アドレスが自アドレスでなければ(ステップ202のNO)、その要求アドレスが接続情報テーブルT1に含まれているか否かをチェックする(ステップ206)。
[Resolve address duplication]
In response to the duplicate address deletion request from the coordinator 10 (FIG. 8: YES in step 201), the
この場合、要求アドレスはアドレスAD2であり、自アドレスではないので、ステップ202のNOに応じてステップ206へ進み、要求アドレスAD2が接続情報テーブルT1に含まれているか否かをチェックする。そして、要求アドレスAD2が接続情報テーブルT1に含まれていることを確認し(ステップ206のYES)、要求アドレスAD2が含まれている接続情報を接続情報テーブルT1から削除する(ステップ207、図7(b))。
In this case, since the request address is the address AD2, not the own address, the process proceeds to step 206 in response to NO in
なお、ルータ20−1は、要求アドレスが自アドレスであった場合(ステップ202のYES)、自身の電源をオフとすることによって、自アドレスを消去する(ステップ203)。そして、リスタートとし、上位の任意のデバイス(この例では、コーディネータ10)にアソシエイト接続要求(再接続要求)を送り、そのデバイスからアドレスを取得する(ステップ204,205)。
When the request address is the own address (YES in Step 202), the router 20-1 deletes the own address by turning off its own power (Step 203). Then, it is restarted, an associate connection request (reconnection request) is sent to an arbitrary upper device (in this example, the coordinator 10), and an address is acquired from the device (
エンドデバイス30−1は、コーディネータ10からの重複アドレスの削除要求を受けて(図9:ステップ301のYES)、要求アドレスが自アドレスであるか否かをチェックする(ステップ302)。要求アドレスが自アドレスであれば(ステップ302のYES)、自アドレスを削除する(ステップ303)。 Upon receiving the duplicate address deletion request from the coordinator 10 (FIG. 9: YES in step 301), the end device 30-1 checks whether the requested address is its own address (step 302). If the request address is the self address (YES in step 302), the self address is deleted (step 303).
この場合、要求アドレスはアドレスAD2であり、自アドレスなので、ステップ302のYESに応じてステップ303へ進み、自身の電源をオフとすることによって、自アドレスを消去する(図7(b))。そして、この電源のオフ後、所定時間経過した後、自身の電源をオン(リスタート)とし、上位の任意のデバイス(この例では、ルータ20−1)にアソシエイト接続要求(再接続要求)を送り、そのデバイスからアドレスを取得する(ステップ304,305)。
In this case, since the request address is the address AD2 and is the own address, the process proceeds to step 303 in response to YES in
この場合、図7(c)に示すように、エンドデバイス30−1からルータ20−1にアソシエイト接続要求が送られ(矢印(1))、ルータ20−1の接続情報テーブルT1にアドレスAD2と識別番号#3との対応が親子関係ありとして書き込まれ(矢印(2))、エンドデバイス30−1にアドレスAD2が割り当てられる(矢印(3))。
In this case, as shown in FIG. 7C, an associate connection request is sent from the end device 30-1 to the router 20-1 (arrow (1)), and the address AD2 is stored in the connection information table T1 of the router 20-1. The correspondence with the
エンドデバイス30−2は、コーディネータ10からの重複アドレスの削除要求を受けて(図9:ステップ301のYES)、要求アドレスが自アドレスであるか否かをチェックする(ステップ302)。要求アドレスが自アドレスであれば(ステップ302のYES)、自アドレスを削除する(ステップ303)。 Upon receiving the duplicate address deletion request from the coordinator 10 (FIG. 9: YES in step 301), the end device 30-2 checks whether the request address is its own address (step 302). If the request address is the self address (YES in step 302), the self address is deleted (step 303).
この場合、要求アドレスはアドレスAD2であり、自アドレスなので、ステップ302のYESに応じてステップ303へ進み、自身の電源をオフとすることによって、自アドレスを消去する(図7(b))。そして、この電源のオフ後、所定時間経過した後、自身の電源をオン(リスタート)とし、上位の任意のデバイス(この例では、ルータ20−1)にアソシエイト接続要求(再接続要求)を送り、そのデバイスからアドレスを取得する(ステップ304,305)。
In this case, since the request address is the address AD2 and is the own address, the process proceeds to step 303 in response to YES in
この場合、図7(c)に示すように、エンドデバイス30−3からルータ20−1にアソシエイト接続要求が送られ(矢印(4))、ルータ20−1の接続情報テーブルT1にアドレスAD3と識別番号#4との対応が親子関係ありとして書き込まれ(矢印(5))、エンドデバイス30−2にアドレスAD3が割り当てられる(矢印(6))。
In this case, as shown in FIG. 7C, an associate connection request is sent from the end device 30-3 to the router 20-1 (arrow (4)), and the address AD3 is stored in the connection information table T1 of the router 20-1. The correspondence with the
なお、上述においては、エンドデバイス30−1,30−2間にアドレスの重複が生じた場合について説明したが、ルータ20−1,20−2間にアドレスの重複が生じたような場合にも、エンドデバイス30−1,30−2間と同様にして、コーディネータ10でアドレスの重複が検出され、自動的に解消されるものとなる。
In the above description, the case where address duplication occurs between the end devices 30-1 and 30-2 has been described, but the case where address duplication occurs between the routers 20-1 and 20-2 is also described. In the same manner as between the end devices 30-1 and 30-2, duplication of addresses is detected by the
また、図1には単純な例を示したが、実際には最上位のコーディネータ10と最下位のエンドデバイス30との間にはルータ20が何層も位置し、さらにルータ20の数やエンドデバイス30の数も増大し、大規模な無線通信システムとされる。このようなシステムにおいても、図1に示した場合と同様にして、コーディネータ10でシステム内の全てのアドレスの重複を検出し、自動的に解消することができる。
Although a simple example is shown in FIG. 1, there are actually several layers of
このように、実施の形態1のシステムでは、コーディネータ10のみにアドレスの重複検出機能を設ければよく、ルータ20やエンドデバイス30にはアドレスの重複検出機能を設けなくてもよいので、安価な構成で、システム内の全てのアドレスの重複を検出することができるという効果が得られる。
As described above, in the system according to the first embodiment, only the
〔実施の形態2:コーディネータの重複アドレス検出機能をルータに分散させたシステム〕
実施の形態1では、コーディネータ10のみでシステム内の全ての重複を検出するようにしているため、コーディネータ10の処理負荷やシステム全体の通信負荷が大きくなる。そこで、実施の形態2では、コーディネータ10の重複アドレス検出機能をルータ20に分散させたシステムとし、コーディネータ10の処理負荷やシステム全体の通信負荷を低減させるものとする。
[Embodiment 2: System in which coordinator's duplicate address detection function is distributed to routers]
In the first embodiment, since only the
この実施の形態2では、図10に示すように、エンドデバイス30−1,30−2からルータ20−1に定期的に自己のアドレスを自己の識別番号を付加して送るようにして、またエンドデバイス30−3,30−4からルータ20−2に定期的に自己のアドレスを自己の識別番号を付加して送るようにして、ルータ20−1および20−2に1階層下のデバイスに対する重複検出用アドレステーブルTBを作成させる。また、ルータ20−1,20−2からコーディネータ10に定期的に自己のアドレスを自己の識別番号を付加して送るようにして、コーディネータ10に1階層下のデバイスに対する重複検出用アドレステーブルTAを作成させる。
In the second embodiment, as shown in FIG. 10, the end device 30-1, 30-2 periodically sends its own address to the router 20-1 with its own identification number added, The end device 30-3, 30-4 periodically sends its own address to the router 20-2 with its own identification number added to the routers 20-1 and 20-2 with respect to the device one layer below. A duplicate detection address table TB is created. Further, the router 20-1, 20-2 periodically sends its own address to the
〔アドレスの重複〕
例えば、今、図11(a)に示すように、ルータ20−1の接続情報テーブルT1には、エンドデバイス30−1との親子関係が定められているが、エンドデバイス30−2との親子関係はまだ定められていないものとする。また、ルータ20−1の重複検出用アドレステーブルTBには、エンドデバイス30−1のアドレスが識別番号と対応して書き込まれているものとする。
[Duplicate address]
For example, as shown in FIG. 11A, the connection information table T1 of the router 20-1 has a parent-child relationship with the end device 30-1, but the parent-child relationship with the end device 30-2. The relationship has not yet been established. In addition, it is assumed that the address of the end device 30-1 is written in correspondence with the identification number in the duplication detection address table TB of the router 20-1.
ここで、何らかの異常によりルータ20−1内の接続情報テーブルT1が消失し(図11(b))、ルータ20−1とエンドデバイス30−1との親子関係が失われたとする。このような状態で、例えばエンドデバイス30−2をルータ20−1に近づけて電源をオンとすると(図11(c))、エンドデバイス30−2からルータ20−1へアソシエイト接続要求が送られ、ルータ20−1との間で親子関係が結ばれる。 Here, it is assumed that the connection information table T1 in the router 20-1 is lost due to some abnormality (FIG. 11B), and the parent-child relationship between the router 20-1 and the end device 30-1 is lost. In this state, for example, when the end device 30-2 is brought close to the router 20-1 and the power is turned on (FIG. 11C), an associate connection request is sent from the end device 30-2 to the router 20-1. A parent-child relationship is established with the router 20-1.
この場合、ルータ20−1は、エンドデバイス30−2に対してアドレスAD2を割り当てるとともに、エンドデバイス30−2の識別番号#4とエンドデバイス30−2に割り当てたアドレスAD2とを対応づけて親子関係有りとして接続情報テーブルT1に書き込む。このため、エンドデバイス30−1のアドレスとエンドデバイス30−2のアドレスとが同じアドレスAD2となり、アドレスの重複が生じる。
In this case, the router 20-1 assigns the address AD2 to the end device 30-2, and associates the
〔重複アドレスの重複検出〕
エンドデバイス30−2は、ルータ20−1からアドレスAD2が割り当てられると、定期的に、自己に割り当てられたアドレスAD2に自己の識別番号#4を付加し、ルータ20−1に送る(図11(d))。
[Duplicate duplicate address detection]
When the address AD2 is assigned from the router 20-1, the end device 30-2 periodically adds its own
ルータ20−1は、エンドデバイス30−2から送られてくるアドレス(通知アドレス+識別番号)を受信し、エンドデバイス30−2からの通知アドレスが重複検出用アドレステーブルTBに書き込まれているか否かをチェックする。この場合、通知されたアドレスAD2は重複検出用アドレステーブルTBに書き込まれているので、そのアドレスに対応する識別番号#3を重複検出用アドレステーブルTBから読み出して、通知されたアドレスAD2に付加されている識別番号#4と比較する。
The router 20-1 receives the address (notification address + identification number) sent from the end device 30-2, and whether the notification address from the end device 30-2 is written in the duplication detection address table TB. To check. In this case, since the notified address AD2 is written in the duplicate detection address table TB, the
この比較の結果、識別番号が異なるので、ルータ20−1は、通知されたアドレスAD2を重複アドレスと判断し、そのアドレスAD2を対応する識別番号とともに重複検出用アドレステーブルTBから削除する(図12(a))。また、通知されたアドレスAD2が接続情報テーブルT1に含まれていることを確認し、そのアドレスAD2を接続情報テーブルT1から削除したうえ、アドレスAD2を要求アドレスとし、エンドデバイス30−1および30−2に重複アドレスの削除要求をブロードキャストで送る(図12(a))。 Since the identification numbers are different as a result of the comparison, the router 20-1 determines that the notified address AD2 is a duplicate address, and deletes the address AD2 from the duplicate detection address table TB together with the corresponding identification number (FIG. 12). (A)). Further, it is confirmed that the notified address AD2 is included in the connection information table T1, the address AD2 is deleted from the connection information table T1, the address AD2 is used as a request address, and the end devices 30-1 and 30- 2 sends a duplicate address deletion request by broadcast (FIG. 12A).
〔アドレスの重複解消〕
エンドデバイス30−1は、ルータ20−1からの重複アドレスの削除要求を受けて、要求アドレスが自アドレスであるか否かをチェックする。この場合、要求アドレスはアドレスAD2であり、自アドレスなので、自身の電源をオフとし、自己アドレスを消去する(図12(b))。
[Resolve address duplication]
Upon receiving the duplicate address deletion request from the router 20-1, the end device 30-1 checks whether the requested address is its own address. In this case, the request address is the address AD2, and is the self address, so the power supply of the self is turned off and the self address is deleted (FIG. 12B).
そして、この電源のオフ後、所定時間経過した後、自身の電源をオン(リスタート)とし、ルータ20−1にアソシエイト接続要求(再接続要求)を送り、ルータ20−2からアドレスAD2を取得する(図12(c))。これにより、ルータ20−1の接続情報テーブルT1には、アドレスAD2がエンドデバイス30−1の識別番号#3と対応づけて、親子関係ありとして書き込まれる。
Then, after a predetermined time has elapsed after the power supply is turned off, the power supply is turned on (restarted), an associate connection request (reconnection request) is sent to the router 20-1, and the address AD2 is obtained from the router 20-2. (FIG. 12C). As a result, the address AD2 is written in the connection information table T1 of the router 20-1 as having a parent-child relationship in association with the
エンドデバイス30−2は、ルータ20−1からの重複アドレスの削除要求を受けて、要求アドレスが自アドレスであるか否かをチェックする。この場合、要求アドレスはアドレスAD2であり、自アドレスなので、自身の電源をオフとし、自己アドレスを消去する(図12(b))。 Upon receiving the duplicate address deletion request from the router 20-1, the end device 30-2 checks whether or not the request address is its own address. In this case, the request address is the address AD2, and is the self address, so the power supply of the self is turned off and the self address is erased (FIG. 12B).
そして、この電源のオフ後、所定時間経過した後、自身の電源をオン(リスタート)とし、ルータ20−1にアソシエイト接続要求(再接続要求)を送り、ルータ20−2からアドレスAD3を取得する(図12(c))。これにより、ルータ20−1の接続情報テーブルT1には、アドレスAD3がエンドデバイス30−2の識別番号#4と対応づけて、親子関係ありとして書き込まれる。
Then, after a predetermined time has elapsed after the power supply is turned off, the power supply is turned on (restarted), an associate connection request (reconnection request) is sent to the router 20-1, and the address AD3 is obtained from the router 20-2. (FIG. 12C). As a result, the address AD3 is written in the connection information table T1 of the router 20-1 in association with the
エンドデバイス30−1は、ルータ20−1からアドレスAD2が割り当てられると、定期的に、自己に割り当てられたアドレスAD2に自己の識別番号#3を付加し、ルータ20−1へ送る。エンドデバイス30−2も同様に、ルータ20−1からアドレスAD3が割り当てられると、定期的に、自己に割り当てられたアドレスAD3に自己の識別番号#4を付加し、ルータ20−1へ送る。これにより、ルータ20−1には、エンドデバイス30−1および30−2からの通知アドレスを識別番号と対応して書き込んだ重複アドレス検出用テーブルTBが作成される(図12(d))。
When the address AD2 is assigned from the router 20-1, the end device 30-1 periodically adds its own
なお、上述においては、エンドデバイス30−1,30−2間にアドレスの重複が生じた場合について説明したが、ルータ20−1,20−2間にアドレスの重複が生じた場合には、エンドデバイス30−1,30−2間と同様にして、コーディネータ10でアドレスの重複が検出され、自動的に解消されるものとなる。
In the above description, the case where address duplication occurs between the end devices 30-1 and 30-2 has been described. However, when address duplication occurs between the routers 20-1 and 20-2, the end In the same manner as between the devices 30-1 and 30-2, duplication of addresses is detected by the
また、図10には単純な例を示したが、実際には最上位のコーディネータ10と最下位のエンドデバイス30との間にはルータ20が何層も位置し、さらにルータ20の数やエンドデバイス30の数も増大し、大規模な無線通信システムとされる。このようなシステムにおいても、図10に示した場合と同様にして、コーディネータ10やルータ20でシステム内の全てのアドレスの重複を検出し、自動的に解消することができる。
Although a simple example is shown in FIG. 10, there are actually several layers of
このように、実施の形態2のシステムでは、コーディネータ10およびルータ20のみにアドレスの重複検出機能を設ければよく、エンドデバイス30にはアドレスの重複検出機能を設けなくてもよいので、安価な構成で、システム内の全てのアドレスの重複を検出することができるという効果が得られる。
Thus, in the system of the second embodiment, only the
10…コーディネータ、10A…処理部、10B…ROM、10C…EEPROM、10D…RF回路、20(20−1,20−2)…ルータ、20A…処理部、20B…ROM、20C…EEPROM、20D…RF回路、30(30−1〜30−4)…エンドデバイス、30A…処理部、30B…ROM、30C…EEPROM、30D…RF回路、T0,T1…接続情報テーブル、TA,TB…重複アドレス検出用テーブル。
DESCRIPTION OF
Claims (8)
前記第2のデバイスは、
自己に割り当てられたアドレスに自己の識別情報を付加して前記第1のデバイスへ定期的に送信する手段を備え、
前記第1のデバイスは、
前記第2のデバイスより送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、
前記第2のデバイスより送信されてきたアドレスが既に前記メモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、前記送信されてきたアドレスを重複アドレスとして検出する手段と
を備えることを特徴とする無線通信システム。 In a tree-structured wireless communication system comprising at least a first device located at the highest level and a second device located at the lowest level and storing a self-assigned address in its own memory,
The second device is:
Means for periodically transmitting to the first device by adding its own identification information to an address assigned to itself;
The first device is:
Means for storing the address transmitted from the second device in the memory in association with the identification information added to the address;
When the address transmitted from the second device is already stored in the memory, the identification information stored corresponding to the address is compared with the identification information added to the transmitted address. And a means for detecting the transmitted address as a duplicate address when they are different from each other.
前記第1のデバイスは、さらに、
前記重複アドレスが検出された場合、その重複アドレスを前記メモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を備え、
前記第2のデバイスは、さらに、
前記第1のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、
前記重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段と
を備えることを特徴とする無線通信システム。 The wireless communication system according to claim 1, wherein
The first device further includes:
When the duplicate address is detected, the duplicate address is deleted from the memory, and a means for sending a duplicate address deletion request to a lower device by broadcasting is provided.
The second device further includes:
In response to the duplicate address deletion request from the first device, if the address assigned to itself is a duplicate address, means for deleting the address from its own memory;
A wireless communication system comprising: means for making a reconnection request to an arbitrary upper device after acquiring the duplicate address, and acquiring an address from the device.
前記第2のデバイスおよび第3のデバイスは、
自己に割り当てられたアドレスに自己の識別情報を付加して前記第1のデバイスへ定期的に送信する手段を備え、
前記第1のデバイスは、
前記第2のデバイスおよび第3のデバイスより送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけてメモリに保存する手段と、
前記第2のデバイスおよび第3のデバイスより送信されてきたアドレスが既に前記メモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、前記送信されてきたアドレスを重複アドレスとして検出する手段と
を備えることを特徴とする無線通信システム。 A first device located at the top, a second device located at the bottom and storing the address assigned to it in its own memory, and located between the first device and the second device A tree-structured wireless communication system comprising at least a third device for storing an address assigned to the memory in its own memory;
The second device and the third device are:
Means for periodically transmitting to the first device by adding its own identification information to an address assigned to itself;
The first device is:
Means for storing the addresses transmitted from the second device and the third device in a memory in association with the identification information added to the addresses;
When the addresses transmitted from the second device and the third device are already stored in the memory, the identification information stored corresponding to the addresses and the transmitted address are added. A wireless communication system comprising: means for comparing the identification information and, if they are different from each other, detecting the transmitted address as a duplicate address.
前記第1のデバイスは、さらに、
前記重複アドレスが検出された場合、その重複アドレスを前記メモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を備え、
前記第2および第3のデバイスは、さらに、
前記第1のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、
前記重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段と
を備えることを特徴とする無線通信システム。 The wireless communication system according to claim 3,
The first device further includes:
When the duplicate address is detected, the duplicate address is deleted from the memory, and a means for sending a duplicate address deletion request to a lower device by broadcasting is provided.
The second and third devices further include:
In response to the duplicate address deletion request from the first device, if the address assigned to itself is a duplicate address, means for deleting the address from its own memory;
A wireless communication system comprising: means for making a reconnection request to an arbitrary upper device after acquiring the duplicate address, and acquiring an address from the device.
前記第2のデバイスは、
自己に割り当てられたアドレスに自己の識別情報を付加して上位のデバイスへ定期的に送信する手段を備え、
前記第3のデバイスは、
自己に割り当てられたアドレスに自己の識別情報を付加して上位のデバイスへ定期的に送信する手段と、
1階層下のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけて第1のメモリに保存する手段と、
1階層下のデバイスより定期的に送信されてきたアドレスが既に前記第1のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、前記送信されてきたアドレスを重複アドレスとして検出する手段とを備え、
前記第1のデバイスは、
1階層下のデバイスより定期的に送信されてくるアドレスをそのアドレスに付加されている識別情報と対応づけて第2のメモリに保存する手段と、
1階層下のデバイスより定期的に送信されてきたアドレスが既に前記第2のメモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、前記送信されてきたアドレスを重複アドレスとして検出する手段と
を備えることを特徴とする無線通信システム。 A first device located at the top, a second device located at the bottom and storing the address assigned to it in its own memory, and located between the first device and the second device A tree-structured wireless communication system comprising at least a third device for storing an address assigned to the memory in its own memory;
The second device is:
A means for periodically transmitting to an upper device by adding its own identification information to an address assigned to itself,
The third device is:
Means for periodically transmitting to the higher-level device by adding its own identification information to the address assigned to itself;
Means for associating an address periodically transmitted from a device under one layer with the identification information added to the address in a first memory;
When the address periodically transmitted from the device one layer below is already stored in the first memory, the identification information stored corresponding to the address is added to the transmitted address. And a means for detecting the transmitted address as a duplicate address when both are different from each other,
The first device is:
Means for associating an address periodically transmitted from a device under one layer with the identification information added to the address in a second memory;
When the address periodically transmitted from the device one layer below is already stored in the second memory, the identification information stored corresponding to the address is added to the transmitted address. And a means for detecting the transmitted address as a duplicate address when they are different from each other.
前記第1のデバイスは、さらに、
前記重複アドレスが検出された場合、その重複アドレスを前記第2のメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段を備え、
前記第3のデバイスは、さらに、
前記重複アドレスが検出された場合、その重複アドレスを前記第1のメモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段と、
上位のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、
前記重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段とを備え、
前記第2のデバイスは、さらに、
上位のデバイスからの重複アドレスの削除要求を受けて、自己に割り当てられているアドレスが重複アドレスであった場合、そのアドレスを自己のメモリから削除する手段と、
前記重複アドレスを削除した後、上位の任意のデバイスに再接続要求を行い、そのデバイスからアドレスを取得する手段と
を備えることを特徴とする無線通信システム。 The wireless communication system according to claim 5, wherein
The first device further includes:
When the duplicate address is detected, the duplicate address is deleted from the second memory, and a duplicate address deletion request is broadcasted to a lower-level device.
The third device further includes:
When the duplicate address is detected, the duplicate address is deleted from the first memory, and a duplicate address deletion request is broadcasted to a lower device, and
In response to a duplicate address deletion request from a higher-level device, if the address assigned to itself is a duplicate address, means for deleting the address from its own memory;
A means for performing a reconnection request to an arbitrary upper device after deleting the duplicate address, and obtaining an address from the device; and
The second device further includes:
In response to a duplicate address deletion request from a higher-level device, if the address assigned to itself is a duplicate address, means for deleting the address from its own memory;
A wireless communication system comprising: means for making a reconnection request to an arbitrary upper device after acquiring the duplicate address, and acquiring an address from the device.
前記下位のデバイスより定期的に送信されてきたアドレスが既に前記メモリに保存されていた場合、そのアドレスと対応して保存されている識別情報と送信されてきたアドレスに付加されている識別情報とを比較し、両者が異なっていた場合、前記送信されてきたアドレスを重複アドレスとして検出する手段と
を備えることを特徴とするデバイス。 Means for storing the address periodically transmitted from the lower-level device in the memory in association with the identification information added to the address;
When an address periodically transmitted from the lower device has already been stored in the memory, identification information stored corresponding to the address and identification information added to the transmitted address; And a means for detecting the transmitted address as a duplicate address when the two are different from each other.
前記重複アドレスが検出された場合、その重複アドレスを前記メモリより削除するとともに、下位のデバイスに重複アドレスの削除要求をブロードキャストで送る手段
を備えることを特徴とするデバイス。 The device of claim 7, further comprising:
A device comprising: means for deleting a duplicate address from the memory when the duplicate address is detected, and sending a duplicate address deletion request to a lower device by broadcast.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006333246A JP2008148029A (en) | 2006-12-11 | 2006-12-11 | Radio communication system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006333246A JP2008148029A (en) | 2006-12-11 | 2006-12-11 | Radio communication system and device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008148029A true JP2008148029A (en) | 2008-06-26 |
Family
ID=39607708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006333246A Pending JP2008148029A (en) | 2006-12-11 | 2006-12-11 | Radio communication system and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008148029A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010028177A (en) * | 2008-07-15 | 2010-02-04 | Fuji Electric Systems Co Ltd | Wireless communication network system, unregistered wireless terminal therefor, registered wireless terminal, id management wireless terminal, and program |
JP2010028170A (en) * | 2008-07-15 | 2010-02-04 | Fuji Electric Systems Co Ltd | Wireless communication network system, id management wireless terminal therefor, and program |
JP2011077750A (en) * | 2009-09-30 | 2011-04-14 | Nec Access Technica Ltd | Method, system and program for managing terminal device |
JP2011259134A (en) * | 2010-06-08 | 2011-12-22 | Nec Access Technica Ltd | Management method of terminal equipment, terminal equipment, program and network system |
JP2012070132A (en) * | 2010-09-22 | 2012-04-05 | Yamatake Corp | Radio communication system |
JP2014123791A (en) * | 2012-12-20 | 2014-07-03 | Sharp Corp | Radio telemeter system |
-
2006
- 2006-12-11 JP JP2006333246A patent/JP2008148029A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010028177A (en) * | 2008-07-15 | 2010-02-04 | Fuji Electric Systems Co Ltd | Wireless communication network system, unregistered wireless terminal therefor, registered wireless terminal, id management wireless terminal, and program |
JP2010028170A (en) * | 2008-07-15 | 2010-02-04 | Fuji Electric Systems Co Ltd | Wireless communication network system, id management wireless terminal therefor, and program |
JP2011077750A (en) * | 2009-09-30 | 2011-04-14 | Nec Access Technica Ltd | Method, system and program for managing terminal device |
JP2011259134A (en) * | 2010-06-08 | 2011-12-22 | Nec Access Technica Ltd | Management method of terminal equipment, terminal equipment, program and network system |
JP2012070132A (en) * | 2010-09-22 | 2012-04-05 | Yamatake Corp | Radio communication system |
CN102413567A (en) * | 2010-09-22 | 2012-04-11 | 株式会社山武 | Radio communication system |
CN102413567B (en) * | 2010-09-22 | 2014-10-15 | 阿自倍尔株式会社 | Radio communication system |
JP2014123791A (en) * | 2012-12-20 | 2014-07-03 | Sharp Corp | Radio telemeter system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7899053B2 (en) | Optimal path routing method in wireless network | |
US20080008109A1 (en) | Method and apparatus for bridging wireless control networks | |
JP2008148029A (en) | Radio communication system and device | |
US9125044B2 (en) | Method for generating and registering identification in wireless sensor network | |
US8732338B2 (en) | Mesh network bridge routing | |
JPH09214516A (en) | Moving terminal and movement corresponded network | |
CN102340410B (en) | Cluster management system and method | |
KR101257618B1 (en) | Wireless communication system | |
JP7187849B2 (en) | Data collection system and data collection method | |
KR100425560B1 (en) | Lan path control system and method capable of easy changing active port of terminal | |
KR102109911B1 (en) | Method and its apparatus for controlling topology in beamforming system | |
JP2023512143A (en) | Communication method adopting Bluetooth network and node and communication system applying same | |
CN104812021A (en) | Method and device for accessing AC (access controller) by AP (access point) | |
JP2007329653A (en) | Node management system, node, and terminal device for management | |
JP4851311B2 (en) | Wireless communication system | |
JP2008148027A (en) | Radio communication system and device | |
JP5893211B2 (en) | Gateway device | |
JP5457124B2 (en) | Wireless communication system | |
JP4933238B2 (en) | Wireless communication system and device | |
JP5325183B2 (en) | Wireless communication system | |
US10512026B2 (en) | Technique for mediation in a residential network | |
CN107612719A (en) | The data back up method and device of Internet of Things access point | |
JP4913572B2 (en) | Wireless communication system and device | |
JP2007089010A (en) | Wireless device and network system | |
US20150080028A1 (en) | Notification method, notification system and terminal for scenery area based on Ad Hoc network |