Hi all
there is a question of the ZigBee Device Object End Device Bind Request !
as the Z-Stack developer‘ Guide files shows
it seems that ZED1 and ZED2 want to binding with each other . So they using the ZDP_EndDeviceBindReq() function to send the message。
and we can see that the Parameter detail of the ZDP_EndDeviceBindReq() function is like below :
but as the light sample of the zstack shows that is so strange as like below:
...
#else // NOT EZ-Mode
{
zAddrType_t dstAddr;
HalLedSet ( HAL_LED_4, HAL_LED_MODE_OFF );
// Initiate an End Device Bind Request, this bind request will
// only use a cluster list that is important to binding.
dstAddr.addrMode = afAddr16Bit;
dstAddr.addr.shortAddr = 0; // Coordinator makes the match
ZDP_EndDeviceBindReq( &dstAddr, NLME_GetShortAddr(),
SAMPLELIGHT_ENDPOINT,
ZCL_HA_PROFILE_ID,
ZCLSAMPLELIGHT_BINDINGLIST, bindingInClusters,
0, NULL, // No Outgoing clusters to bind
TRUE );
}
#endif // ZCL_EZMODE
in the case : ZED1 and ZED2 want to binding with each other
1. why does it set the coordinator address as the destination address ?(why not the ZED1 or ZED2 address?)
2. NLME_GetShortAddr() will return the device short address, why set this vaule as the LocalCoordinator ?
3. how to using this binding method?
BR!

