<?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>Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54459/problem-with-binding-in-zigbee-devices</link><description>Hello to all, 
 I&amp;#39;m working on a project based on sending data collected from a sensor network to a Zigbee Coordinator: the sensors are End Devices and must be tied to a Coordinator to make this save the data recorded by the sensors. The example I&amp;#39;m basing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Sep 2021 18:37:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54459/problem-with-binding-in-zigbee-devices" /><item><title>RE: Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/thread/328039?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 18:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f6942a-45d1-44a7-9921-fe372c18345a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/badrig"&gt;BadriG&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;It looks good to me. If you take a look at the Zigbee Cluster Library specification (can be found on the Zigbee Alliance/Connectivity Standards Alliance website), you will see the following information about the MeasuredValue attribute in the Temperature Measurement cluster (cluster ID 0x0402): &lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630694087163v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And for the Pressure Measurement cluster (cluster ID 0x0403):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630694165861v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I hope this answers your question, if you have any follow-ups please open a new Devzone ticket so we can have this in an own thread &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/thread/327301?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 23:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a455eadf-fb9f-445b-a168-977cb49eafaa</guid><dc:creator>BadriG</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using two dongles (one for the CLI the other one is for the multi sensor).&lt;/p&gt;
&lt;p&gt;The exemple works fine to me but the results it showing seems wired a little bit! i got some&amp;nbsp; values like 3200 1025... are they in C(Celsius)? If not how can I convert them and printing them in C !!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please have a look at the posted picture&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630364323990v1.png" alt=" " /&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/thread/221660?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2019 18:40:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a1f2156-cb5d-44f0-808c-4e6656563efb</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Why do you change the indianess of both the source and destination address? Also I think the dts_addr_mode should be ZB_APS_ADDR_MODE_64_ENDP_PRESENT.&lt;/p&gt;
&lt;p&gt;I have done some modifications to the code you sent me, you can try to do something like this instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void zb_void_t bind_device(zb_ieee_addr_t ieee_addr)
{
    zb_zdo_bind_req_param_t  *  p_req;
	uint8_t						tsn;
    zb_buf_t                 *  p_buf= ZB_BUF_FROM_REF(param);
    zb_ret_t                    zb_err_code;
	zb_ieee_addr_t            dst_ieee_addr;
    zb_osif_get_ieee_eui64(dst_ieee_addr);

    p_buf = ZB_GET_OUT_BUF();
    if (!p_buf)
    {
        NRF_LOG_INFO(&amp;quot;failed to execute command (buf alloc failed)&amp;quot;);
        return;
    }
    p_req = ZB_GET_BUF_PARAM(p_buf, zb_zdo_bind_req_param_t);
	    for (uint8_t i=0; i&amp;lt;8; i++)
    {
        p_req-&amp;gt;src_address[i] = ieee_addr[i]; //ieee address of the sensor
        p_req-&amp;gt;dst_address.addr_long[i] = dst_ieee_addr[i]; //ieee address of the coordinator
    }
	p_req-&amp;gt;dst_addr_mode = ZB_APS_ADDR_MODE_64_ENDP_PRESENT;   //ieee address mode of coordinator

    p_req-&amp;gt;src_endp = m_attr_table[item].remote_ep; //endpoint of sensor
	p_req-&amp;gt;dst_endp = HA_TEMP_SENSOR_ENDPOINT;   //endpoint of coordinator
		
    p_req-&amp;gt;cluster_id = ZB_ZCL_CLUSTER_ID_TEMP_MEASUREMENT; 
	
    p_req-&amp;gt;req_dst_addr = m_attr_table[item].remote_node.addr_short;    //short address of sensor	
 
    tsn= zb_zdo_bind_req(param, bind_device_cb);
	if (tsn == ZB_ZDO_INVALID_TSN)
		{
			NRF_LOG_INFO(&amp;quot;failed to send request, %d&amp;quot;, tsn);
			return;
		}
	return;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also if you are not sure the parameters you are sending are right you can try to print them using NRF_LOG_INFO before calling zb_zdo_bind_req to check everything is in order.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/thread/220937?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 18:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d24ae9-a35a-47b9-9987-9e6e3087477e</guid><dc:creator>Raffaela</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;At the moment I&amp;#39;m using the Nordic sniffer and I see that I actually don&amp;#39;t send the request.&lt;/p&gt;
&lt;p&gt;I changed the source and the destination:&amp;nbsp;&lt;span&gt;the data of the source are those of the sensor and the data of the destination are those of the coordinator.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m looking at the example of the CLI but it doesn&amp;#39;t work anyway.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It is as if the data I am sending is incorrect. &lt;br /&gt;Is there any trick that I have to use in order for the data I&amp;#39;m sending to be read correctly?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raffaela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with binding in zigbee devices</title><link>https://devzone.nordicsemi.com/thread/220900?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:774defdc-034a-4e70-9348-24bf04bada55</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Take a look at how binding is performed in our &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fzigbee_multi_sensor_example.html&amp;amp;cp=6_3_3_6_4_3"&gt;multisensor example&lt;/a&gt;. The &amp;#39;source&amp;#39; address and endpoint should be filled in with the sensor information, while the &amp;#39;destination&amp;#39; fields are for the coordinator.&lt;/p&gt;
&lt;p&gt;You also need to place the binding request parameters inside the buffer you pass to zb_zdo_bind_req() using &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.thread_zigbee.v3.0.0%2Fgroup__buf.html&amp;amp;anchor=gad355ea8c5a8ebee787586cfb86921dce"&gt;ZB_GET_BUF_PARAM&lt;/a&gt;. You can take a look at the function cmd_zb_bind() inside the CLI example for reference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also recommend you set up&amp;nbsp;the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fnrf802154_sniffer.html"&gt;nRF Sniffer for 802.15.4&lt;/a&gt;, so it will be easier for you to debug if the application is doing what you want or not. Double check that you are sending the binding request from the coordinator and check if you are receiving a binding response from the multisensor example so you know if you can expect to go into the bind_device_cb calback or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>