This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何获取子设备信息

Other Parts Discussed in Thread: Z-STACK

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

  • 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