微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > 如何获取子设备信息

如何获取子设备信息

时间:10-02 整理:3721RD 点击:

如何通过协调器(如通过协调器的串口打印出来相关信息),获得连接到这个协调器组建网络中的所有子设备的信息,如子设备的MAC地址,网络地址等。麻烦详细一点,谢谢

2818.Method for Discovering Network Topology.pdf

By using ZDP_IEEEAddrReq(), one can start the process by issuing this request to the PAN coordinator
since it always has short address 0x0000. The ReqType parameter should be set to 1, to obtain the list of
devices that have associated to the coordinator. The StartIndex parameter can be used if the list contains
more devices that can fit into one message.
By registering for the IEEE address request callback at the application level (see Z-stack Developer’s
Guide section on ZDO Message Requests), one can obtain the list of associated devices which will
include their short addresses, as well as the IEEE address of the coordinator. The NumAssocDev
parameter in the IEEE address response structure represents the number of devices that are associated
with the coordinator.
Once the first list from the coordinator is returned, one can repeat the above procedure targeted at each
short address in the list. By iterating this procedure over all parents and children, the application will be
able to “map out” the topology of the entire network

上一篇:ZLL 问题的求教
下一篇:点对点通信问题

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top