<?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>Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33933/extending-the-thread-cloud-coap-client-example-with-peripheral-hardware</link><description>I want to extend the Thread Cloud Client Example (thread_cloud_coap_client_pca10056) with a peripheral controller. And I am looking at the UART Example (ble_app_uart_pca10056_s140) for transmitting and receiving data through a serial device. What do I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 May 2018 09:26:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33933/extending-the-thread-cloud-coap-client-example-with-peripheral-hardware" /><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/132699?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 09:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1307ed0f-9c59-40f3-ae81-d55883526d60</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What do you mean by this?&lt;/p&gt;
[quote user="Apfelsine"]I can&amp;#39;t see any UART output from my&amp;nbsp;second USB port[/quote]
&lt;p&gt;Have you connected the UART interface to some serial to USB converter? Which pins are you using for the second UART interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/132563?ContentTypeID=1</link><pubDate>Sun, 20 May 2018 15:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d976c446-4871-48f9-a351-b9ad68a2f600</guid><dc:creator>Apfelsine</dc:creator><description>&lt;p&gt;I just reinstalled the nRF5 SDK v15.0.0. Then I added again to my serial main.c the creation of a second UART instance. Now it compiles without error.&amp;nbsp;&lt;span&gt;However, I can&amp;#39;t see any UART output from my&amp;nbsp;second USB port. I see output on the PDK USB interface port(P0.08,P0.06). Any suggestions? In the mean time I ordered a Logic Analyzer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131901?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 14:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ccca0d-cddf-4c4a-b086-91e16a4840a7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You can&amp;#39;t use instance 0 for both serial connections. Did you try changing nrfx_uarte.h as I suggested in my previous post?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131642?ContentTypeID=1</link><pubDate>Thu, 10 May 2018 18:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed8e5ac6-a3e3-4e89-b14a-05de3ca93a9c</guid><dc:creator>Apfelsine</dc:creator><description>&lt;p&gt;I didn&amp;#39;t change file nrfx_uarte.h. However if I change the second serial uart definition statement in my main.c from&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525976441371v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525976274389v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;the program will compile with no error. I am just not sure if the second instance # should be 0?&lt;/p&gt;
&lt;p&gt;May I suggest to the Nordic team to publish another Serial Example with two uart instances. It will definitely benefit me and others too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131447?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 07:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca4d226-b653-4294-8251-c01072212150</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I meant if you changed the file nrfx_uarte.h? In your second screenshot from your earier post, line 83 shows&amp;nbsp;&lt;code&gt;.&lt;span&gt;drv_inst_idx&lt;/span&gt; = &lt;span&gt;NRFX_CONCAT_3&lt;/span&gt;(NRFX_UARTE&lt;strong&gt;1&lt;/strong&gt;, id, _INST_IDX)&lt;/code&gt;, while in the original file this line should be&amp;nbsp;&lt;code&gt;.&lt;span&gt;drv_inst_idx&lt;/span&gt; = &lt;span&gt;NRFX_CONCAT_3&lt;/span&gt;(&lt;strong&gt;NRFX_UARTE&lt;/strong&gt;, id, _INST_IDX). You need to remove the added number &amp;#39;1&amp;#39;.&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131401?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 17:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9377098-127b-49f2-942f-ad2e7dc66999</guid><dc:creator>Apfelsine</dc:creator><description>&lt;p&gt;Yes, I did modify the main.c file:&lt;/p&gt;
&lt;p&gt;&lt;img height="430" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525799217460v1.png" width="384" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I was just following the post&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/25173/nrf52840-uart1-not-working-in-sdk-14&amp;nbsp;&lt;/a&gt; with attached main file &lt;strong&gt;1715.main.c.&lt;/strong&gt; This Serial Port Library Example shows &lt;strong&gt;two&lt;/strong&gt; instances of the port interface for testing. One test is for GPIOs P0.06, P0.08 and one test is for P0.26, P0.27. I thought that it is the same scenario I like to accomplish. Do I have the right approach?&lt;span style="background-color:#ffffff;color:#474747;float:none;font-family:&amp;#39;Open Sans&amp;#39;, Calibri, Arial, sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131303?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 08:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb4a66f-7396-4c21-9d5a-8a54025dfe5f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you modify the file? &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/include/nrfx_uarte.h#L74"&gt;Line 83 of nrfx_uaerte.h&lt;/a&gt; should say&amp;nbsp;NRFX_UARTE, not&amp;nbsp;NRFX_UARTE&lt;strong&gt;1&lt;/strong&gt; as it does in your screenshot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/131259?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 17:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dadf0bd-f713-4a99-bbce-e4ce7e0c1f65</guid><dc:creator>Apfelsine</dc:creator><description>&lt;p&gt;Jorgen, thank you for your guidance.&amp;nbsp; I don&amp;rsquo; t plan to use the BLE part of the UART examples. I rather plan to use only the HW UART part. The serial example(serial_pca10056.hex) seems like a good example. As the Thread Cloud CoAP Client Example uses the CLI on UART0 peripheral I want to use the UARTE1 peripheral to implement a UART connection to a second device. Looking at the serial_pca10056 example and the sdk_config.h, I enabled the UARTE1 instance&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525714218478v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; and caused an error compiling&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/400x400/__key/communityserver-discussions-components-files/4/pastedimage1525714501478v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extending the Thread Cloud CoAP Client Example with peripheral Hardware</title><link>https://devzone.nordicsemi.com/thread/130616?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 14:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb38b436-5b16-4c65-ae79-8b982b26e94e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you planning to use the BLE part of ble_app_uart example (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24"&gt;Nordic UART service - UART emulation over BLE&lt;/a&gt;), or only the HW UART part? There is a basic &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/uart_example.html?cp=4_0_0_4_5_47"&gt;UART example&lt;/a&gt;&amp;nbsp;and another &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/serial_example.html?cp=4_0_0_4_5_35"&gt;serial example&lt;/a&gt; using a newer UART library, in the SDK, if you do not need the BLE part.&lt;/p&gt;
&lt;p&gt;If you are planning to integrate the BLE part as well, you need to follow the&amp;nbsp;guidelines in&amp;nbsp;&lt;a title="Multiprotocol support" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.thread_zigbee.v1.0.0/thread_multiprotocol.html?cp=4_2_0_1_0_11"&gt;Multiprotocol support&lt;/a&gt;&amp;nbsp;documentation, and the page&amp;nbsp;&lt;a title="Adding dynamic multiprotocol Thread support to BLE examples" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.thread_zigbee.v1.0.0/thread_multiprotocol_ble_howto.html?cp=4_2_0_1_1_3_1_5"&gt;Adding dynamic multiprotocol Thread support to BLE examples&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also note that the&amp;nbsp;Thread Cloud CoAP Client Example use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.thread_zigbee.v1.0.0/examples_thread.html?cp=4_2_0_1_1_1#examples_cli"&gt;CLI&lt;/a&gt; on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.thread_zigbee.v1.0.0/thread_intro.html?cp=4_2_0_1_0_0#thread_hardware_requirements"&gt;UART0 peripheral&lt;/a&gt;. If you are implementing UART connections to a second device, this must use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/uarte.html?cp=2_0_0_5_33_8#topic"&gt;UARTE1 peripheral&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>