Skip to main content
Jlai.9
Associate
Mar 5, 2021 8:44 AM UTC
Question

[ZIGBEE] How to using cluster to send unicast/broadcast with custom message payload

Hi Sir:

​

I try to builld a project with unicast/broadcast function with custom message payload on NVM example.

​

But, I found that ZbZclMsgClient/ZbZclMsgSever can't use the following code to broadcast message.

​

Is there any issue to broadcast by ZbZclMsgClient/ZbZclMsgSever?

​

​Best Regards,

Jack Lai

 dst.mode = ZB_APSDE_ADDRMODE_GROUP;
 dst.endpoint = SW1_ENDPOINT;
 dst.nwkAddr = SW1_GROUP_ADDR; /* Coordinator */
 
 APP_DBG("SW2 PUSHED (SENDING GOOD BYE TO CLIENT)");
 if (ZbZclMsgServerDisplayMessageReq(zigbee_app_info.messaging_server_1, &dst, &my_second_message, NULL, NULL) != ZCL_STATUS_SUCCESS) {
 APP_DBG("Error, ZbZclMsgServerDisplayMessageReq failed (SW1_ENDPOINT)");
 }

​

​

​

This topic has been closed for replies.

2 replies

lukasz2
Associate III
Jul 7, 2021 6:36 AM UTC

Hi Jack,

did you find the way to send broadcast or group messages?

I found that in function APP_ZIGBEE_NwkForm need to be called this code:

static void APP_ZIGBEE_ConfigGroupAddr(void)
{
 struct ZbApsmeAddGroupReqT req;
 struct ZbApsmeAddGroupConfT conf;
 
 memset(&req, 0, sizeof(req));
 req.endpt = SW1_ENDPOINT;
 req.groupAddr = SW1_GROUP_ADDR;
 ZbApsmeAddGroupReq(zigbee_app_info.zb, &req, &conf);
 
} /* APP_ZIGBEE_ConfigGroupAddr */

but sending still does not work. I can see on sniffer that no message has sended.

TMhis.1
Associate
Sep 10, 2022 9:27 AM UTC

Hi,

i am having the same problem.

Did you manage to solve the problem with sending a broadcast or group messages?

I would be grateful for an answer!

Thanks in Advance.