<?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>Zigbee Find, Bind, Subscribe.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46596/zigbee-find-bind-subscribe</link><description>Hello. 
 I am trying to implement a Zigbee Network were sensors will be posting data periodically to a Coordinator. 
 I was looking into the examples provided with the SDK and realized that the Zigbee MultiSensor example is similiar to what i want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 12:22:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46596/zigbee-find-bind-subscribe" /><item><title>RE: Zigbee Find, Bind, Subscribe.</title><link>https://devzone.nordicsemi.com/thread/201240?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aee7900-6e38-47cc-b7ac-5660e662a84d</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/viper1983"&gt;viper1983&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;If you have any questions regarding Zigbee or BLE mesh protocol please open a new ticket and we will happily help you. To open a new ticket please go to &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;https://devzone.nordicsemi.com/support/add&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Find, Bind, Subscribe.</title><link>https://devzone.nordicsemi.com/thread/201123?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 07:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3633645-655f-47b6-93eb-f1c0a58ddc01</guid><dc:creator>viper1983</dc:creator><description>&lt;p&gt;&lt;br /&gt; case ZB_BDB_SIGNAL_DEVICE_REBOOT:&lt;br /&gt; if (status == RET_OK)&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; //ZB_NWK_DEVICE_TYPE_COORDINATOR&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Device started OK. Start network steering. Reason: %d&amp;quot;, sig);&lt;br /&gt; bsp_board_led_on(ZIGBEE_NETWORK_STATE_LED);&lt;br /&gt; UNUSED_RETURN_VALUE(bdb_start_top_level_commissioning(ZB_BDB_NETWORK_STEERING));&lt;/p&gt;
&lt;p&gt;zb_err_code = ZB_SCHEDULE_ALARM(bdb_restart_top_level_commissioning, 0, ZB_TIME_ONE_SECOND);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; if (m_device_ctx.sensor_params.short_addr == 0x0000) &lt;br /&gt; {&lt;br /&gt; NRF_LOG_INFO(&amp;quot;go to find sensor &amp;quot;);&lt;br /&gt; zb_err_code = ZB_SCHEDULE_ALARM(find_sensor, param, MATCH_DESC_REQ_START_DELAY);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; zb_err_code = ZB_SCHEDULE_ALARM(find_timeout, 0, MATCH_DESC_REQ_TIMEOUT);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; &lt;br /&gt; param=0;&lt;br /&gt; } //bind_sensor&lt;/p&gt;
&lt;p&gt;static zb_void_t find_sensor(zb_uint8_t param)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; zb_buf_t * p_buf = ZB_BUF_FROM_REF(param); // Resolve buffer number to buffer address&lt;br /&gt; zb_zdo_match_desc_param_t * p_req;&lt;/p&gt;
&lt;p&gt;/* Initialize pointers inside buffer and reserve space for zb_zdo_match_desc_param_t request */&lt;br /&gt; UNUSED_RETURN_VALUE(ZB_BUF_INITIAL_ALLOC(p_buf, sizeof(zb_zdo_match_desc_param_t) + (1) * sizeof(zb_uint16_t), p_req));&lt;/p&gt;
&lt;p&gt;p_req-&amp;gt;nwk_addr = MATCH_DESC_REQ_ROLE; // Send to devices specified by MATCH_DESC_REQ_ROLE&lt;br /&gt; p_req-&amp;gt;addr_of_interest = MATCH_DESC_REQ_ROLE; // Get responses from devices specified by MATCH_DESC_REQ_ROLE&lt;br /&gt; p_req-&amp;gt;profile_id = ZB_AF_HA_PROFILE_ID; // Look for Home Automation profile clusters&lt;br /&gt; // 要点&lt;br /&gt; /* We are searching for 2 clusters: On/Off and Level Control Server */&lt;br /&gt; p_req-&amp;gt;num_in_clusters = 1;&lt;br /&gt; p_req-&amp;gt;num_out_clusters = 0;&lt;br /&gt; /*lint -save -e415 // Suppress warning 415 &amp;quot;likely access of out-of-bounds pointer&amp;quot; */&lt;br /&gt; // p_req-&amp;gt;cluster_list[0] = ZB_ZCL_CLUSTER_ID_DOOR_LOCK;&lt;br /&gt; p_req-&amp;gt;cluster_list[1] = ZB_ZCL_CLUSTER_ID_PRESSURE_MEASUREMENT;&lt;br /&gt; /*lint -restore */&lt;br /&gt; &lt;br /&gt; NRF_LOG_INFO(&amp;quot; sensor short addr %04x&amp;quot;,m_device_ctx.sensor_params.short_addr);&lt;br /&gt; //NRF_LOG_INFO(&amp;quot; sensor nwk_addr %s&amp;quot;,p_req-&amp;gt;nwk_addr);&lt;/p&gt;
&lt;p&gt;// m_device_ctx.sensor_params.short_addr = 0x00; // Reset short address in order to parse only one response.&lt;br /&gt; UNUSED_RETURN_VALUE(zb_zdo_match_desc_req(param, find_sensor_cb));&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; if(m_device_ctx.sensor_params.short_addr != 0x0000)&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt; NRF_LOG_INFO(&amp;quot;bind .........&amp;quot;);&lt;br /&gt; &lt;br /&gt; zb_err_code = ZB_SCHEDULE_ALARM(bind_sensor, param, MATCH_DESC_REQ_START_DELAY);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; zb_err_code = ZB_SCHEDULE_ALARM(bint_sensor_timeout, 0, MATCH_DESC_REQ_TIMEOUT);&lt;br /&gt; ZB_ERROR_CHECK(zb_err_code);&lt;br /&gt; &lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s not easy to do in cli mode. There are many requests and responses. This chip manufacturer really feels bad&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Find, Bind, Subscribe.</title><link>https://devzone.nordicsemi.com/thread/201115?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 06:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c68597-5920-4117-943e-09f7394f7307</guid><dc:creator>viper1983</dc:creator><description>&lt;p&gt;no no 。。。&lt;span class="tgt highlight"&gt;Nobody does that. It&amp;#39;s a bad example. It doesn&amp;#39;t help.&lt;/span&gt;&lt;span class="tgt"&gt;I have been in contact with zigbee and ble mesh for a month, but there is no help. Many developers of NXP chips have completed the project, and I am still walking in the same place.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee Find, Bind, Subscribe.</title><link>https://devzone.nordicsemi.com/thread/184217?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 07:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742b0dd4-70c0-4739-9c7d-b1f210998cdb</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find the Zigbee functions that are called in the CLI example if you open the project. In components/zigbee/cli/zigbee_cli_cmd_zdo.c you can find the zdo functins, such as &amp;quot;zdo bind on&amp;quot;.&lt;/p&gt;
&lt;p&gt;On line 1816-1831 is a list of the different commands, and the last parameter in the NRF_CLI_CMD() call is the function that is called. So the &amp;quot;zdo bind on&amp;quot; calls m_sub_bind (this is not the last entry, but it is used to differentiate between bind on and bind off). Which again calls cmd_zb_bind on line 1811 in the same file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The zcl commands are listed in zigbee_cli_cmd_zcl.c. As you can see, the zcl_subscribe on calls m_sub_subscribe() -&amp;gt;&amp;nbsp;cmd_zb_subscribe(), which is found in components/zigbee/cli/zigbee_cli_cmd_attr_report.c.&lt;/p&gt;
&lt;p&gt;Reports are received by a function cli_agent_ep_handler_report , which gets called from cli_agent_ep_handler which is registered in main function of cli_agent_router example with ZB_AF_SET_ENDPOINT_HANDLER macro.&lt;/p&gt;
&lt;p&gt;I hope this can be of help. Let me know how it goes! &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>