<?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 custom board - connect UART and send AT commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58055/nrf9160-custom-board---connect-uart-and-send-at-commands</link><description>I am working on a custom board with the nRF9160 SiP. It comes with pre-programmed modem firmware. Header pins for UART1 and UART2 are provided on the custom board. Is it possible to connect directly to the UART and send AT commands? Or do I need to program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Mar 2020 17:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58055/nrf9160-custom-board---connect-uart-and-send-at-commands" /><item><title>RE: nrf9160 custom board - connect UART and send AT commands</title><link>https://devzone.nordicsemi.com/thread/238646?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2020 17:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8e284ba-98c2-4d02-aff3-09cbbd2c7240</guid><dc:creator>john_b</dc:creator><description>&lt;p&gt;My apologies for the late response, Hakan. I have flashed the at client sample to the nRF9160 custom board after creating the at_client/nrf9160_pca10090&lt;em&gt;&lt;strong&gt;ns&lt;/strong&gt;&lt;/em&gt;.overlay as you suggested and it works well.&lt;/p&gt;
&lt;p&gt;Thanks a lot for your support. Please close this ticket.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 custom board - connect UART and send AT commands</title><link>https://devzone.nordicsemi.com/thread/235331?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 08:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec88bb1-aac8-4819-948a-fb42d1271fe5</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;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is it possible to connect directly to the UART and send AT commands? Or do I need to program the nRF9160 with a sample application using nRF9160 DK or jlink programmer first?[/quote]
&lt;p&gt;&amp;nbsp;You will need to flash this sample to your board:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/at_client"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/at_client&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;at_client uses UART0, so if this differs from the nRF9160-DK pin output, you need to change the pin out to match yours.&lt;/p&gt;
&lt;p&gt;This is done by creating a at_client/nrf9160_pca10090&lt;em&gt;&lt;strong&gt;ns&lt;/strong&gt;&lt;/em&gt;.overlay file containing this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;10&amp;gt;;
	rx-pin = &amp;lt;11&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;And copying this one for the secure region as well, located in ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay (note the lack of ns prefix).&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>