<?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>How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84072/how-to-port-the-zigbee-network-coordinator-sample-from-the-nrf52840dk-to-the-nrf52840-dongle</link><description>I&amp;#39;m trying to implement the Zigbee coordinator sample on the nRF52840 dongle. Although I&amp;#39;ve received a little bit of guidance on how to adapt the nRF52840DK implementation from my local Nordic rep, neither he nor I are enjoying any success. Surely there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jan 2022 11:11:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84072/how-to-port-the-zigbee-network-coordinator-sample-from-the-nrf52840dk-to-the-nrf52840-dongle" /><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/350175?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 11:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e121e833-2b2b-43fa-87df-1ea136181992</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Jody,&lt;/p&gt;
&lt;p&gt;Great to hear that it is working on your end as well! I am happy to help &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;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/350159?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 10:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc3a8c85-0e01-4d33-971a-f93627fa5dfa</guid><dc:creator>Jody P Ono</dc:creator><description>&lt;p&gt;Hi, Marte:&lt;/p&gt;
&lt;p&gt;I just verified your solution and it is PERFECT!&amp;nbsp; Thank you so much for your superb assistance.&amp;nbsp;&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44f_2D00_1f3fc.svg" title="Clap tone2"&gt;&amp;#x1f44f;&amp;#x1f3fc;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44f_2D00_1f3fc.svg" title="Clap tone2"&gt;&amp;#x1f44f;&amp;#x1f3fc;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44f_2D00_1f3fc.svg" title="Clap tone2"&gt;&amp;#x1f44f;&amp;#x1f3fc;&lt;/span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d_2D00_1f3fc.svg" title="Thumbsup tone2"&gt;&amp;#x1f44d;&amp;#x1f3fc;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/350019?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 14:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3097bf90-afb5-4626-b437-4ffe186b8472</guid><dc:creator>Jody P Ono</dc:creator><description>&lt;p&gt;Hi, Marte:&lt;/p&gt;
&lt;p&gt;Fantastic!&amp;nbsp; I need to get a few more hours of sleep, but I will verify your solution later today.&lt;/p&gt;
&lt;p&gt;You rock!&lt;/p&gt;
&lt;p&gt;Many thanks &amp;amp; best regards,&lt;/p&gt;
&lt;p&gt;Jody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349992?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 13:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3109ba07-3616-46d4-b1ea-47f6556c763b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Jody,&lt;/p&gt;
&lt;p&gt;I decided to test this myself. All the changes I made can be seen in the file zigbee_shell.diff, but I have also written it out here:&lt;/p&gt;
&lt;p&gt;First I created a&amp;nbsp;nrf52840dongle_nrf52840.conf file for configurations specific to nrf52840 Dongle:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51
CONFIG_SHELL_BACKEND_SERIAL=y

CONFIG_USB_DEVICE_STACK=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zigbee Network Coordinator&amp;quot;
CONFIG_USB_DEVICE_MANUFACTURER=&amp;quot;Nordic Semiconductor ASA&amp;quot;
CONFIG_USB_DEVICE_VID=0x1915
CONFIG_USB_DEVICE_PID=0x0100

CONFIG_UART_LINE_CTRL=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I added the following to CMakeLists.txt so that the &lt;span&gt;nrf52840dongle_nrf52840&lt;/span&gt;.conf file would be added to the configurations when nrf52840dongle_nrf52840 is chosen as board:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(CONF_FILE &amp;quot;prj.conf&amp;quot;)

if (EXISTS boards/${BOARD}.conf)
  list(APPEND CONF_FILE boards/${BOARD}.conf)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;nrf52840dongle_nrf52840.overlay I added the USB device controller by adding zephyr,shell-uart = &amp;amp;cdc_acm_uart0 and&amp;nbsp;&amp;amp;zephyr_udc0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,entropy = &amp;amp;rng;
		zephyr,shell-uart = &amp;amp;cdc_acm_uart0;
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		rst_button0: rst_button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Reset button&amp;quot;;
		};
	};

	aliases {
		rst0 = &amp;amp;rst_button0;
	};
};

&amp;amp;zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;
		label = &amp;quot;CDC_ACM_0&amp;quot;;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Removed the following configurations from prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=y
 
# Make sure printk is not printing to the UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then added the configurations for Zigbee Shell in the same file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Shell
CONFIG_SHELL=y
CONFIG_ZIGBEE_SHELL=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Lastly, I enabled the USB device in main.c by including the file&amp;nbsp;usb/usb_device.h, and calling&amp;nbsp;usb_enable(NULL); right before&amp;nbsp;configure_gpio();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have not tested this extensively, so there might be some issues, but I was able to issue Zigbee Shell commands to the Dongle successfully using this. I am uploading the sample here for you as well.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zigbee_5F00_shell.diff"&gt;devzone.nordicsemi.com/.../zigbee_5F00_shell.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/network_5F00_coordinator_5F00_shell_5F00_dongle.zip"&gt;devzone.nordicsemi.com/.../network_5F00_coordinator_5F00_shell_5F00_dongle.zip&lt;/a&gt;&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: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349980?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 12:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946a47a3-5fb0-423f-b9e6-ecd702ce4320</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Jody,&lt;/p&gt;
&lt;p&gt;The Zigbee Shell library is in a way the nRF Connect SDK version of Zigbee CLI from nRF5 SDK. The implementation differs, as it is implemented using the Shell interface from Zephyr, but the way it is used is almost the same, with many of the same commands. You can read more about it and see the supported commands in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/zigbee/shell.html#zigbee-shell"&gt;Zigbee shell&lt;/a&gt;. So in your case, you would want to use Zigbee Shell.&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: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349946?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 11:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b625768-9a5c-4b53-be09-8f9547269240</guid><dc:creator>Jody P Ono</dc:creator><description>&lt;p&gt;Hi, again:&lt;/p&gt;
&lt;p&gt;To be more specific, what I would like is the equivalent of the old Zigbee CLI Agent example from the legacy nRF5 SDK for Thread and Zigbee v4.1.0 running on a dongle using the nRF Connect SDK v1.8.0.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349928?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 10:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcdc4ebf-085a-4fc9-8a43-5a6925146fd6</guid><dc:creator>Jody P Ono</dc:creator><description>&lt;p&gt;Hi, Marte:&lt;/p&gt;
&lt;p&gt;Thank you for all of the great information!&amp;nbsp; I will be trying your solutions in the next day and will report my results.&lt;/p&gt;
&lt;p&gt;Regarding Zigbee shell vs CLI: What I require is a simple way manipulate the network coordinator on the dongle via the USB connection.&amp;nbsp; Does this mean that I need the Zigbee shell or just a general CLI?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349923?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 10:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60c52f93-1a3e-48f9-8378-6e51791e0d1a</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To get the network coordinator to work on the Dongle&amp;nbsp;you need to do the following:&lt;/p&gt;
&lt;p&gt;1. Create a&amp;nbsp;board file overlay nrf52840dongle_nrf52840.overlay under network_coordinator/boards with the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		zephyr,entropy = &amp;amp;rng;
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		rst_button0: rst_button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Reset button&amp;quot;;
		};
	};

	aliases {
		rst0 = &amp;amp;rst_button0;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2. Create a static partition manager file to&amp;nbsp;create partitions for MBR and the bootloader on the Dongle. This should be located directly under network_coordinator/. Call it&amp;nbsp;pm_static_nrf52840dongle_nrf52840.yml and add the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0x0e0000
  end_address: 0x100000
  region: flash_primary
  size: 0x20000
# SRAM reserved to be used by the nRF5 Bootloader
EMPTY_1:
  address: 0x20000000
  end_address: 0x20000400
  region: sram_primary
  size: 0x0400
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. The last thing is to add the dongle to the existing sample.yaml file. Simply add&amp;nbsp;nrf52840dongle_nrf52840 to platform_allow and integration_platforms.&lt;/p&gt;
&lt;p&gt;I have also uploaded the sample with dongle support here.&lt;/p&gt;
[quote user=""] I would like to add the CLI shell to the same sample[/quote]
&lt;p&gt;By this, do you mean the Zigbee shell library or CLI in general? The issue with using the Zigbee shell with the Dongle is that as of now it is only supports using UART and RTT as serial transports, as can be seen in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/zigbee/shell.html#supported-backends"&gt;Zigbee shell » Supported backends&lt;/a&gt;, and the Dongle only has USB, so you would need to use&amp;nbsp;USB CDC ACM. It might be possible to implement this, but I have not tested it myself. If&amp;nbsp;you want to look into it, you can take a look at the USB overlay extension in the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/openthread/cli/README.html"&gt;Thread: CLI&lt;/a&gt;&amp;nbsp;sample, and the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/samples/subsys/usb/cdc_acm/README.html"&gt;USB CDC ACM Sample Application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/network_5F00_coordinator_5F00_dongle.zip"&gt;devzone.nordicsemi.com/.../network_5F00_coordinator_5F00_dongle.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to port the Zigbee Network Coordinator sample from the nRF52840DK to the nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/349808?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 15:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ef6b63e-cb68-415e-9b01-8589e41f99c9</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking into your case and I will come back to you tomorrow.&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>