<?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 and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79222/zigbee-and-net-socket-collision-with-zephyr-v2-6-0-rc1-ncs1</link><description>Hi everybody, 
 We ran into a Zephyr configuration issue which is related to Zigbee and Zephyr&amp;#39;s networking stack. In our setup we would like to use Zephyr&amp;#39;s modem library which also need CONFIG_NET_SOCKETS to be enabled. (in order to use cellular) When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Sep 2021 13:38:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79222/zigbee-and-net-socket-collision-with-zephyr-v2-6-0-rc1-ncs1" /><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/328855?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 13:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85878c87-3021-4859-9f68-307b6c61929e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Milan,&lt;/p&gt;
&lt;p&gt;I am happy to hear that!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/328790?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 11:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9896cad-53f2-42cd-b3ca-bfa4635d7826</guid><dc:creator>mnvcsUDT</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thank you for this, I verified the fix was not issued branch we used but now using the master branch fixed it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Milan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/328631?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 13:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84fba366-5949-4b85-bfaa-7cc5541c56db</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for clarifying.&lt;/p&gt;
&lt;p&gt;I asked our developers about this. A similar issue to this has been addressed by the following fix:&amp;nbsp;&lt;a href="https://github.com/rlubos/zephyr/commit/46efe3ed70c98d08701cd3e660875e409aaf7e03"&gt;https://github.com/rlubos/zephyr/commit/46efe3ed70c98d08701cd3e660875e409aaf7e03&lt;/a&gt;. This should already be available on the master branch of NCS. Can you try to either switch to the master branch or add these changes to your project and see if it fixes the issue? Please let me know if it does not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/328432?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 14:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b120a4-4515-4d58-9f76-6939e06c3497</guid><dc:creator>mnvcsUDT</dc:creator><description>&lt;p&gt;Hi Marte, Got further in narrowing down the issue,&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NET_SOCKETS_PACKET is the problem here. This config option seems to be necessary with Memfault integration.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/328254?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 15:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8561e9-eb87-4c15-84e8-ab3914886eff</guid><dc:creator>mnvcsUDT</dc:creator><description>&lt;p&gt;Hi Marte, and thank you for your response.&lt;/p&gt;
&lt;p&gt;I might formulated myself incorrectly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;[00:00:19.019,775] &amp;lt;err&amp;gt; ieee802154_nrf5: Packet dropped by NET stack&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;is triggered only when the network interface is disabled. Otherwise it is not possible to pair a Zigbee device. This only happens when CONFIG_NET_SOCKETS=y .I can see 802.15.4 frames being captured but nothing seems to be available for ZBOSS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;[00:00:00.013,763] &amp;lt;inf&amp;gt; zigbee: Start ZBOSS stack and init zigbee
[00:00:00.020,050] &amp;lt;inf&amp;gt; zigbee_app_utils: Production configuration is not present or invalid (status: -1)
[00:00:00.020,721] &amp;lt;inf&amp;gt; zigbee_app_utils: Zigbee stack initialized
[00:00:00.021,728] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 2
[00:00:00.021,759] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_pan_id: 0xffff
[00:00:00.022,521] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 2
[00:00:00.022,521] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_pan_id: 0x7d9d
[00:00:00.022,766] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 1
[00:00:00.022,766] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_short_addr: 0x0
[00:00:00.023,010] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 0
[00:00:00.023,010] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_ieee_addr: IEEE address f4:ce:36:c2:bd:56:5b:1a
[00:00:00.024,749] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 1
[00:00:00.024,749] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_short_addr: 0x0
[00:00:00.024,993] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_txpower: 20
[00:00:00.024,993] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_channel: 12
[00:00:00.025,177] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_start: nRF5 802154 radio started (channel: 12)
[00:00:00.025,177] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 0
[00:00:00.025,177] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_ieee_addr: IEEE address f4:ce:36:c2:bd:56:5b:1a
[00:00:00.025,207] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 1
[00:00:00.025,207] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_short_addr: 0x0
[00:00:00.025,207] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_filter: Applying filter 2
[00:00:00.025,207] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_set_pan_id: 0x7d9d
[00:00:00.025,726] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_start: nRF5 802154 radio started (channel: 12)
[00:00:00.026,000] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_start: nRF5 802154 radio started (channel: 12)
[00:00:00.057,556] &amp;lt;inf&amp;gt; zigbee: Start network steering
[00:00:00.094,299] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (54)
[00:00:00.094,390] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:00:00.098,327] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:00:00.531,402] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (54)
[00:00:00.531,524] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:00:00.533,782] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:00:00.537,567] &amp;lt;inf&amp;gt; zigbee: Allow pre 3.0 devices to join the network
[00:00:00.537,567] &amp;lt;wrn&amp;gt; zigbee: Network steering started, channel: 12
[00:00:15.309,387] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:00:15.309,448] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:00:15.313,720] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:00:30.564,331] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:00:30.564,392] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:00:30.567,047] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:00:45.788,543] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:00:45.788,604] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:00:45.790,954] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:01:01.028,137] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:01:01.028,198] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:01:01.031,463] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:01:15.890,930] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Frame received
[00:01:15.890,960] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Caught a packet (10) (LQI: 32)
[00:01:15.891,113] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Waiting for frame
[00:01:16.267,761] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:01:16.267,791] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:01:16.270,782] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:01:16.405,212] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Frame received
[00:01:16.405,273] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Caught a packet (10) (LQI: 188)
[00:01:16.405,395] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Waiting for frame
[00:01:26.204,681] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Frame received
[00:01:26.204,742] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Caught a packet (10) (LQI: 168)
[00:01:26.204,864] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Waiting for frame
[00:01:31.553,405] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:01:31.553,466] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:01:31.557,403] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:01:40.127,166] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Frame received
[00:01:40.127,227] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Caught a packet (10) (LQI: 180)
[00:01:40.127,349] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_rx_thread: Waiting for frame
[00:01:46.839,080] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:01:46.839,141] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:01:46.842,773] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:02:02.094,055] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:02:02.094,207] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:02:02.096,160] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
[00:02:17.318,206] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: 0x20009405 (45)
[00:02:17.318,267] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Sending frame (ch:12, txpower:8)
[00:02:17.322,540] &amp;lt;dbg&amp;gt; ieee802154_nrf5.nrf5_tx: Result: 0
rtt:~$ net iface



Interface 0x20001c9c (&amp;lt;unknown type&amp;gt;) [1]
=========================================
Link addr : F4:CE:36:C2:BD:56:5B:1A
MTU       : 127
Flags     : AUTO_START,IPv4
IPv4 unicast addresses (max 1):
	&amp;lt;none&amp;gt;
IPv4 multicast addresses (max 1):
	&amp;lt;none&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you can see there is only one interface enabled (that is the zigbee one) but it is the same error when we add more. Looks like Zigbee network starts up correctly, even there are incoming frames that indicates the device tries to join the network.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee and net socket collision with Zephyr v2.6.0-rc1-ncs1</title><link>https://devzone.nordicsemi.com/thread/327935?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 09:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c80e2a4-c6d3-4bb6-a130-dd0ff516cd82</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Milan,&lt;/p&gt;
&lt;p&gt;I have not heard of this before, but I do not see why Zephyr&amp;#39;s network stack is processing the incoming Zigbee packets instead of the ZBOSS stack.&lt;/p&gt;
&lt;p&gt;In your log it states that the packet was dropped by the NET stack. Are you certain that this is related to Zephyr&amp;#39;s network stack?&amp;nbsp;As is stated in the log, that error is from the function&amp;nbsp;nrf5_rx_thread() in the nRF5 802.15.4 driver (zephyr/drivers/ieee802154/ieee802154_nrf5.c), so the packet is received and handled by the&amp;nbsp;nRF5 802.15.4 driver, and not Zephyr&amp;#39;s network stack. Something is causing&amp;nbsp;net_recv_data() to return an error, so something is going wrong when pushing the packet up in the network for further processing, but in addition to the packet itself, this function also takes in the network interface where the packet was received. In this case, this network interface is set to be the interface of a nrf5_802154 device.&lt;/p&gt;
&lt;p&gt;Do you know what is failing in net_recv_data()? This function returns different error codes depending on what the error is, so knowing which error code is being returned could help with finding out what fails. You can find this function in&amp;nbsp;zephyr/subsys/net/ip/net_core.c.&lt;/p&gt;
&lt;p&gt;Is this the case for all Zigbee packets, or does it only happen with certain packets? What packets are you sending that is not processed by the ZBOSS stack?&lt;/p&gt;
&lt;p&gt;Are you able to share code or steps I can take to reproduce this issue on my side?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>