<?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>UART communication on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43645/uart-communication-on-nrf9160dk</link><description>Hi, 
 I am trying to use UART interface on a nRF9160DK board to connect a rs-232 to rs-485 module for the purpose to make nRF9160DK a Gateway. 
 But I have no idea where to find an example how to perform this task exactly using nRF9160DK. 
 I take SERRER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Feb 2019 14:32:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43645/uart-communication-on-nrf9160dk" /><item><title>RE: UART communication on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/172334?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 14:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741220cb-cd5a-4f11-aeaa-fbb0aaacb789</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This question is unrelated to the original question regarding nRF91. Either use the search function to find similar cases on Devzone or create a new ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/172300?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 13:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e34c67-ecd4-42e5-b068-64d8b245262d</guid><dc:creator>Abir</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am beginner with NRF 52 DK. I am trying to change the uart example using NRF 52 with SDK 15.02, so that I would send message after&amp;nbsp;&amp;nbsp;pressing button&amp;nbsp;to my PC via UART connection. Any help please ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/171383?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 12:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b19600-6e12-48bf-8257-18facc62a527</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can try this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;misc/printk.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;

static u8_t uart_buf[1024];

void uart_cb(struct device *x)
{
	uart_irq_update(x);
	int data_length = 0;

	if (uart_irq_rx_ready(x)) {
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
		uart_buf[data_length] = 0;
	}
	printk(&amp;quot;%s&amp;quot;, uart_buf);
}

void main(void)
{
	struct device *uart = device_get_binding(&amp;quot;UART_0&amp;quot;);

	uart_irq_callback_set(uart, uart_cb);
	uart_irq_rx_enable(uart);
	printk(&amp;quot;UART loopback start!\n&amp;quot;);
	while (1) {
		k_cpu_idle();
	}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>