Zigbee Broadcast communication
Hello,
I'm working on a project started from Zigbee_APS_coord and Zigbee_APS_router examples on NUCLEO-WB55.USBDongle with STM32Cube_FW_WB_V1.21.0.
The project is based on data exchange between the coordinator and several devices acting as routers (from 2 to 10) at the APS layer. The commonunication works fine in unicast mode, but I got error ZB_APS_STATUS_ILLEGAL_REQUEST = 0xa3 from ZbApsdeDataReqCallback if I try to send a broadcast message with the following code:
struct ZbApsdeDataReqT zb_aps_req_current;
struct ZbApsAddrT dst;
dst.endpoint = clusterId;
dst.mode = ZB_APSDE_ADDRMODE_SHORT;
dst.nwkAddr = 0xffff; /* Broadcast */
memset(&zb_aps_req_current, 0, sizeof(zb_aps_req_current));
zb_aps_req_current.dst = dst;
zb_aps_req_current.profileId = profileId;
zb_aps_req_current.clusterId = clusterId;
zb_aps_req_current.srcEndpt = srcEndpt;
zb_aps_req_current.asdu = payload;
zb_aps_req_current.asduLength = payloadLength;
zb_aps_req_current.asduHandle = zigbee_app_info.aps_info.asduHandle++;
zb_aps_req_current.txOptions |= ZB_APSDE_DATAREQ_TXOPTIONS_SECURITY;
zb_aps_req_current.discoverRoute = false;
status = ZbApsdeDataReqCallback(zigbee_app_info.zb, &zb_aps_req_current, callback, arg);The error message is too generic, and Zigbee specifications refer to the network layer for broadcast addressing, so does anyone have any hint on how to correct this behaviour?
