Q: FAQ: User Descriptor access in Z-stack (ZigBee)

How to access the user descriptor in Z-stack.

In order to access the user descriptor information, the user needs to define the follow compile options:

  • ZDO_USERDESC_REQUEST ,
  • ZDO_USERDESCSET_REQUEST,
  • ZDO_USERDESC_RESPONSE,
  • ZDO_USERDESCSET_RESPONSE

You then set the user descriptor in ZDApp_InitUserDesc(). It has the format of
UserDescriptorFormat_t. You also have to set the node descriptor to
indicate that a user descriptor is available. This is for other zigbee
devices to know that the device has a user descriptor.

You can set a breakpoint here: ZDO_ParseUserDescRsp. This is where the
device that receives the user descriptor will process it.