[Reprinted] ZIGBEE: Neighbour Table in Coordinator

Source: Internet
Author: User
The size of the neighbor table of the master node is 24, which means that the master node can have up to 24 subnodes (enddevice or router ). In the JZA_vStackEvent event on the master node, you can set the following parameter when the network is successfully started: JZS_vEnableEDAddrReuse (1800); the parameter in the square brackets is s, indicating that, if the child node in S does not communicate with the master node, the master node considers the child node dead, and then triggers the JZS_EVENT_INACTIVE_ED_DELETED event to delete the child node from its neighbor table. Therefore, if JZS_vEnableEDAddrReuse (1800) is set after the subnode is successfully added to the network, data communication with the primary node is required at most s in the underlying code. Otherwise, the master node deletes the network information of the node from the neighbor table. In this way, the data sent by the master node cannot be received by the child node. However, in this case, if the default sending destination address of the child node is its parent node, the parent node can still receive the data sent. In this way, the child node can find the parent node, but the parent node cannot find the child node. The only way is to erase the network information of the child node and then re-access the network. The following code describes how to read a neighbor table: PUBLIC void vReadNeighbourTable (uint8 yy_flag)
{
Int I;
VPrintf ("\ n -- network table -- \ n ");
// Neighbor table
For (I = 0; I <gsNIB. nwkNeighborTableSize; I ++)
{
If (gsNIB. nwkNeighborTable [I]. u16Addr = 0 xffff)
Continue;
VPrintf ("Neighbor % d: addr = % d, mac: % x-% x, Device Type = % d, LQI = % d, Channel = % d \ n ",
I,
GsNIB. nwkNeighborTable [I]. u16Addr,
GsNIB. nwkNeighborTable [I]. sExtAddr. u32H,
GsNIB. nwkNeighborTable [I]. sExtAddr. u32L,
GsNIB. nwkNeighborTable [I]. eDevicetype,
GsNIB. nwkNeighborTable [I]. u8LQI,
GsNIB. nwkNeighborTable [I]. u8Channel
);
If (policy_flag ){}
}
Conversion from http://lihf198628.blog.163.com/blog/static/113814520108693939683/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.