METHOD OF MANAGING ADDRESS SPACES OF INCOMMUNICABLE NODES IN ZIGBEE NETWORK

Abstract
Provided is a method of managing addresses of incommunicable nodes in a ZigBee network, and more particularly, a method of managing address values of a plurality of nodes that form a ZigBee network by efficiently withdrawing address values from nodes which are incommunicable for reasons of abnormality. An address management process can be performed using two methods. According to a first method, a parent node withdraws address values of child nodes that do not transmit a hello message for a predetermined period of time. According to a second method, a parent node transmits a periodic or non-periodic request message to child nodes, and the child nodes, which receive the request message, immediately transmit a hello message to the parent node. Then, the parent node withdraws address values of child nodes that do not respond to the request message sent by the parent node more than a predetermined number of times. An address value assignment process and a process for nodes that have their address values withdrawn are also provided.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:



FIG. 1 illustrates a ZigBee network composed of a plurality of nodes according to an embodiment of the present invention;



FIG. 2 illustrates a transmission flow in an address assignment process in the ZigBee network according to an embodiment of the present invention;



FIG. 3 illustrates a transmission flow in an address management method in the ZigBee network using periodic transmission according to an embodiment of the present invention;



FIG. 4 is a flowchart illustrating an address management method in the ZigBee network using periodic transmission according to an embodiment of the present invention;



FIG. 5 illustrates a transmission flow in an address management method in the ZigBee network using non-periodic transmission according to an embodiment of the present invention;



FIG. 6 is a flowchart illustrating an address management method in the ZigBee network using non-periodic transmission according to an embodiment of the present invention;



FIG. 7 illustrates a transmission flow in an address management method for incommunicable nodes having addresses withdrawn in the ZigBee network according to an embodiment of the present invention; and



FIG. 8 is a flowchart illustrating an address management method for incommunicable nodes having addresses withdrawn in the ZigBee network according to an embodiment of the present invention.





DETAILED DESCRIPTION OF THE INVENTION

The present invention will now be described more fully with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. The invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth therein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art.



FIG. 1 illustrates a ZigBee network composed of a plurality of nodes according to an embodiment of the present invention.


In the ZigBee network, when a new child node arrives and transmits a join message to a parent node, the parent node assigns an address value to the new child node. Later if the child node with the assigned address value fails to transmit a leave message to the parent node due to the malfunction, battery exhaustion or sudden movement of the child node, the parent node cannot withdraw the assigned address value. In a state in which each parent node secures a finite number of address values assigned to child nodes, if this happens very frequently, address values that can be assigned are exhausted even though there are not many nodes that actually exist. Consequently, new nodes may no longer be able to join the ZigBee network.


In order to solve such a problem, the present invention suggests two methods. According to a first method, child nodes periodically transmit a hello message to a parent node, and the parent node withdraws address values of child nodes that do not transmit the hello message for a predetermined period of time. According to a second method, a parent node periodically or non-periodically transmits a request message to child nodes, and the child nodes, which receive the request message, immediately transmit a hello message to the parent node. Then, the parent node withdraws address values of child nodes that do not respond to the request message sent by the parent node more than a predetermined number of times.


To achieve the goal of the present invention, a method of managing an address space in a ZigBee network may be suggested. The method includes assigning address values to child nodes using a parent node in a ZigBee network composed of a plurality of nodes, periodically or non-periodically transmitting a hello message from the child nodes to the parent node, and detecting the child nodes based on the withdrawn address values and taking action accordingly.


Referring to FIG. 1, a node A is a ZigBee coordinator (ZC) which is responsible for forming, operating, and managing the ZigBee network and has an address value of zero. The other nodes are assigned address values by respective parent nodes and transmit data along with their parent or child node.


A method of efficiently managing an address space in a ZigBee network according to an embodiment of the present invention will now be described in detail.



FIG. 2 illustrates a transmission flow in an address assignment process in a ZigBee network according to an embodiment of the present invention. The address assignment process is as follows.


First of all, a child node, which desires to join the ZigBee network, transmits a join request message to an appropriate parent node. Then, the parent node, which receives the join request message, transmits to the child node a join response message containing an address value that is to be assigned to the child node and a sequence ID indicating where the child node comes in a sequence of child nodes. In this way, the child node that transmitted the join request message is assigned the address value and the sequence ID by the parent node.


Referring to FIG. 2, a node B transmits a join request message to a node A in operation S201. Then, node A transmits to node B an appropriate address value that is to be assigned to node B and a sequence ID indicating where node B comes in a sequence of nodes. Consequently, node B can have its address value and sequence ID. In this way, other nodes, which have not yet joined the ZigBee network, are assigned respective address values and sequence IDs by respective parent nodes.



FIG. 3 illustrates a transmission flow in an address management method in a ZigBee network using periodic transmission according to an embodiment of the present invention. The address management method using periodic transmission is as follows.


First of all, child nodes, which have joined the ZigBee network, periodically transmit a hello message to a parent node. Then, the parent node stores information regarding the hello message periodically received from the child nodes in an appropriate form. In addition, the parent node withdraws address values assigned to child nodes which have not transmitted the hello message for a predetermined period of time.


Referring to FIG. 3, nodes B, G and H, which successfully joined the ZigBee network using the address assignment method described above, periodically transmit a hello message to a node A, which is a parent node, in operation S301. Then, node A stores information regarding the time when a latest hello message was received. If node A has not received the hello message from a child node for a predetermined period of time, it withdraws an address value assigned to the child node so that the withdrawn address value can be assigned to a prospective child node which transmits a join request message.



FIG. 4 is a flowchart illustrating an address management method in a ZigBee network using periodic transmission according to an embodiment of the present invention.


Referring to FIG. 4, a parent node (a first node) receives periodically a hello message indicating communicability from a child node (a second node) in a ZigBee network (operation 401). Here, the parent node stores the time when the hello message is received (operation 402).


If the difference between the received time, which is stored in the parent node, and a current time exceeds a predetermined time (operation 403), the parent node transmits a message to the child node in order to identify whether the child node is communicable or else the parent node withdraws an address value assigned to the child node (operation 404). If the difference does not exceed the predetermined time, the parent node takes no action since it has received the periodic hello message from the child node, which indicates that the child node is communicable.



FIG. 5 illustrates a transmission flow in an address management method in a ZigBee network using non-periodic transmission according to an embodiment of the present invention. The address management method using non-periodic transmission is as follows.


First of all, a parent node transmits a hello request message to its child nodes to identify the states of the child nodes. Then, the child nodes receive the hello request message and transmit a hello message to the parent node. The parent node withdraws an address value assigned to a child node which does not respond more than a predetermined number of times to the hello request message sent by the parent node.


Referring to FIG. 5, nodes B, G and H, which successfully joined the ZigBee network using the address assignment method described above, transmit a non-periodic hello message to a node A which is a parent node. Node A transmits a hello request message to all of its child nodes in operation S501. In operation S502, if node H transmitted the hello message to node A in response to the hello request message, but nodes B and G did not respond more than a predetermined number of times to the hello request message sent by node A, node A withdraws address values assigned to nodes B and G so that the withdrawn address values can be assigned to prospective child nodes which transmit a join request message.



FIG. 6 is a flowchart illustrating an address management method in a ZigBee network using non-periodic transmission according to an embodiment of the present invention.


Referring to FIG. 6, a parent node (a first node) transmits a non-periodic message (a hello request message) in order to identify whether a child node (a second node) is communicable to the child node (operation 601). If the parent node does not receive a reply message from the child node (operation 602), it transmits the message again within a predetermined number of times or else the parent node withdraws an address value assigned to the child node (operation 603).



FIG. 7 illustrates a transmission flow in an address management method for incommunicable nodes having addresses withdrawn in a ZigBee network according to an embodiment of the present invention. A method of detecting and removing an incommunicable node with a withdrawn address is as follows.


When each child node transmits data to a parent node, it also transmits its address value and sequence ID. Then, the parent node identifies whether the sequence ID transmitted from each child node is a latest value (sequence ID). If the sequence ID transmitted from a child node is the latest value (sequence ID), the parent node accepts data transmitted from the child node. However, if the sequence ID transmitted from the child node is not the latest value (sequence ID), the parent node transmits a leave command message to the child node. In this way, if the parent node detects a child node which continues to transmit data using a withdrawn address value, it commands the child node to select and join a new parent node.


Referring to FIG. 7, node B whose address value was withdrawn in the example illustrated in FIG. 5 transmits data to node A in operation S701. If node A assigned the address value, which had been withdrawn from node B, to another node, since a sequence ID recorded in the data transmitted from node B is not a latest sequence ID, node A transmits a leave command message to node B or assigns a new address value and sequence ID to node B.



FIG. 8 is a flowchart illustrating an address management method for incommunicable nodes having addresses withdrawn in a ZigBee network according to an embodiment of the present invention.


Referring to FIG. 8, a parent node (a first node) receives from a child node (a second node) data containing an address value of the child node (operation 801). Then, the parent node identifies whether the received address value of the child node is a latest address value (operation 802).


If the received address value is the latest address value, the parent node accepts the data (operation 803). If the received address value is not the latest address value stored in the parent node, the parent node commands the child node to leave or assigns a new address value to the child node (operation 804).


As described above, the present invention withdraws an address value of a node which malfunctions, has a battery that is exhausted, or has moved to another network without transmitting a leave message in order to allow another node to join a network. In addition, since the address value is withdrawn and reused, problems due to double assignment of the same address value or overlapping address values can be prevented.


The present invention can also be implemented as computer-readable code on a computer-readable recording medium. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet).


The computer-readable recording medium can also be distributed over network-coupled computer systems so that the computer-readable code is stored and executed in a distributed fashion.


While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

Claims
  • 1. A method of managing address spaces of incommunicable nodes, the method comprising: receiving a hello message indicating communicability from a second node, which is a child node of a first node, using the first node in a ZigBee network;storing a time when the hello message was received, using the first node; andtransmitting a message for identifying whether the second node is communicable or withdrawing an address value assigned to the second node using the first node if the difference between the received time of the hello message, which is stored in the first node, and a current time exceeds a predetermined time.
  • 2. A method of managing address spaces of incommunicable nodes, the method comprising: transmitting a message for identifying whether a second node, which is a child node of a first node, is communicable to the second node, using the first node in a ZigBee network; andre-transmitting the message to the second node within a predetermined number of times or withdrawing an address value assigned to the second node using the first node if the first node does not receive a reply message from the second node.
  • 3. A method of managing address spaces of incommunicable nodes, the method comprising: receiving data containing an address value of a second node, which is a child node of a first node, from the second node, using the first node in a ZigBee network;identifying whether the address value received by the first node is a latest address value of the second node stored in the first node; andaccepting the data if the received address value is the latest address value stored in the first node, and commanding the second node to leave or else assigning a new address value to the second node if the received address value is not the latest address value stored in the first node.
  • 4. The method of claim 3, wherein the received address value of the second node comprises a sequence ID indicating where the second node comes in a series of child nodes of the first node, it is identified whether the received address value and sequence ID are a latest address value and sequence ID stored in the first node, the received data is accepted if the received address value and sequence ID are the latest address value and sequence ID stored in the first node, and the first node commands the second node to leave or else assigns a new address value and sequence ID to the second node if the received address value and sequence ID are not the latest address value and sequence ID stored in the first node.
Priority Claims (1)
Number Date Country Kind
10-2006-0096583 Sep 2006 KR national