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.

请问在协调器端怎么获取终端设备的deviceID

在终端设备的SimpleDescriptionFormat_t这个结构体里有AppDeviceId,请问这个怎么在协调器连网之后,并且EZ_Mode方式匹配成功之后,怎样获取这个APPDeviceId.

比如:

SimpleDescriptionFormat_t zclSampleLight_SimpleDesc =
{
SAMPLELIGHT_ENDPOINT, // int Endpoint;
ZCL_HA_PROFILE_ID, // uint16 AppProfId;
#ifdef ZCL_LEVEL_CTRL
ZCL_HA_DEVICEID_DIMMABLE_LIGHT, // uint16 AppDeviceId;
#else
ZCL_HA_DEVICEID_ON_OFF_LIGHT, // uint16 AppDeviceId;
#endif
SAMPLELIGHT_DEVICE_VERSION, // int AppDevVer:4;
SAMPLELIGHT_FLAGS, // int AppFlags:4;
ZCLSAMPLELIGHT_MAX_INCLUSTERS, // byte AppNumInClusters;
(cId_t *)zclSampleLight_InClusterList, // byte *pAppInClusterList;
ZCLSAMPLELIGHT_MAX_OUTCLUSTERS, // byte AppNumInClusters;
(cId_t *)zclSampleLight_OutClusterList // byte *pAppInClusterList;
};

  • EZ-Mode只是为了一些EP和Cluster ID的绑定。 

    如果需要获取zclSampleLight_SimpleDesc的信息,就要通过Simple Descriptor Req和Response。

    具体你可以参考下面分享的连接

    http://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/81385.aspx