I modified the simple_gw example code, when the end device(application/light_sample/dimmable_light/bulb, I did not modify this example code) joined the ZigBee gateway network, the gateway will send a simple_desc_req to that end device, but it got an error category = 0, error status = 11 in zdo_simple_descriptor_response, I make sure the end device address 0x3499 is correct. Why it returned this error? please help to find out the reason, thanks a lot.
[ZDO1] send_simple_desc_req nwk_addr 0x3499, endpoint 1
high_level/host/adapters/ncp_host_hl_adapter_zdo.c:954 [ERROR] Unexpected type of error, error category = 0, error status = 11
I attached the log file in here.
simple_gw.zip
void ncp_host_handle_zdo_simple_descriptor_response(zb_ret_t status, zb_uint8_t ncp_tsn,
zb_uint16_t nwk_addr, zb_af_simple_desc_1_1_t *simple_desc, zb_uint16_t *app_cluster_list_ptr)
{
.............
if (status != RET_OK)
{
/* Pass only ZDO errors to the application layer */
if (ERROR_GET_CATEGORY(status) == ERROR_CATEGORY_ZDO)
{
resp->hdr.status = ERROR_GET_CODE(status);
}
else
{
TRACE_MSG(TRACE_ERROR, "Unexpected type of error, error category = %hd, error status = %hd ",
(FMT__H_H, ERROR_GET_CATEGORY(status), ERROR_GET_CODE(status)));
ZB_ASSERT(0);
}
}