<?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>Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75660/serial-communication-using-a-zigbee-mesh-network-and-nrf52840-dongle</link><description>Hi Nordic Team, 
 
 I would like to share with you a minor challenge that we are facing to use the nRF52840 dongle with a Zigbee Mesh network and issuing a serial communication when actives by Alexa. 
 At the moment, I do have two programs running independent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Jun 2021 06:37:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75660/serial-communication-using-a-zigbee-mesh-network-and-nrf52840-dongle" /><item><title>RE: Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/312743?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 06:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0fc96c2-2a9d-4665-ab73-9a7ad0c6ef98</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will have to adapt the example to the board you are using to get correct pin assignment etc.&amp;nbsp;We have a&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;, which I highly recommend looking at when using the dongle. There you will find a guide on how to adapt nRF5 SDK projects for the dongle.&lt;/p&gt;
&lt;p&gt;Be aware that for the nRF52840 dongle there is no UART connected to the PC, other than the virtual COM port used for programming via Serial DFU (USB). You can implement a virtual COM port as in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/usbd_cdc_acm_example.html"&gt;USB CDC ACM Example&lt;/a&gt;, but in this case you are not actually using the UART peripheral on the dongle, only the USB. We recommend using the nRF52840 DK for development, as it has an onboard debugger. It can also do USB-UART bridging, so that you can actually use the UART peripheral.&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: Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/312686?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 14:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a09b07c-f7ce-4600-aeca-9985a95a1c44</guid><dc:creator>Jonny Matuichuk</dc:creator><description>&lt;p&gt;Hi Marte,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks you so much for your explanation below. At the moment I&amp;#39;m using the&amp;nbsp;pca10059 which is the Dongle. The UART has only the&amp;nbsp;pca10056 which is&amp;nbsp;annoying.&lt;/p&gt;
&lt;p&gt;Before I do that, Do I need update&amp;nbsp;the Preprocessor Definitions by removing&amp;nbsp;BOARD_PCA10056&amp;nbsp;and inserting&amp;nbsp;BOARD_PCA10059 or should I do this later?&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt;JM&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/312597?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 09:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ec28504-e801-4fc2-a3a5-5af60e9bc347</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no tool to merge examples for you, unfortunately. In order to merge two examples you have to copy the functionality you want from one example to the other, and add the files to user include directories and the .c files in SES.&lt;/p&gt;
&lt;p&gt;From your error I see that&amp;nbsp;it cannot find the file app_uart.h. Most likely it has not been added correctly in SES.&lt;/p&gt;
&lt;p&gt;To add it to user include directories do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Right click on&amp;nbsp;&lt;strong&gt;Project &amp;#39;zigbee_light_bulb_pca10056&amp;#39;&lt;/strong&gt; and select Options...&lt;/li&gt;
&lt;li&gt;Make sure the configuration is set to Common, and not Debug or Release&lt;/li&gt;
&lt;li&gt;Go to Preprocessor and double click on User Include Dircetories to open it&lt;/li&gt;
&lt;li&gt;Add the following:&lt;br /&gt;../../../../../../../components/libraries/uart&lt;br /&gt;Be aware that the path must be correct. It seems you are using the light bulb example, so I believe this should be correct, but you can compare it with the other directories there to make sure. A lot of them should be libraries under the components directory, so just make sure you have&amp;nbsp;the same amount of &amp;quot;../../&amp;quot; before the components directory in the line you add as there are in the others.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To add the .c file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Right click on the nRF_Drivers folder in the Project Explorer in SES&lt;/li&gt;
&lt;li&gt;Select Add Existing File...&lt;/li&gt;
&lt;li&gt;Go to the location of the file (&amp;lt;T&amp;amp;Z_SDK&amp;gt;/components/libraries/uart)&lt;/li&gt;
&lt;li&gt;Select the file app_uart.c&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please let me know if you are still having issues after going through these steps.&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: Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/312519?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 03:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fdda151-a683-4b40-808c-b93263be87dd</guid><dc:creator>Jonny Matuichuk</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for my delay to come back to you, but I&amp;#39;ve been trying different things in the meantime.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to simplify my question, I would like to know how&amp;nbsp;to Combining two example files such as :&amp;nbsp;&lt;span&gt;\xxxx\examples\zigbee\light_control\light_bulb and&amp;nbsp;\xxxx\examples\peripheral\uart from the actual SDK for Zigbee.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve tried to merge both, but file doesn&amp;#39;t compile and work. I not sure if there is a tool in order to do that, but I&amp;#39;ve also tried to do manually and it not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See the print screen error attached and Identified in yellow:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="306" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622432388550v1.png" width="550" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is also what I&amp;#39;m trying to implement with the serial communication. Serial Data needs to be issue when a command has been executed via Alexa, using the Light Bulb SDK.&lt;/p&gt;
&lt;p&gt;&lt;img height="457" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622432453297v2.png" width="480" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read this two articles on KB but seems like they aren&amp;#39;t able to make it work.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/8143/how-to-combinning-two-example-files"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/8143/how-to-combinning-two-example-files&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38054/how-to-combine-two-sdk_config-h-file"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38054/how-to-combine-two-sdk_config-h-file&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;
&lt;p&gt;JM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Communication using a Zigbee Mesh network and nRF52840 dongle</title><link>https://devzone.nordicsemi.com/thread/312063?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 11:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebbd7d90-592d-499b-8149-ebe6da15b39d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What errors are you getting?&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>