<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52040/read-the-signal-of-ack-in-zigbee</link><description>I&amp;#39;m developing a Zigbee coordinator that works as an On-Off Switch for the Zigbee Profile HA: this connects to the Device Mains Power Outlet, again with the HA profile. 
 Among them are linked through the Finding &amp;amp; Binding procedure: when I press the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Oct 2019 12:56:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52040/read-the-signal-of-ack-in-zigbee" /><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/216855?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 12:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa910d12-7b47-4368-884d-942fdcd7c9d6</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I was asking because I was reading wrong values in the attr_id. But I understand now why: the message that I&amp;#39;m trying to parsing is the default response that I enabled. So the payload is not like the struct &amp;quot;&lt;span&gt;zb_zcl_write_attr_res_t&amp;quot;, but like &amp;quot;zb_zcl_default_resp_payload_t&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now the parsing is correct.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you so much and best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Raffaela&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/216842?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 12:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd9f518-89ce-4aa3-a498-57c9e247efac</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user="Raffaela"]&lt;span lang="en"&gt;&lt;span&gt;My question is: in the struct &amp;quot;zb_zcl_write_attr_res_t&amp;quot;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;what is the &amp;quot;attr_id&amp;quot; field?&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;&amp;quot;attr_id&amp;quot; is the ID of the attribute.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/216530?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929c5e6c-851a-46ba-a839-94a486fb5689</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I&amp;#39;ll explain the context better: from the coordinator I send a command of this type: ZB_ZCL_WINDOW_COVERING_SEND_GO_TO_TILT_PERCENTAGE_REQ. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I enable Default Response. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;The device receives this message. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;At this point, the device sends back the response to the Coordinator that I can intercept declaring, on the Coordinator, the callback I posted before: zcl_device_cb.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;My question is: in the struct &amp;quot;zb_zcl_write_attr_res_t&amp;quot;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;what is the &amp;quot;attr_id&amp;quot; field?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Thank you and best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Raffaela&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/216525?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5489d1c7-579c-4b1f-b3da-d29171e35faa</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again Raffaela.&lt;/p&gt;
&lt;p&gt;Are you only looking for the MAC acknowledge?&lt;/p&gt;
&lt;p&gt;If you want to make sure that the value have changed, you should configure the reporting so that the device is notified about changes to the value. You&amp;nbsp; can use a simple read attribute command to read the value of the attribute.&lt;/p&gt;
&lt;p&gt;Could you explain some more about what you want to achieve?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/216335?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 10:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8d1c23e-776a-4b5f-8813-2ea2c2dad1bd</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Actually I understood what the problem was. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I was looking for the Default Response because I wanted to be sure that the request sent by the Zigbee Coordinator was actually&amp;nbsp;executed by the device. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I will briefly explain my way to obtain the parsing of the Default Response by the Zigbee Coordinator:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;After sending the write attribute request&amp;nbsp;&lt;/span&gt;&lt;span lang="en"&gt;through a specific command&lt;/span&gt;&lt;span lang="en"&gt;&amp;nbsp;by the Coordinator to the Router, the Router executes the command and sends the Default Response back to the Zigbee Coordinator. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;To read the Default Response, I have to register the callback to handle the ZCL commands &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;pre class="ui-code" data-mode="text"&gt;ZB_AF_SET_ENDPOINT_HANDLER(HA_WINDOW_CONTROLLER_ENDPOINT, zcl_device_cb&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;When it arrives, I do this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;pre class="ui-code" data-mode="text"&gt;zb_zcl_write_attr_res_t * p_attr_resp;
zb_uint8_t status_resp = 0;

static zb_void_t zcl_device_cb(zb_uint8_t param)
{
    zb_buf_t                       * p_buffer = ZB_BUF_FROM_REF(param);
    zb_zcl_parsed_hdr_t * p_cmd_info = ZB_GET_BUF_PARAM(p_buffer, zb_zcl_parsed_hdr_t);

    ZB_ZCL_GET_NEXT_WRITE_ATTR_RES(p_buffer, p_attr_resp);

    status_resp = p_attr_resp-&amp;gt;status;
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;My question is: In the struct &amp;quot;zb_zcl_write_attr_res_t&amp;quot;, &lt;span&gt;what is the &amp;quot;attr_id&amp;quot; field?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Is it correct my approach?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Thank you and best regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Raffaela&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read the signal of ack in Zigbee</title><link>https://devzone.nordicsemi.com/thread/213782?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 06:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07897ae7-7922-4e74-a240-8d0a64fb662e</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I think this case got lost in the queue, I&amp;#39;ve just got it assigned to me.&lt;/p&gt;
&lt;p&gt;I looks similar to the&lt;a href="https://devzone.nordicsemi.com/support-private/support/236715"&gt; case I already have with you&lt;/a&gt;, so lets keep the discussion there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>