<?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>ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60876/zb-zcl-tunneling---no-data-send</link><description>Hi, this is my first post here, so please forgive if category/description is not complete. 
 
 I&amp;#39;m trying to do a quick proof of concept using ZB ZCL Tunneling. ZED is a client side that opens a tunnel and sends some data and ZC is a server side receiving</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2020 09:09:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60876/zb-zcl-tunneling---no-data-send" /><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/251199?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 09:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17f952c0-5a1a-4220-ac42-78547a249f98</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please try the following:&lt;/p&gt;
&lt;p&gt;Can you do these changes in sdk_config.h:&lt;/p&gt;
&lt;p&gt;#define&amp;nbsp;ZIGBEE_TRACE_LEVEL&amp;nbsp;4&lt;br /&gt;#define&amp;nbsp;ZIGBEE_TRACE_MASK&amp;nbsp; 0x0148&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And check the log output. It will look quite cryptic (because it is). Can you copy the logs and attach them here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248346?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 07:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eab574c-5335-49c9-a726-65cb5b92d6e1</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;This is a temporary workaround, but good enough for proof of concept. I still want to use tunneling and I&amp;#39;d prefer using &amp;quot;official&amp;quot; API functions rather then manually constructed frames.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248337?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 06:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951e9fec-8058-493d-a522-bbf209ae0da0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does this mean that you will not use the tunnelling, or is this a temporary workaround_&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248288?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 16:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c0386b-7e4a-4641-8604-a83254407740</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;PS. I&amp;#39;ve implemented sending transfer data command manually (without using zb_zcl_tunneling_client_send_transfer_data &amp;amp; zb_zcl_tunneling_server_send_transfer_data functions) and I&amp;#39;m able to achieve expected flow in the network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching logs showing requesting tunnel, sending data to server, and back to client, then closing tunnel).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/log_5F00_ok.pcapng"&gt;devzone.nordicsemi.com/.../log_5F00_ok.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248238?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 14:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c90db2-b624-40f6-a437-bdf25a8b0579</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;Ok, thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248233?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 14:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b08a1e2-8649-4be4-b910-0eb31679c2fb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes. I received them. I have forwarded the questions to our Zigbee team. I will let you know whenever I hear something from them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/248087?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 08:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6237a58-bc50-4e76-8703-1baaacfb7b9d</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;Hi, I sent you projects yesterday in a private message. Did you get them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/247610?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 14:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53263adc-972d-4450-991a-db0a93839c6a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Is it possible to send the project as well for reproduction of the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/247599?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 14:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2129c81-3c11-4cce-ba32-7710e9f9ee9b</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;Here goes logs in .pcapng format:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs_5F00_ret_5F00_code_5F00_error.pcapng"&gt;devzone.nordicsemi.com/.../logs_5F00_ret_5F00_code_5F00_error.pcapng&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs_5F00_ret_5F00_code_5F00_ok.pcapng"&gt;devzone.nordicsemi.com/.../logs_5F00_ret_5F00_code_5F00_ok.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using two DK boards for that + dongle for sniffing. It&amp;#39;s tunneling between two Zigbee devices to send some proprietary number (in that example just sending &amp;#39;O&amp;#39; &amp;amp; &amp;#39;K&amp;#39; from client to server and back).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/247591?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 13:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bb401fb-2ee2-4259-86b7-feab4feb6a69</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you use the Nordic 802.15.4 sniffer? If so, can you save the sniffer trace as the default file type (.pcapng) and upload it?&lt;/p&gt;
&lt;p&gt;Is this issue something I can reproduce using a couple of DKs? Or does it require some external HW? I didn&amp;#39;t quite understand if this tunnel was through an internet server or not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/247579?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 13:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5146faac-2217-4c70-824a-c9ef5fbe43e1</guid><dc:creator>karolpro</dc:creator><description>&lt;p&gt;Hi, thanks for quick response. Here goes two log files from Wireshark.&lt;/p&gt;
&lt;p&gt;The first is when&amp;nbsp;&lt;span&gt;zb_zcl_tunneling_client_send_transfer_data&amp;nbsp;returns -1 (server sends only one tunnel request response with success before transfer data request):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		case ZB_ZCL_TUNNELING_CLI_CMD_REQUEST_TUNNEL:
		{
			zb_zcl_tunneling_request_tunnel_t tunnel_req;
			zb_zcl_parse_status_t status;
			zb_bufid_t buf_resp = zb_buf_get_out();

			ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL(&amp;amp;tunnel_req, bufid, status);

			(void)status;

			if(ZB_TRUE == tunnel_opened)
			{
				ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(buf_resp, header-&amp;gt;addr_data.common_data.source.u, header-&amp;gt;addr_data.common_data.source.addr_type == ZB_ZCL_ADDR_TYPE_SHORT ? ZB_APS_ADDR_MODE_16_ENDP_PRESENT : ZB_APS_ADDR_MODE_64_ENDP_PRESENT, TUNNEL_SRV_ENDPOINT, TUNNEL_SRV_ENDPOINT, ZB_AF_HA_PROFILE_ID, ZB_ZCL_DISABLE_DEFAULT_RESPONSE, ZB_ZCL_GET_SEQ_NUM(), NULL, 0x0, ZB_ZCL_TUNNELING_STATUS_NO_MORE_IDS, tunnel_req.max_incoming_transfer_size );
			}
			else
			{
				tunnel_opened = ZB_TRUE;
				ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(buf_resp, header-&amp;gt;addr_data.common_data.source.u, header-&amp;gt;addr_data.common_data.source.addr_type == ZB_ZCL_ADDR_TYPE_SHORT ? ZB_APS_ADDR_MODE_16_ENDP_PRESENT : ZB_APS_ADDR_MODE_64_ENDP_PRESENT, TUNNEL_SRV_ENDPOINT, TUNNEL_SRV_ENDPOINT, ZB_AF_HA_PROFILE_ID, ZB_ZCL_DISABLE_DEFAULT_RESPONSE, ZB_ZCL_GET_SEQ_NUM(), NULL, tunnel_id, ZB_ZCL_TUNNELING_STATUS_SUCCESS, tunnel_req.max_incoming_transfer_size );
			}

		    return ZB_TRUE;
		}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs_5F00_ret_5F00_code_5F00_error.txt"&gt;devzone.nordicsemi.com/.../logs_5F00_ret_5F00_code_5F00_error.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The second is when&amp;nbsp;zb_zcl_tunneling_client_send_transfer_data 0 (server sends two tunnel request response one after another, first with no more tunnels available, second with success before transfer data request):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		case ZB_ZCL_TUNNELING_CLI_CMD_REQUEST_TUNNEL:
		{
			zb_zcl_tunneling_request_tunnel_t tunnel_req;
			zb_zcl_parse_status_t status;
			zb_bufid_t buf_resp = zb_buf_get_out();
			zb_bufid_t buf_resp_dummy = zb_buf_get_out();

			ZB_ZCL_TUNNELING_GET_REQUEST_TUNNEL(&amp;amp;tunnel_req, bufid, status);

			(void)status;

			if(ZB_TRUE == tunnel_opened)
			{
				ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(buf_resp, header-&amp;gt;addr_data.common_data.source.u, header-&amp;gt;addr_data.common_data.source.addr_type == ZB_ZCL_ADDR_TYPE_SHORT ? ZB_APS_ADDR_MODE_16_ENDP_PRESENT : ZB_APS_ADDR_MODE_64_ENDP_PRESENT, TUNNEL_SRV_ENDPOINT, TUNNEL_SRV_ENDPOINT, ZB_AF_HA_PROFILE_ID, ZB_ZCL_DISABLE_DEFAULT_RESPONSE, ZB_ZCL_GET_SEQ_NUM(), NULL, 0x0, ZB_ZCL_TUNNELING_STATUS_NO_MORE_IDS, tunnel_req.max_incoming_transfer_size );
			}
			else
			{
				tunnel_opened = ZB_TRUE;
				ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(buf_resp_dummy, header-&amp;gt;addr_data.common_data.source.u, header-&amp;gt;addr_data.common_data.source.addr_type == ZB_ZCL_ADDR_TYPE_SHORT ? ZB_APS_ADDR_MODE_16_ENDP_PRESENT : ZB_APS_ADDR_MODE_64_ENDP_PRESENT, TUNNEL_SRV_ENDPOINT, TUNNEL_SRV_ENDPOINT, ZB_AF_HA_PROFILE_ID, ZB_ZCL_DISABLE_DEFAULT_RESPONSE, ZB_ZCL_GET_SEQ_NUM(), NULL, tunnel_id, ZB_ZCL_TUNNELING_STATUS_NO_MORE_IDS, tunnel_req.max_incoming_transfer_size );
				ZB_ZCL_TUNNELING_SEND_REQUEST_TUNNEL_RESPONSE(buf_resp, header-&amp;gt;addr_data.common_data.source.u, header-&amp;gt;addr_data.common_data.source.addr_type == ZB_ZCL_ADDR_TYPE_SHORT ? ZB_APS_ADDR_MODE_16_ENDP_PRESENT : ZB_APS_ADDR_MODE_64_ENDP_PRESENT, TUNNEL_SRV_ENDPOINT, TUNNEL_SRV_ENDPOINT, ZB_AF_HA_PROFILE_ID, ZB_ZCL_DISABLE_DEFAULT_RESPONSE, ZB_ZCL_GET_SEQ_NUM(), NULL, tunnel_id, ZB_ZCL_TUNNELING_STATUS_SUCCESS, tunnel_req.max_incoming_transfer_size );
			}

		    return ZB_TRUE;
		}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs_5F00_ret_5F00_code_5F00_ok.txt"&gt;devzone.nordicsemi.com/.../logs_5F00_ret_5F00_code_5F00_ok.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you try that workaround with two tunnel request responses both with success, then above mentioned trick doesn&amp;#39;t do the job.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for taking care of it. Tunneling is new to me as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ZB ZCL Tunneling - no data send</title><link>https://devzone.nordicsemi.com/thread/247567?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113c392a-916f-47ac-a4a4-e638e35587f5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please attach the sniffer trace when the zb_zcl_tunneling_client_send_transfer_data returns 1?&lt;/p&gt;
&lt;p&gt;I have not heard of/used the ZCL tunneling before, so I am not sure how it is supposed to work. When I have the sniffer trace, I can forward this to our Zigbee team.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>