Zigbee Messaging Cluster

Hello,

I'm trying to send message to ZC from my ED using Messaging Cluster.

I've added Messaging cluster with no attributes and I can see it on the ZC side.

Next I'm trying so send message:

//---------------------------------------------//
static void test_msg(zb_bufid_t bufid, zb_uint16_t on_off)
//---------------------------------------------//
{
zb_addr_u ZC_addr = {.addr_short = 0xFFFF, .addr_long = 0};

test_disp.extended_message_control = 0x00;
test_disp.message = "blink";
test_disp.message_len = sizeof("blink");

ZB_ZCL_MESSAGING_SEND_DISPLAY_MSG((zb_uint8_t)bufid,
&ZC_short_addr,
ZB_APS_ADDR_MODE_16_ENDP_PRESENT,
(zb_uint8_t)0,
(zb_uint8_t)1,
&test_disp);
}

by pressing button in button_handler:

zb_buf_get_out_delayed_ext(test_msg,ZB_TRUE,32);

I tried using ZC address - 0x0000 or broadcast msg - 0xFFFF but in sniffer I didn't see my message.

Maybe I'm doing something wrong?

I want to send error code messages from the ED to the ZC to be able to debug the remote ED with an OTA firmware update. In other words I have remoted ED that I can't debug directly but I need to. Maybe there some other solution of communication for sending custom msgs between ED and ZC?

Related