<?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>Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57083/using-multiple-uarts-on-nrf9160dk</link><description>Hello, 
 I am using UART_1 in my program to comminicate with other sensor. So the data is read from UART_1 and print to UART_0. Now I want to communicate with other sensor simultaneously. So I am using UART_2 for that purpose. When I connect both sensors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 07:47:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57083/using-multiple-uarts-on-nrf9160dk" /><item><title>RE: Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/thread/231542?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 07:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037f7daf-606d-4ccb-8ef4-bf856ba4e965</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Great to hear that its working now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/thread/231470?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2802af-477a-4a6f-b7bb-82f785aed0c8</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Initially, I assigned rts and cts pins with Pin - 19 and 21, at that time it did not work. Now when I changed it to&amp;nbsp;0xFFFFFFFF, both UARTs started working together.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/thread/231465?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e11ebc5-d774-47be-8faf-c128ed6987a2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="Jagruti_N2A"]But when I connect the sensor, the data is not printed on the terminal. When I connect the sensor to UART_1 pins, the data is printed on the terminal. Does UART_2 also uses UART_0 for printing?[/quote]
&lt;p&gt;printk() goes through uart0 by default.&lt;/p&gt;
&lt;p&gt;Are you using the DK for testing, if yes, what pins are you using? The TXD pin is active low, while the RXD should float (ie: driven by the other side). If you measure it as high before attaching your external UART, its the TXD line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/thread/231459?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4e0153-db2d-4987-b276-2eba18b098a6</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Yes, I have enabled UART2 in&amp;nbsp;&lt;span&gt;nrf9160_pca10090ns.overlay file.&amp;nbsp; At tx-pin of UART_2 I can see the voltage also. But when I connect the sensor, the data is not printed on the terminal. When I connect the sensor to UART_1 pins, the data is printed on the terminal. Does UART_2 also uses UART_0 for printing?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using multiple UARTs on nRF9160dk</title><link>https://devzone.nordicsemi.com/thread/231456?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58b68f2-d266-4b88-9fe0-d740c13af6b5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you enabled the UART2 in your overlay? This is done by creating a nrf9160_pca10090ns.overlay file in your application folder, which should contain (P0.10 and P0.11 chosen as an example here):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart2 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;11&amp;gt;;
	rx-pin = &amp;lt;10&amp;gt;;
	rts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
	cts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>