<?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>NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93053/nrf9160-dk-uart-configuration</link><description>Hi 
 I am currently running and adjusting the zephyr echo_bot uart sample on my nrf9160 DK. Currently , the sample makes use of UART0 to send a receive information which I have made compatible with an external device and the nrf terminal. My issue is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Oct 2022 15:16:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93053/nrf9160-dk-uart-configuration" /><item><title>RE: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/392215?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 15:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a08a10f-4e74-47f4-ac7f-f9548cd7a513</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Thank you Naeem! this has helped.&lt;/p&gt;
&lt;p&gt;The entire project is to collect a data from an Arduino and send it to an mqtt server.&amp;nbsp; I&amp;#39;m currently using the mqtt_simple code as well as the echo_bot code.&amp;nbsp; The intention is to collect the data a d UART1 and send it to the console(UART 0).&amp;nbsp; The issue is, when I begin to use UART0 as the shell, the LTE connection fails.&lt;/p&gt;
&lt;p&gt;does this make sense? if so, is there a way around it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you !&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/392093?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42deb512-9591-4fdb-8b51-c4eaa2de2558</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Yes, it is the same UART Echo_Bot sample from Zephyr.&lt;/p&gt;
&lt;p&gt;Also, no change in the prj.conf has been made.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/392091?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 10:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bb47b5-978f-4d32-9175-68294b1eb51e</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Hassan Khan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am attaching complete project folder in the zip format. Once you unzip and analyze files, you will see that I have only included the overlay file. Rest of the project is exactly same.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/echo_5F00_bot2.zip"&gt;devzone.nordicsemi.com/.../echo_5F00_bot2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another thing is connecting to the right COM port with correct baudrate / configuration. I am also attaching snapshots of connecting to COM port using nRF terminal, and the sample output of the project after it has been flashed on the DK and COM port is connected to the terminal output.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666606056403v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666606081781v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Two things to note here is that: (1) you will not see any output if you are connected to wrong port or with wrong configurations, and (2) if everything is correct, and you start typing in the terminal, you will not see characters as you type in, but rather you will see the echo back (the same message) from the echo-bot on DK once you press ENTER key.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope it will be helpful.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/392027?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 07:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89406978-92c4-4e48-81c9-1070c204a282</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Please also note that I am using the Zephyr echo bot sample.&amp;nbsp; The only change I made was the code you suggested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/392025?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 07:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e50a2050-edee-4655-b058-cf9f09002b3e</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created the overlay file, used the code you provided and the echobot does not work.&amp;nbsp; In my understanding, the program should display an output using the LTE link monitor or the or the VS built in serial monitor.&amp;nbsp; Please assist urgently.&amp;nbsp; Do I need to add some code in the prj.config file as well?&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: NRF9160 DK UART configuration</title><link>https://devzone.nordicsemi.com/thread/391949?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 15:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f05962-b5af-428b-87db-2bbd7dbda6d3</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello Hasssan Khan,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;Your query is regarding configuring and using a different uart on a nrf9160DK.&lt;/p&gt;
&lt;p&gt;You can use overlay file to configure the device-tree properly for your needs.&lt;/p&gt;
&lt;p&gt;For example, as in this case, you want to use uart1 to communicate to the computer for printing / echoing-back. You can choose your uart port for console output using following in the device overlay.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/{
    chosen {
        zephyr,console = &amp;amp;uart1;
        zephyr,shell-uart = &amp;amp;uart1;
        zephyr,uart-mcumgr = &amp;amp;uart1;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also, by default, uart1 would be disabled, so you need to enable it, and set the required baudrate using code like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1{
    compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    current-speed = &amp;lt;115200&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please connect with the configured baudrate on your serial terminaal or nrf terminal.&lt;br /&gt;You need to connect to the correct COM port on your computer.&lt;/p&gt;
&lt;p&gt;This is all I could infer from your query. If you need more specific help, please do send more information including code, log, and/or overlay files etc.&lt;/p&gt;
&lt;p&gt;Thank you and regards,&lt;br /&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>