[ZIGBEE] How to using cluster to send unicast/broadcast with custom message payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-05 12:44 AM
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)");
}
​
​
​
- Labels:
-
STM32WB series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-06 11:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-10 2:27 AM
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.
