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.

zigbee网络里设备识别?

              请问下使用ZHA协议,进行组网后,在协调器这边可以知道连接的是router或者EndDevice吧。
           
              ①那能不能知道是哪种具体的设备(比如:调光器、锁等)吗?
              ②具体的代码在哪里可以知道的? 
  • ①你可以通过Node Descriptor Request,Simple Descriptor Request, Active Endpoint Request,API函数来实现。 

    #define ZDP_ActiveEPReq( dstAddr, NWKAddrOfInterest, SecurityEnable ) \
    ZDP_NWKAddrOfInterestReq( dstAddr, \
    NWKAddrOfInterest, Active_EP_req, SecurityEnable )

    afStatus_t ZDP_SimpleDescReq( zAddrType_t *dstAddr, uint16 nwkAddr,
    byte endPoint, byte SecurityEnable )

  • 你好 !VV:

                      ① 我看了下你说的几个API函数,能知道具体的节点信息,但是如果想知道节点的具体功能,应该怎么知道?(通过簇来知道?)

                      ②我在协调器的void zclSampleLight_Init( byte task_id )函数里调用ZDO_RegisterForZDOMsg( zclSampleLight_TaskID, Simple_Desc_rsp ),在线调试,并没有进入相关的处理函数?请问下这个接口应该在哪里调用?